From f22ac66db3cbc63de73867232819feee74374583 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:00:50 +0000 Subject: [PATCH 1/3] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../cloud/speech/v1/AdaptationGrpc.java | 1393 ------------ .../google/cloud/speech/v1/SpeechGrpc.java | 579 ----- .../speech/v1p1beta1/AdaptationGrpc.java | 1424 ------------ .../cloud/speech/v1p1beta1/SpeechGrpc.java | 589 ----- .../cloud/speech/v1/AdaptationClient.java | 40 +- .../cloud/speech/v1/AdaptationSettings.java | 30 +- .../google/cloud/speech/v1/SpeechClient.java | 43 +- .../cloud/speech/v1/SpeechSettings.java | 30 +- .../cloud/speech/v1/gapic_metadata.json | 0 .../google/cloud/speech/v1/package-info.java | 0 .../cloud/speech/v1/stub/AdaptationStub.java | 0 .../v1/stub/AdaptationStubSettings.java | 62 +- .../stub/GrpcAdaptationCallableFactory.java | 0 .../speech/v1/stub/GrpcAdaptationStub.java | 1 + .../v1/stub/GrpcSpeechCallableFactory.java | 0 .../cloud/speech/v1/stub/GrpcSpeechStub.java | 0 .../HttpJsonAdaptationCallableFactory.java | 105 + .../v1/stub/HttpJsonAdaptationStub.java | 695 ++++++ .../stub/HttpJsonSpeechCallableFactory.java | 105 + .../speech/v1/stub/HttpJsonSpeechStub.java | 279 +++ .../cloud/speech/v1/stub/SpeechStub.java | 6 +- .../speech/v1/stub/SpeechStubSettings.java | 58 +- .../v1/AdaptationClientHttpJsonTest.java | 940 ++++++++ .../cloud/speech/v1/AdaptationClientTest.java | 0 .../cloud/speech/v1/MockAdaptation.java | 0 .../cloud/speech/v1/MockAdaptationImpl.java | 0 .../google/cloud/speech/v1/MockSpeech.java | 0 .../cloud/speech/v1/MockSpeechImpl.java | 0 .../speech/v1/SpeechClientHttpJsonTest.java | 186 ++ .../cloud/speech/v1/SpeechClientTest.java | 0 .../cloud/speech/v1/AdaptationGrpc.java | 1085 +++++++++ .../google/cloud/speech/v1/SpeechGrpc.java | 479 ++++ .../speech/v1/CreateCustomClassRequest.java | 567 ++--- .../v1/CreateCustomClassRequestOrBuilder.java | 64 +- .../speech/v1/CreatePhraseSetRequest.java | 567 ++--- .../v1/CreatePhraseSetRequestOrBuilder.java | 64 +- .../google/cloud/speech/v1/CustomClass.java | 823 +++---- .../cloud/speech/v1/CustomClassName.java | 0 .../cloud/speech/v1/CustomClassOrBuilder.java | 54 +- .../speech/v1/DeleteCustomClassRequest.java | 339 ++- .../v1/DeleteCustomClassRequestOrBuilder.java | 35 +- .../speech/v1/DeletePhraseSetRequest.java | 339 ++- .../v1/DeletePhraseSetRequestOrBuilder.java | 31 + .../speech/v1/GetCustomClassRequest.java | 336 ++- .../v1/GetCustomClassRequestOrBuilder.java | 31 + .../cloud/speech/v1/GetPhraseSetRequest.java | 329 ++- .../v1/GetPhraseSetRequestOrBuilder.java | 35 +- .../speech/v1/ListCustomClassesRequest.java | 452 ++-- .../v1/ListCustomClassesRequestOrBuilder.java | 47 +- .../speech/v1/ListCustomClassesResponse.java | 455 ++-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../cloud/speech/v1/ListPhraseSetRequest.java | 445 ++-- .../v1/ListPhraseSetRequestOrBuilder.java | 47 +- .../speech/v1/ListPhraseSetResponse.java | 456 ++-- .../v1/ListPhraseSetResponseOrBuilder.java | 45 +- .../google/cloud/speech/v1/LocationName.java | 0 .../v1/LongRunningRecognizeMetadata.java | 536 ++--- ...LongRunningRecognizeMetadataOrBuilder.java | 46 +- .../v1/LongRunningRecognizeRequest.java | 685 ++---- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../v1/LongRunningRecognizeResponse.java | 665 ++---- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../com/google/cloud/speech/v1/PhraseSet.java | 812 +++---- .../google/cloud/speech/v1/PhraseSetName.java | 0 .../cloud/speech/v1/PhraseSetOrBuilder.java | 48 +- .../cloud/speech/v1/RecognitionAudio.java | 417 ++-- .../speech/v1/RecognitionAudioOrBuilder.java | 36 +- .../cloud/speech/v1/RecognitionConfig.java | 1660 +++++--------- .../speech/v1/RecognitionConfigOrBuilder.java | 145 +- .../cloud/speech/v1/RecognitionMetadata.java | 1222 ++++------- .../v1/RecognitionMetadataOrBuilder.java | 93 +- .../cloud/speech/v1/RecognizeRequest.java | 525 ++--- .../speech/v1/RecognizeRequestOrBuilder.java | 66 + .../cloud/speech/v1/RecognizeResponse.java | 470 ++-- .../speech/v1/RecognizeResponseOrBuilder.java | 44 +- .../speech/v1/SpeakerDiarizationConfig.java | 414 ++-- .../v1/SpeakerDiarizationConfigOrBuilder.java | 40 +- .../cloud/speech/v1/SpeechAdaptation.java | 663 +++--- .../speech/v1/SpeechAdaptationOrBuilder.java | 84 +- .../speech/v1/SpeechAdaptationProto.java | 285 +++ .../google/cloud/speech/v1/SpeechContext.java | 367 ++-- .../speech/v1/SpeechContextOrBuilder.java | 39 +- .../google/cloud/speech/v1/SpeechProto.java | 406 ++++ .../v1/SpeechRecognitionAlternative.java | 499 ++--- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v1/SpeechRecognitionResult.java | 604 ++--- .../v1/SpeechRecognitionResultOrBuilder.java | 53 +- .../cloud/speech/v1/SpeechResourceProto.java | 121 + .../speech/v1/StreamingRecognitionConfig.java | 461 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../speech/v1/StreamingRecognitionResult.java | 681 +++--- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v1/StreamingRecognizeRequest.java | 459 ++-- .../StreamingRecognizeRequestOrBuilder.java | 35 +- .../speech/v1/StreamingRecognizeResponse.java | 727 +++--- .../StreamingRecognizeResponseOrBuilder.java | 64 +- .../speech/v1/TranscriptOutputConfig.java | 368 ++-- .../v1/TranscriptOutputConfigOrBuilder.java | 30 +- .../speech/v1/UpdateCustomClassRequest.java | 480 ++-- .../v1/UpdateCustomClassRequestOrBuilder.java | 46 +- .../speech/v1/UpdatePhraseSetRequest.java | 480 ++-- .../v1/UpdatePhraseSetRequestOrBuilder.java | 46 +- .../com/google/cloud/speech/v1/WordInfo.java | 541 ++--- .../cloud/speech/v1/WordInfoOrBuilder.java | 49 +- .../google/cloud/speech/v1/cloud_speech.proto | 0 .../speech/v1/cloud_speech_adaptation.proto | 0 .../google/cloud/speech/v1/resource.proto | 0 .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../AsyncCreateCustomClass.java | 49 + .../SyncCreateCustomClass.java | 45 + ...tomClassLocationnameCustomclassString.java | 41 + ...ateCustomClassStringCustomclassString.java | 41 + .../createphraseset/AsyncCreatePhraseSet.java | 48 + .../createphraseset/SyncCreatePhraseSet.java | 45 + ...ePhraseSetLocationnamePhrasesetString.java | 41 + ...cCreatePhraseSetStringPhrasesetString.java | 41 + .../AsyncDeleteCustomClass.java | 46 + .../SyncDeleteCustomClass.java | 43 + .../SyncDeleteCustomClassCustomclassname.java | 39 + .../SyncDeleteCustomClassString.java | 39 + .../deletephraseset/AsyncDeletePhraseSet.java | 46 + .../deletephraseset/SyncDeletePhraseSet.java | 43 + .../SyncDeletePhraseSetPhrasesetname.java | 39 + .../SyncDeletePhraseSetString.java | 39 + .../getcustomclass/AsyncGetCustomClass.java | 46 + .../getcustomclass/SyncGetCustomClass.java | 43 + .../SyncGetCustomClassCustomclassname.java | 39 + .../SyncGetCustomClassString.java | 39 + .../getphraseset/AsyncGetPhraseSet.java | 46 + .../getphraseset/SyncGetPhraseSet.java | 43 + .../SyncGetPhraseSetPhrasesetname.java | 39 + .../getphraseset/SyncGetPhraseSetString.java | 39 + .../AsyncListCustomClasses.java | 51 + .../AsyncListCustomClassesPaged.java | 59 + .../SyncListCustomClasses.java | 47 + .../SyncListCustomClassesLocationname.java | 41 + .../SyncListCustomClassesString.java | 41 + .../listphraseset/AsyncListPhraseSet.java | 51 + .../AsyncListPhraseSetPaged.java | 58 + .../listphraseset/SyncListPhraseSet.java | 47 + .../SyncListPhraseSetLocationname.java | 41 + .../SyncListPhraseSetString.java | 41 + .../AsyncUpdateCustomClass.java | 48 + .../SyncUpdateCustomClass.java | 44 + ...UpdateCustomClassCustomclassFieldmask.java | 40 + .../updatephraseset/AsyncUpdatePhraseSet.java | 47 + .../updatephraseset/SyncUpdatePhraseSet.java | 44 + ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 40 + .../createphraseset/SyncCreatePhraseSet.java | 45 + .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 37 + .../AsyncLongRunningRecognize.java | 50 + .../AsyncLongRunningRecognizeLRO.java | 52 + .../SyncLongRunningRecognize.java | 47 + ...nizeRecognitionconfigRecognitionaudio.java | 42 + .../recognize/AsyncRecognize.java | 48 + .../speechclient/recognize/SyncRecognize.java | 45 + ...nizeRecognitionconfigRecognitionaudio.java | 41 + .../AsyncStreamingRecognize.java | 45 + .../recognize/SyncRecognize.java | 45 + .../createphraseset/SyncCreatePhraseSet.java | 45 + .../recognize/SyncRecognize.java | 45 + .../speech/v1p1beta1/AdaptationClient.java | 40 +- .../speech/v1p1beta1/AdaptationSettings.java | 30 +- .../cloud/speech/v1p1beta1/SpeechClient.java | 43 +- .../speech/v1p1beta1/SpeechSettings.java | 30 +- .../speech/v1p1beta1/gapic_metadata.json | 0 .../cloud/speech/v1p1beta1/package-info.java | 0 .../speech/v1p1beta1/stub/AdaptationStub.java | 0 .../stub/AdaptationStubSettings.java | 62 +- .../stub/GrpcAdaptationCallableFactory.java | 0 .../v1p1beta1/stub/GrpcAdaptationStub.java | 1 + .../stub/GrpcSpeechCallableFactory.java | 0 .../speech/v1p1beta1/stub/GrpcSpeechStub.java | 0 .../HttpJsonAdaptationCallableFactory.java | 105 + .../stub/HttpJsonAdaptationStub.java | 695 ++++++ .../stub/HttpJsonSpeechCallableFactory.java | 105 + .../v1p1beta1/stub/HttpJsonSpeechStub.java | 279 +++ .../speech/v1p1beta1/stub/SpeechStub.java | 6 +- .../v1p1beta1/stub/SpeechStubSettings.java | 58 +- .../AdaptationClientHttpJsonTest.java | 940 ++++++++ .../v1p1beta1/AdaptationClientTest.java | 0 .../speech/v1p1beta1/MockAdaptation.java | 0 .../speech/v1p1beta1/MockAdaptationImpl.java | 0 .../cloud/speech/v1p1beta1/MockSpeech.java | 0 .../speech/v1p1beta1/MockSpeechImpl.java | 0 .../v1p1beta1/SpeechClientHttpJsonTest.java | 186 ++ .../speech/v1p1beta1/SpeechClientTest.java | 0 .../speech/v1p1beta1/AdaptationGrpc.java | 1085 +++++++++ .../cloud/speech/v1p1beta1/SpeechGrpc.java | 479 ++++ .../v1p1beta1/CreateCustomClassRequest.java | 567 ++--- .../CreateCustomClassRequestOrBuilder.java | 64 +- .../v1p1beta1/CreatePhraseSetRequest.java | 567 ++--- .../CreatePhraseSetRequestOrBuilder.java | 64 +- .../cloud/speech/v1p1beta1/CustomClass.java | 831 +++---- .../speech/v1p1beta1/CustomClassName.java | 0 .../v1p1beta1/CustomClassOrBuilder.java | 54 +- .../v1p1beta1/DeleteCustomClassRequest.java | 342 ++- .../DeleteCustomClassRequestOrBuilder.java | 35 +- .../v1p1beta1/DeletePhraseSetRequest.java | 342 ++- .../DeletePhraseSetRequestOrBuilder.java | 31 + .../v1p1beta1/GetCustomClassRequest.java | 342 ++- .../GetCustomClassRequestOrBuilder.java | 31 + .../speech/v1p1beta1/GetPhraseSetRequest.java | 342 ++- .../GetPhraseSetRequestOrBuilder.java | 35 +- .../v1p1beta1/ListCustomClassesRequest.java | 455 ++-- .../ListCustomClassesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListCustomClassesResponse.java | 441 ++-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../v1p1beta1/ListPhraseSetRequest.java | 455 ++-- .../ListPhraseSetRequestOrBuilder.java | 47 +- .../v1p1beta1/ListPhraseSetResponse.java | 464 ++-- .../ListPhraseSetResponseOrBuilder.java | 45 +- .../cloud/speech/v1p1beta1/LocationName.java | 0 .../LongRunningRecognizeMetadata.java | 715 +++--- ...LongRunningRecognizeMetadataOrBuilder.java | 66 +- .../LongRunningRecognizeRequest.java | 701 ++---- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../LongRunningRecognizeResponse.java | 704 ++---- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../cloud/speech/v1p1beta1/PhraseSet.java | 826 +++---- .../cloud/speech/v1p1beta1/PhraseSetName.java | 0 .../speech/v1p1beta1/PhraseSetOrBuilder.java | 48 +- .../speech/v1p1beta1/RecognitionAudio.java | 427 ++-- .../v1p1beta1/RecognitionAudioOrBuilder.java | 36 +- .../speech/v1p1beta1/RecognitionConfig.java | 1953 ++++++----------- .../v1p1beta1/RecognitionConfigOrBuilder.java | 188 +- .../speech/v1p1beta1/RecognitionMetadata.java | 1340 ++++------- .../RecognitionMetadataOrBuilder.java | 116 +- .../speech/v1p1beta1/RecognizeRequest.java | 531 ++--- .../v1p1beta1/RecognizeRequestOrBuilder.java | 66 + .../speech/v1p1beta1/RecognizeResponse.java | 489 ++--- .../v1p1beta1/RecognizeResponseOrBuilder.java | 44 +- .../v1p1beta1/SpeakerDiarizationConfig.java | 401 ++-- .../SpeakerDiarizationConfigOrBuilder.java | 36 +- .../speech/v1p1beta1/SpeechAdaptation.java | 658 ++---- .../v1p1beta1/SpeechAdaptationOrBuilder.java | 84 +- .../v1p1beta1/SpeechAdaptationProto.java | 292 +++ .../cloud/speech/v1p1beta1/SpeechContext.java | 373 ++-- .../v1p1beta1/SpeechContextOrBuilder.java | 39 +- .../cloud/speech/v1p1beta1/SpeechProto.java | 420 ++++ .../SpeechRecognitionAlternative.java | 518 ++--- ...SpeechRecognitionAlternativeOrBuilder.java | 48 +- .../v1p1beta1/SpeechRecognitionResult.java | 702 +++--- .../SpeechRecognitionResultOrBuilder.java | 67 +- .../speech/v1p1beta1/SpeechResourceProto.java | 148 ++ .../v1p1beta1/StreamingRecognitionConfig.java | 466 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../v1p1beta1/StreamingRecognitionResult.java | 783 +++---- .../StreamingRecognitionResultOrBuilder.java | 73 +- .../v1p1beta1/StreamingRecognizeRequest.java | 470 ++-- .../StreamingRecognizeRequestOrBuilder.java | 38 +- .../v1p1beta1/StreamingRecognizeResponse.java | 760 +++---- .../StreamingRecognizeResponseOrBuilder.java | 63 +- .../v1p1beta1/TranscriptNormalization.java | 931 +++----- .../TranscriptNormalizationOrBuilder.java | 33 +- .../v1p1beta1/TranscriptOutputConfig.java | 371 ++-- .../TranscriptOutputConfigOrBuilder.java | 33 +- .../v1p1beta1/UpdateCustomClassRequest.java | 480 ++-- .../UpdateCustomClassRequestOrBuilder.java | 46 +- .../v1p1beta1/UpdatePhraseSetRequest.java | 480 ++-- .../UpdatePhraseSetRequestOrBuilder.java | 46 +- .../cloud/speech/v1p1beta1/WordInfo.java | 548 ++--- .../speech/v1p1beta1/WordInfoOrBuilder.java | 49 +- .../cloud/speech/v1p1beta1/cloud_speech.proto | 0 .../v1p1beta1/cloud_speech_adaptation.proto | 0 .../cloud/speech/v1p1beta1/resource.proto | 0 .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 38 + .../AsyncCreateCustomClass.java | 49 + .../SyncCreateCustomClass.java | 45 + ...tomClassLocationnameCustomclassString.java | 41 + ...ateCustomClassStringCustomclassString.java | 41 + .../createphraseset/AsyncCreatePhraseSet.java | 48 + .../createphraseset/SyncCreatePhraseSet.java | 45 + ...ePhraseSetLocationnamePhrasesetString.java | 41 + ...cCreatePhraseSetStringPhrasesetString.java | 41 + .../AsyncDeleteCustomClass.java | 46 + .../SyncDeleteCustomClass.java | 43 + .../SyncDeleteCustomClassCustomclassname.java | 39 + .../SyncDeleteCustomClassString.java | 39 + .../deletephraseset/AsyncDeletePhraseSet.java | 46 + .../deletephraseset/SyncDeletePhraseSet.java | 43 + .../SyncDeletePhraseSetPhrasesetname.java | 39 + .../SyncDeletePhraseSetString.java | 39 + .../getcustomclass/AsyncGetCustomClass.java | 46 + .../getcustomclass/SyncGetCustomClass.java | 43 + .../SyncGetCustomClassCustomclassname.java | 39 + .../SyncGetCustomClassString.java | 39 + .../getphraseset/AsyncGetPhraseSet.java | 46 + .../getphraseset/SyncGetPhraseSet.java | 43 + .../SyncGetPhraseSetPhrasesetname.java | 39 + .../getphraseset/SyncGetPhraseSetString.java | 39 + .../AsyncListCustomClasses.java | 51 + .../AsyncListCustomClassesPaged.java | 59 + .../SyncListCustomClasses.java | 47 + .../SyncListCustomClassesLocationname.java | 41 + .../SyncListCustomClassesString.java | 41 + .../listphraseset/AsyncListPhraseSet.java | 51 + .../AsyncListPhraseSetPaged.java | 58 + .../listphraseset/SyncListPhraseSet.java | 47 + .../SyncListPhraseSetLocationname.java | 41 + .../SyncListPhraseSetString.java | 41 + .../AsyncUpdateCustomClass.java | 48 + .../SyncUpdateCustomClass.java | 44 + ...UpdateCustomClassCustomclassFieldmask.java | 40 + .../updatephraseset/AsyncUpdatePhraseSet.java | 47 + .../updatephraseset/SyncUpdatePhraseSet.java | 44 + ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 40 + .../createphraseset/SyncCreatePhraseSet.java | 45 + .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 37 + .../AsyncLongRunningRecognize.java | 50 + .../AsyncLongRunningRecognizeLRO.java | 52 + .../SyncLongRunningRecognize.java | 47 + ...nizeRecognitionconfigRecognitionaudio.java | 42 + .../recognize/AsyncRecognize.java | 48 + .../speechclient/recognize/SyncRecognize.java | 45 + ...nizeRecognitionconfigRecognitionaudio.java | 41 + .../AsyncStreamingRecognize.java | 45 + .../recognize/SyncRecognize.java | 45 + .../createphraseset/SyncCreatePhraseSet.java | 45 + .../recognize/SyncRecognize.java | 45 + .../v1/DeletePhraseSetRequestOrBuilder.java | 56 - .../v1/GetCustomClassRequestOrBuilder.java | 56 - .../speech/v1/RecognizeRequestOrBuilder.java | 110 - .../speech/v1/SpeechAdaptationProto.java | 311 --- .../google/cloud/speech/v1/SpeechProto.java | 463 ---- .../cloud/speech/v1/SpeechResourceProto.java | 140 -- .../DeletePhraseSetRequestOrBuilder.java | 56 - .../GetCustomClassRequestOrBuilder.java | 56 - .../v1p1beta1/RecognizeRequestOrBuilder.java | 110 - .../v1p1beta1/SpeechAdaptationProto.java | 318 --- .../cloud/speech/v1p1beta1/SpeechProto.java | 481 ---- .../speech/v1p1beta1/SpeechResourceProto.java | 173 -- 340 files changed, 30544 insertions(+), 34093 deletions(-) delete mode 100644 grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java delete mode 100644 grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java delete mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java delete mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java (97%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java (91%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechClient.java (90%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java (88%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/package-info.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java (91%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java (99%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java create mode 100644 owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java (95%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java (87%) create mode 100644 owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeech.java (100%) rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java rename {google-cloud-speech => owl-bot-staging/v1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java create mode 100644 owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java (68%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java (65%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java (68%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java (65%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClass.java (73%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClassName.java (100%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java (69%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java (59%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java (65%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java (69%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java (59%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java (72%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java (74%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java (67%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java (73%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java (69%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java (73%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java (66%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LocationName.java (100%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java (72%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java (74%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java (60%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java (74%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSet.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java (100%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java (72%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java (76%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java (79%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java (84%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java (94%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java (72%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java (76%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java (61%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java (74%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java (75%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java (71%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java (64%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java (79%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContext.java (80%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternative.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java (83%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java (85%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java (73%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java (79%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java (83%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java (63%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java (73%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java (70%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfo.java (77%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java (84%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/cloud_speech.proto (100%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto (100%) rename {proto-google-cloud-speech-v1 => owl-bot-staging/v1/proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/resource.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java (97%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java (91%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java (90%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java (88%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java (91%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java (99%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java (100%) create mode 100644 owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java create mode 100644 owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java create mode 100644 owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java create mode 100644 owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java (95%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java (87%) create mode 100644 owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java (100%) rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java (100%) create mode 100644 owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java rename {google-cloud-speech => owl-bot-staging/v1p1beta1/google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java (100%) create mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java create mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java (69%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java (65%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java (69%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java (65%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java (74%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java (100%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java (59%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java (66%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java (66%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java (59%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java (69%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java (69%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java (67%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java (100%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java (68%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java (60%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java (77%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java (100%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java (74%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java (79%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java (82%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java (93%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java (69%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java (69%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java (61%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java (72%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java (68%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java (79%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java (80%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java (80%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java (85%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java (76%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java (79%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java (74%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java (75%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java (82%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java (72%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java (78%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java (76%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java (81%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java (73%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java (78%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java (70%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java (61%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java (71%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java (72%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java (71%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java (77%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java (84%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto (100%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto (100%) rename {proto-google-cloud-speech-v1p1beta1 => owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto (100%) create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java create mode 100644 owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java delete mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java delete mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java delete mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java delete mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java diff --git a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java deleted file mode 100644 index 5a6d1e037..000000000 --- a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java +++ /dev/null @@ -1,1393 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.speech.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service that implements Google Cloud Speech Adaptation API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1/cloud_speech_adaptation.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdaptationGrpc { - - private AdaptationGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1.Adaptation"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.CreatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> - getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v1.CreatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.CreatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> - getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.CreatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> - getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - AdaptationGrpc.getCreatePhraseSetMethod = - getCreatePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CreatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.GetPhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> - getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v1.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.GetPhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> - getGetPhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.GetPhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> - getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - AdaptationGrpc.getGetPhraseSetMethod = - getGetPhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.GetPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.ListPhraseSetRequest, - com.google.cloud.speech.v1.ListPhraseSetResponse> - getListPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", - requestType = com.google.cloud.speech.v1.ListPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1.ListPhraseSetResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.ListPhraseSetRequest, - com.google.cloud.speech.v1.ListPhraseSetResponse> - getListPhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.ListPhraseSetRequest, - com.google.cloud.speech.v1.ListPhraseSetResponse> - getListPhraseSetMethod; - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - AdaptationGrpc.getListPhraseSetMethod = - getListPhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.ListPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.ListPhraseSetResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) - .build(); - } - } - } - return getListPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.UpdatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> - getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.UpdatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> - getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.UpdatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> - getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - AdaptationGrpc.getUpdatePhraseSetMethod = - getUpdatePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.UpdatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) - .build(); - } - } - } - return getUpdatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.DeletePhraseSetRequest, com.google.protobuf.Empty> - getDeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", - requestType = com.google.cloud.speech.v1.DeletePhraseSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.DeletePhraseSetRequest, com.google.protobuf.Empty> - getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.DeletePhraseSetRequest, com.google.protobuf.Empty> - getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - AdaptationGrpc.getDeletePhraseSetMethod = - getDeletePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.DeletePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.CreateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass> - getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v1.CreateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.CreateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass> - getCreateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.CreateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass> - getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - AdaptationGrpc.getCreateCustomClassMethod = - getCreateCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CreateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.GetCustomClassRequest, com.google.cloud.speech.v1.CustomClass> - getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v1.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.GetCustomClassRequest, com.google.cloud.speech.v1.CustomClass> - getGetCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.GetCustomClassRequest, - com.google.cloud.speech.v1.CustomClass> - getGetCustomClassMethod; - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - AdaptationGrpc.getGetCustomClassMethod = - getGetCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.GetCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.ListCustomClassesRequest, - com.google.cloud.speech.v1.ListCustomClassesResponse> - getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v1.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v1.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.ListCustomClassesRequest, - com.google.cloud.speech.v1.ListCustomClassesResponse> - getListCustomClassesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.ListCustomClassesRequest, - com.google.cloud.speech.v1.ListCustomClassesResponse> - getListCustomClassesMethod; - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - AdaptationGrpc.getListCustomClassesMethod = - getListCustomClassesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.ListCustomClassesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.ListCustomClassesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.UpdateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass> - getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v1.UpdateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.UpdateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass> - getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.UpdateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass> - getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - AdaptationGrpc.getUpdateCustomClassMethod = - getUpdateCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.UpdateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) - .build(); - } - } - } - return getUpdateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.DeleteCustomClassRequest, com.google.protobuf.Empty> - getDeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", - requestType = com.google.cloud.speech.v1.DeleteCustomClassRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.DeleteCustomClassRequest, com.google.protobuf.Empty> - getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.DeleteCustomClassRequest, com.google.protobuf.Empty> - getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - AdaptationGrpc.getDeleteCustomClassMethod = - getDeleteCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.DeleteCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AdaptationStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - }; - return AdaptationStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdaptationBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - }; - return AdaptationBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AdaptationFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - }; - return AdaptationFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public abstract static class AdaptationImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet( - com.google.cloud.speech.v1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCustomClassesMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCustomClassMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.CreatePhraseSetRequest, - com.google.cloud.speech.v1.PhraseSet>(this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.GetPhraseSetRequest, - com.google.cloud.speech.v1.PhraseSet>(this, METHODID_GET_PHRASE_SET))) - .addMethod( - getListPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.ListPhraseSetRequest, - com.google.cloud.speech.v1.ListPhraseSetResponse>( - this, METHODID_LIST_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1.PhraseSet>(this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.DeletePhraseSetRequest, com.google.protobuf.Empty>( - this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.CreateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass>(this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.GetCustomClassRequest, - com.google.cloud.speech.v1.CustomClass>(this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.ListCustomClassesRequest, - com.google.cloud.speech.v1.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.UpdateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass>(this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.DeleteCustomClassRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CUSTOM_CLASS))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { - private AdaptationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet( - com.google.cloud.speech.v1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AdaptationBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.cloud.speech.v1.PhraseSet createPhraseSet( - com.google.cloud.speech.v1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1.PhraseSet getPhraseSet( - com.google.cloud.speech.v1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public com.google.cloud.speech.v1.ListPhraseSetResponse listPhraseSet( - com.google.cloud.speech.v1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1.PhraseSet updatePhraseSet( - com.google.cloud.speech.v1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.protobuf.Empty deletePhraseSet( - com.google.cloud.speech.v1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public com.google.cloud.speech.v1.CustomClass createCustomClass( - com.google.cloud.speech.v1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public com.google.cloud.speech.v1.CustomClass getCustomClass( - com.google.cloud.speech.v1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public com.google.cloud.speech.v1.ListCustomClassesResponse listCustomClasses( - com.google.cloud.speech.v1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public com.google.cloud.speech.v1.CustomClass updateCustomClass( - com.google.cloud.speech.v1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public com.google.protobuf.Empty deleteCustomClass( - com.google.cloud.speech.v1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AdaptationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createPhraseSet(com.google.cloud.speech.v1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getPhraseSet(com.google.cloud.speech.v1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1.ListPhraseSetResponse> - listPhraseSet(com.google.cloud.speech.v1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - updatePhraseSet(com.google.cloud.speech.v1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePhraseSet(com.google.cloud.speech.v1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1.CustomClass> - createCustomClass(com.google.cloud.speech.v1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1.CustomClass> - getCustomClass(com.google.cloud.speech.v1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1.ListCustomClassesResponse> - listCustomClasses(com.google.cloud.speech.v1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1.CustomClass> - updateCustomClass(com.google.cloud.speech.v1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCustomClass(com.google.cloud.speech.v1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PHRASE_SET = 0; - private static final int METHODID_GET_PHRASE_SET = 1; - private static final int METHODID_LIST_PHRASE_SET = 2; - private static final int METHODID_UPDATE_PHRASE_SET = 3; - private static final int METHODID_DELETE_PHRASE_SET = 4; - private static final int METHODID_CREATE_CUSTOM_CLASS = 5; - private static final int METHODID_GET_CUSTOM_CLASS = 6; - private static final int METHODID_LIST_CUSTOM_CLASSES = 7; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; - private static final int METHODID_DELETE_CUSTOM_CLASS = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AdaptationImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet( - (com.google.cloud.speech.v1.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet( - (com.google.cloud.speech.v1.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PHRASE_SET: - serviceImpl.listPhraseSet( - (com.google.cloud.speech.v1.ListPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet( - (com.google.cloud.speech.v1.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet( - (com.google.cloud.speech.v1.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass( - (com.google.cloud.speech.v1.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass( - (com.google.cloud.speech.v1.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses( - (com.google.cloud.speech.v1.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass( - (com.google.cloud.speech.v1.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass( - (com.google.cloud.speech.v1.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdaptationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Adaptation"); - } - } - - private static final class AdaptationFileDescriptorSupplier - extends AdaptationBaseDescriptorSupplier { - AdaptationFileDescriptorSupplier() {} - } - - private static final class AdaptationMethodDescriptorSupplier - extends AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdaptationMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AdaptationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getListPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java deleted file mode 100644 index 846458da2..000000000 --- a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java +++ /dev/null @@ -1,579 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.speech.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> - getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> - getRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.RecognizeRequest, - com.google.cloud.speech.v1.RecognizeResponse> - getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = - getRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> - getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> - getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, - com.google.longrunning.Operation> - getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = - getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.LongRunningRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse> - getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = - getStreamingRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public abstract static class SpeechImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLongRunningRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingRecognize( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.RecognizeRequest, - com.google.cloud.speech.v1.RecognizeResponse>(this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingRecognize( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1.RecognizeResponse recognize( - com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1.RecognizeResponse> - recognize(com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize( - (com.google.cloud.speech.v1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize( - (com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) - serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1.StreamingRecognizeResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java deleted file mode 100644 index 5a5395620..000000000 --- a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java +++ /dev/null @@ -1,1424 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.speech.v1p1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service that implements Google Cloud Speech Adaptation API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdaptationGrpc { - - private AdaptationGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - AdaptationGrpc.getCreatePhraseSetMethod = - getCreatePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getGetPhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - AdaptationGrpc.getGetPhraseSetMethod = - getGetPhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> - getListPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> - getListPhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> - getListPhraseSetMethod; - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - AdaptationGrpc.getListPhraseSetMethod = - getListPhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse - .getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) - .build(); - } - } - } - return getListPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet> - getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - AdaptationGrpc.getUpdatePhraseSetMethod = - getUpdatePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) - .build(); - } - } - } - return getUpdatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> - getDeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> - getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> - getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - AdaptationGrpc.getDeletePhraseSetMethod = - getDeletePhraseSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getCreateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - AdaptationGrpc.getCreateCustomClassMethod = - getCreateCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getGetCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getGetCustomClassMethod; - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - AdaptationGrpc.getGetCustomClassMethod = - getGetCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> - getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> - getListCustomClassesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> - getListCustomClassesMethod; - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - AdaptationGrpc.getListCustomClassesMethod = - getListCustomClassesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass> - getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - AdaptationGrpc.getUpdateCustomClassMethod = - getUpdateCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) - .build(); - } - } - } - return getUpdateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> - getDeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> - getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> - getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - AdaptationGrpc.getDeleteCustomClassMethod = - getDeleteCustomClassMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AdaptationStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - }; - return AdaptationStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdaptationBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - }; - return AdaptationBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AdaptationFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - }; - return AdaptationFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public abstract static class AdaptationImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePhraseSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListCustomClassesMethod(), responseObserver); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateCustomClassMethod(), responseObserver); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteCustomClassMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>(this, METHODID_GET_PHRASE_SET))) - .addMethod( - getListPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( - this, METHODID_LIST_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CUSTOM_CLASS))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { - private AdaptationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AdaptationBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.protobuf.Empty deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public com.google.protobuf.Empty deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AdaptationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.PhraseSet> - createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.PhraseSet> - getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List phrase sets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> - listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.PhraseSet> - updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Create a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.CustomClass> - createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.CustomClass> - getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * List custom classes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> - listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Update a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.CustomClass> - updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Delete a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PHRASE_SET = 0; - private static final int METHODID_GET_PHRASE_SET = 1; - private static final int METHODID_LIST_PHRASE_SET = 2; - private static final int METHODID_UPDATE_PHRASE_SET = 3; - private static final int METHODID_DELETE_PHRASE_SET = 4; - private static final int METHODID_CREATE_CUSTOM_CLASS = 5; - private static final int METHODID_GET_CUSTOM_CLASS = 6; - private static final int METHODID_LIST_CUSTOM_CLASSES = 7; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; - private static final int METHODID_DELETE_CUSTOM_CLASS = 9; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AdaptationImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet( - (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet( - (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_PHRASE_SET: - serviceImpl.listPhraseSet( - (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet( - (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet( - (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass( - (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass( - (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses( - (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>) - responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass( - (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass( - (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdaptationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Adaptation"); - } - } - - private static final class AdaptationFileDescriptorSupplier - extends AdaptationBaseDescriptorSupplier { - AdaptationFileDescriptorSupplier() {} - } - - private static final class AdaptationMethodDescriptorSupplier - extends AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdaptationMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AdaptationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getListPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java deleted file mode 100644 index c3bc87f0f..000000000 --- a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java +++ /dev/null @@ -1,589 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.speech.v1p1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse> - getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse> - getRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse> - getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = - getRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation> - getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation> - getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation> - getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = - getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = - getStreamingRecognizeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse - .getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public abstract static class SpeechImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLongRunningRecognizeMethod(), responseObserver); - } - - /** - * - * - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingRecognize( - io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver - streamingRecognize( - io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> - responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub - extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.speech.v1p1beta1.RecognizeResponse> - recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize( - (com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize( - (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) - serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>) - responseObserver); - default: - throw new AssertionError(); - } - } - } - - private abstract static class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java similarity index 97% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java index 48354ebe4..7f0a4d188 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java @@ -59,13 +59,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -100,6 +100,20 @@ * AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AdaptationSettings adaptationSettings =
+ *     AdaptationSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             AdaptationSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -1375,10 +1389,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListPhraseSetPagedResponse extends AbstractPagedListResponse< - ListPhraseSetRequest, - ListPhraseSetResponse, - PhraseSet, - ListPhraseSetPage, + ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { public static ApiFuture createAsync( @@ -1428,10 +1439,7 @@ public ApiFuture createPageAsync( public static class ListPhraseSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListPhraseSetRequest, - ListPhraseSetResponse, - PhraseSet, - ListPhraseSetPage, + ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { private ListPhraseSetFixedSizeCollection(List pages, int collectionSize) { @@ -1451,10 +1459,7 @@ protected ListPhraseSetFixedSizeCollection createCollection( public static class ListCustomClassesPagedResponse extends AbstractPagedListResponse< - ListCustomClassesRequest, - ListCustomClassesResponse, - CustomClass, - ListCustomClassesPage, + ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1504,10 +1509,7 @@ public ApiFuture createPageAsync( public static class ListCustomClassesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCustomClassesRequest, - ListCustomClassesResponse, - CustomClass, - ListCustomClassesPage, + ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java similarity index 91% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java index 168c66996..96948bc91 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java @@ -24,10 +24,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.speech.v1.stub.AdaptationStubSettings; @@ -43,9 +45,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -149,11 +151,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return AdaptationStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return AdaptationStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AdaptationStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return AdaptationStubSettings.defaultTransportChannelProvider(); } @@ -163,11 +172,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return AdaptationStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -205,6 +220,11 @@ private static Builder createDefault() { return new Builder(AdaptationStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(AdaptationStubSettings.newHttpJsonBuilder()); + } + public AdaptationStubSettings.Builder getStubSettingsBuilder() { return ((AdaptationStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java similarity index 90% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java index f27d2f257..afe749c81 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java @@ -17,6 +17,7 @@ package com.google.cloud.speech.v1; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.OperationCallable; @@ -24,7 +25,6 @@ import com.google.cloud.speech.v1.stub.SpeechStub; import com.google.cloud.speech.v1.stub.SpeechStubSettings; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -53,13 +53,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -93,13 +93,28 @@ * SpeechClient speechClient = SpeechClient.create(speechSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * SpeechSettings speechSettings =
+ *     SpeechSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             SpeechSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * SpeechClient speechClient = SpeechClient.create(speechSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") public class SpeechClient implements BackgroundResource { private final SpeechSettings settings; private final SpeechStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of SpeechClient with default settings. */ public static final SpeechClient create() throws IOException { @@ -129,13 +144,17 @@ public static final SpeechClient create(SpeechStub stub) { protected SpeechClient(SpeechSettings settings) throws IOException { this.settings = settings; this.stub = ((SpeechStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected SpeechClient(SpeechStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final SpeechSettings getSettings() { @@ -150,10 +169,18 @@ public SpeechStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Performs synchronous speech recognition: receive results after all audio has been sent and diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java similarity index 88% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index 9d7e5cb16..0dadc2818 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java @@ -21,11 +21,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.speech.v1.stub.SpeechStubSettings; @@ -41,9 +43,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -117,11 +119,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return SpeechStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return SpeechStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SpeechStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return SpeechStubSettings.defaultTransportChannelProvider(); } @@ -131,11 +140,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return SpeechStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -173,6 +188,11 @@ private static Builder createDefault() { return new Builder(SpeechStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SpeechStubSettings.newHttpJsonBuilder()); + } + public SpeechStubSettings.Builder getStubSettingsBuilder() { return ((SpeechStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java similarity index 91% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java index 224db8592..e15941b0a 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -71,9 +74,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -215,8 +218,7 @@ public ApiFuture getFuturePagedResponse( ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse> LIST_CUSTOM_CLASSES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCustomClassesRequest, - ListCustomClassesResponse, + ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -291,6 +293,11 @@ public AdaptationStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAdaptationStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAdaptationStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -323,18 +330,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(AdaptationStubSettings.class)) @@ -342,11 +356,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AdaptationStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AdaptationStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -489,6 +522,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createPhraseSetSettings() diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java similarity index 99% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java index 881efcbe3..45bd5bdce 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java @@ -45,6 +45,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java new file mode 100644 index 000000000..5d7274207 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Adaptation service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAdaptationCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java new file mode 100644 index 000000000..57b6354cb --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java @@ -0,0 +1,695 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.stub; + +import static com.google.cloud.speech.v1.AdaptationClient.ListCustomClassesPagedResponse; +import static com.google.cloud.speech.v1.AdaptationClient.ListPhraseSetPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.speech.v1.CreateCustomClassRequest; +import com.google.cloud.speech.v1.CreatePhraseSetRequest; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.DeleteCustomClassRequest; +import com.google.cloud.speech.v1.DeletePhraseSetRequest; +import com.google.cloud.speech.v1.GetCustomClassRequest; +import com.google.cloud.speech.v1.GetPhraseSetRequest; +import com.google.cloud.speech.v1.ListCustomClassesRequest; +import com.google.cloud.speech.v1.ListCustomClassesResponse; +import com.google.cloud.speech.v1.ListPhraseSetRequest; +import com.google.cloud.speech.v1.ListPhraseSetResponse; +import com.google.cloud.speech.v1.PhraseSet; +import com.google.cloud.speech.v1.UpdateCustomClassRequest; +import com.google.cloud.speech.v1.UpdatePhraseSetRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Adaptation service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonAdaptationStub extends AdaptationStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createPhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/CreatePhraseSet") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/phraseSets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PhraseSet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getPhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/GetPhraseSet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/phraseSets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PhraseSet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listPhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/ListPhraseSet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/phraseSets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListPhraseSetResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updatePhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/UpdatePhraseSet") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{phraseSet.name=projects/*/locations/*/phraseSets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "phraseSet.name", request.getPhraseSet().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("phraseSet", request.getPhraseSet())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PhraseSet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deletePhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/DeletePhraseSet") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/phraseSets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCustomClassMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/CreateCustomClass") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/customClasses", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomClass.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCustomClassMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/GetCustomClass") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/customClasses/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomClass.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCustomClassesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/ListCustomClasses") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/customClasses", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCustomClassesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCustomClassMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/UpdateCustomClass") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{customClass.name=projects/*/locations/*/customClasses/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "customClass.name", request.getCustomClass().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("customClass", request.getCustomClass())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomClass.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCustomClassMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Adaptation/DeleteCustomClass") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/customClasses/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createPhraseSetCallable; + private final UnaryCallable getPhraseSetCallable; + private final UnaryCallable listPhraseSetCallable; + private final UnaryCallable + listPhraseSetPagedCallable; + private final UnaryCallable updatePhraseSetCallable; + private final UnaryCallable deletePhraseSetCallable; + private final UnaryCallable createCustomClassCallable; + private final UnaryCallable getCustomClassCallable; + private final UnaryCallable + listCustomClassesCallable; + private final UnaryCallable + listCustomClassesPagedCallable; + private final UnaryCallable updateCustomClassCallable; + private final UnaryCallable deleteCustomClassCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAdaptationStub create(AdaptationStubSettings settings) + throws IOException { + return new HttpJsonAdaptationStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAdaptationStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAdaptationStub( + AdaptationStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAdaptationStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAdaptationStub( + AdaptationStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAdaptationStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonAdaptationCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAdaptationStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonAdaptationStub( + AdaptationStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createPhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createPhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getPhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listPhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listPhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updatePhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deletePhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deletePhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createCustomClassTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCustomClassMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getCustomClassTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCustomClassMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCustomClassesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCustomClassesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateCustomClassTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCustomClassMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteCustomClassTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCustomClassMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createPhraseSetCallable = + callableFactory.createUnaryCallable( + createPhraseSetTransportSettings, settings.createPhraseSetSettings(), clientContext); + this.getPhraseSetCallable = + callableFactory.createUnaryCallable( + getPhraseSetTransportSettings, settings.getPhraseSetSettings(), clientContext); + this.listPhraseSetCallable = + callableFactory.createUnaryCallable( + listPhraseSetTransportSettings, settings.listPhraseSetSettings(), clientContext); + this.listPhraseSetPagedCallable = + callableFactory.createPagedCallable( + listPhraseSetTransportSettings, settings.listPhraseSetSettings(), clientContext); + this.updatePhraseSetCallable = + callableFactory.createUnaryCallable( + updatePhraseSetTransportSettings, settings.updatePhraseSetSettings(), clientContext); + this.deletePhraseSetCallable = + callableFactory.createUnaryCallable( + deletePhraseSetTransportSettings, settings.deletePhraseSetSettings(), clientContext); + this.createCustomClassCallable = + callableFactory.createUnaryCallable( + createCustomClassTransportSettings, + settings.createCustomClassSettings(), + clientContext); + this.getCustomClassCallable = + callableFactory.createUnaryCallable( + getCustomClassTransportSettings, settings.getCustomClassSettings(), clientContext); + this.listCustomClassesCallable = + callableFactory.createUnaryCallable( + listCustomClassesTransportSettings, + settings.listCustomClassesSettings(), + clientContext); + this.listCustomClassesPagedCallable = + callableFactory.createPagedCallable( + listCustomClassesTransportSettings, + settings.listCustomClassesSettings(), + clientContext); + this.updateCustomClassCallable = + callableFactory.createUnaryCallable( + updateCustomClassTransportSettings, + settings.updateCustomClassSettings(), + clientContext); + this.deleteCustomClassCallable = + callableFactory.createUnaryCallable( + deleteCustomClassTransportSettings, + settings.deleteCustomClassSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createPhraseSetMethodDescriptor); + methodDescriptors.add(getPhraseSetMethodDescriptor); + methodDescriptors.add(listPhraseSetMethodDescriptor); + methodDescriptors.add(updatePhraseSetMethodDescriptor); + methodDescriptors.add(deletePhraseSetMethodDescriptor); + methodDescriptors.add(createCustomClassMethodDescriptor); + methodDescriptors.add(getCustomClassMethodDescriptor); + methodDescriptors.add(listCustomClassesMethodDescriptor); + methodDescriptors.add(updateCustomClassMethodDescriptor); + methodDescriptors.add(deleteCustomClassMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createPhraseSetCallable() { + return createPhraseSetCallable; + } + + @Override + public UnaryCallable getPhraseSetCallable() { + return getPhraseSetCallable; + } + + @Override + public UnaryCallable listPhraseSetCallable() { + return listPhraseSetCallable; + } + + @Override + public UnaryCallable + listPhraseSetPagedCallable() { + return listPhraseSetPagedCallable; + } + + @Override + public UnaryCallable updatePhraseSetCallable() { + return updatePhraseSetCallable; + } + + @Override + public UnaryCallable deletePhraseSetCallable() { + return deletePhraseSetCallable; + } + + @Override + public UnaryCallable createCustomClassCallable() { + return createCustomClassCallable; + } + + @Override + public UnaryCallable getCustomClassCallable() { + return getCustomClassCallable; + } + + @Override + public UnaryCallable + listCustomClassesCallable() { + return listCustomClassesCallable; + } + + @Override + public UnaryCallable + listCustomClassesPagedCallable() { + return listCustomClassesPagedCallable; + } + + @Override + public UnaryCallable updateCustomClassCallable() { + return updateCustomClassCallable; + } + + @Override + public UnaryCallable deleteCustomClassCallable() { + return deleteCustomClassCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java new file mode 100644 index 000000000..04d590f69 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Speech service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSpeechCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java new file mode 100644 index 000000000..92497e95f --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java @@ -0,0 +1,279 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.speech.v1.LongRunningRecognizeMetadata; +import com.google.cloud.speech.v1.LongRunningRecognizeRequest; +import com.google.cloud.speech.v1.LongRunningRecognizeResponse; +import com.google.cloud.speech.v1.RecognizeRequest; +import com.google.cloud.speech.v1.RecognizeResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Speech service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonSpeechStub extends SpeechStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(LongRunningRecognizeResponse.getDescriptor()) + .add(LongRunningRecognizeMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + recognizeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Speech/Recognize") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/speech:recognize", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RecognizeResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + longRunningRecognizeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1.Speech/LongRunningRecognize") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/speech:longrunningrecognize", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (LongRunningRecognizeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable recognizeCallable; + private final UnaryCallable longRunningRecognizeCallable; + private final OperationCallable< + LongRunningRecognizeRequest, LongRunningRecognizeResponse, LongRunningRecognizeMetadata> + longRunningRecognizeOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSpeechStub create(SpeechStubSettings settings) throws IOException { + return new HttpJsonSpeechStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSpeechStub create(ClientContext clientContext) throws IOException { + return new HttpJsonSpeechStub(SpeechStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSpeechStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSpeechStub( + SpeechStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSpeechStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonSpeechCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSpeechStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonSpeechStub( + SpeechStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings recognizeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(recognizeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + longRunningRecognizeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(longRunningRecognizeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.recognizeCallable = + callableFactory.createUnaryCallable( + recognizeTransportSettings, settings.recognizeSettings(), clientContext); + this.longRunningRecognizeCallable = + callableFactory.createUnaryCallable( + longRunningRecognizeTransportSettings, + settings.longRunningRecognizeSettings(), + clientContext); + this.longRunningRecognizeOperationCallable = + callableFactory.createOperationCallable( + longRunningRecognizeTransportSettings, + settings.longRunningRecognizeOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(recognizeMethodDescriptor); + methodDescriptors.add(longRunningRecognizeMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable recognizeCallable() { + return recognizeCallable; + } + + @Override + public UnaryCallable longRunningRecognizeCallable() { + return longRunningRecognizeCallable; + } + + @Override + public OperationCallable< + LongRunningRecognizeRequest, LongRunningRecognizeResponse, LongRunningRecognizeMetadata> + longRunningRecognizeOperationCallable() { + return longRunningRecognizeOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java similarity index 95% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java index 8a0f0f93f..5e70c9d92 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java @@ -41,7 +41,11 @@ public abstract class SpeechStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable recognizeCallable() { diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java similarity index 87% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java rename to owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java index 1f734fb65..d99deb73f 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java @@ -25,6 +25,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -60,9 +63,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -130,6 +133,11 @@ public SpeechStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSpeechStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSpeechStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -162,29 +170,54 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(SpeechStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(SpeechStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SpeechStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -305,6 +338,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .recognizeSettings() diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java new file mode 100644 index 000000000..c69082500 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java @@ -0,0 +1,940 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1; + +import static com.google.cloud.speech.v1.AdaptationClient.ListCustomClassesPagedResponse; +import static com.google.cloud.speech.v1.AdaptationClient.ListPhraseSetPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.speech.v1.stub.HttpJsonAdaptationStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AdaptationClientHttpJsonTest { + private static MockHttpService mockService; + private static AdaptationClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAdaptationStub.getMethodDescriptors(), AdaptationSettings.getDefaultEndpoint()); + AdaptationSettings settings = + AdaptationSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AdaptationSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AdaptationClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createPhraseSetTest() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + + PhraseSet actualResponse = client.createPhraseSet(parent, phraseSet, phraseSetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createPhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + client.createPhraseSet(parent, phraseSet, phraseSetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPhraseSetTest2() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + + PhraseSet actualResponse = client.createPhraseSet(parent, phraseSet, phraseSetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createPhraseSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + client.createPhraseSet(parent, phraseSet, phraseSetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPhraseSetTest() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + + PhraseSet actualResponse = client.getPhraseSet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + client.getPhraseSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPhraseSetTest2() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-458/locations/location-458/phraseSets/phraseSet-458"; + + PhraseSet actualResponse = client.getPhraseSet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPhraseSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-458/locations/location-458/phraseSets/phraseSet-458"; + client.getPhraseSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPhraseSetTest() throws Exception { + PhraseSet responsesElement = PhraseSet.newBuilder().build(); + ListPhraseSetResponse expectedResponse = + ListPhraseSetResponse.newBuilder() + .setNextPageToken("") + .addAllPhraseSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPhraseSetPagedResponse pagedListResponse = client.listPhraseSet(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPhraseSetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPhraseSet(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPhraseSetTest2() throws Exception { + PhraseSet responsesElement = PhraseSet.newBuilder().build(); + ListPhraseSetResponse expectedResponse = + ListPhraseSetResponse.newBuilder() + .setNextPageToken("") + .addAllPhraseSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListPhraseSetPagedResponse pagedListResponse = client.listPhraseSet(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPhraseSetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPhraseSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listPhraseSet(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePhraseSetTest() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + PhraseSet phraseSet = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + PhraseSet actualResponse = client.updatePhraseSet(phraseSet, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updatePhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PhraseSet phraseSet = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePhraseSet(phraseSet, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePhraseSetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + + client.deletePhraseSet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deletePhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + client.deletePhraseSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePhraseSetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-458/locations/location-458/phraseSets/phraseSet-458"; + + client.deletePhraseSet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deletePhraseSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-458/locations/location-458/phraseSets/phraseSet-458"; + client.deletePhraseSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomClassTest() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + + CustomClass actualResponse = client.createCustomClass(parent, customClass, customClassId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCustomClassExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + client.createCustomClass(parent, customClass, customClassId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomClassTest2() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + + CustomClass actualResponse = client.createCustomClass(parent, customClass, customClassId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCustomClassExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + client.createCustomClass(parent, customClass, customClassId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomClassTest() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + + CustomClass actualResponse = client.getCustomClass(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCustomClassExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + client.getCustomClass(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomClassTest2() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4379/locations/location-4379/customClasses/customClasse-4379"; + + CustomClass actualResponse = client.getCustomClass(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCustomClassExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4379/locations/location-4379/customClasses/customClasse-4379"; + client.getCustomClass(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomClassesTest() throws Exception { + CustomClass responsesElement = CustomClass.newBuilder().build(); + ListCustomClassesResponse expectedResponse = + ListCustomClassesResponse.newBuilder() + .setNextPageToken("") + .addAllCustomClasses(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCustomClassesPagedResponse pagedListResponse = client.listCustomClasses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomClassesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCustomClassesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCustomClasses(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomClassesTest2() throws Exception { + CustomClass responsesElement = CustomClass.newBuilder().build(); + ListCustomClassesResponse expectedResponse = + ListCustomClassesResponse.newBuilder() + .setNextPageToken("") + .addAllCustomClasses(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCustomClassesPagedResponse pagedListResponse = client.listCustomClasses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomClassesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCustomClassesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listCustomClasses(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomClassTest() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CustomClass customClass = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomClass actualResponse = client.updateCustomClass(customClass, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCustomClassExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomClass customClass = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomClass(customClass, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCustomClassTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + + client.deleteCustomClass(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCustomClassExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + client.deleteCustomClass(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCustomClassTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4379/locations/location-4379/customClasses/customClasse-4379"; + + client.deleteCustomClass(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCustomClassExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4379/locations/location-4379/customClasses/customClasse-4379"; + client.deleteCustomClass(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java rename to owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java rename to owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java rename to owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java rename to owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java rename to owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java new file mode 100644 index 000000000..48a8fa5ec --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java @@ -0,0 +1,186 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.speech.v1.stub.HttpJsonSpeechStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SpeechClientHttpJsonTest { + private static MockHttpService mockService; + private static SpeechClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSpeechStub.getMethodDescriptors(), SpeechSettings.getDefaultEndpoint()); + SpeechSettings settings = + SpeechSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SpeechSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SpeechClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void recognizeTest() throws Exception { + RecognizeResponse expectedResponse = + RecognizeResponse.newBuilder() + .addAllResults(new ArrayList()) + .setTotalBilledTime(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + + RecognizeResponse actualResponse = client.recognize(config, audio); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void recognizeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + client.recognize(config, audio); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void longRunningRecognizeTest() throws Exception { + LongRunningRecognizeResponse expectedResponse = + LongRunningRecognizeResponse.newBuilder() + .addAllResults(new ArrayList()) + .setTotalBilledTime(Duration.newBuilder().build()) + .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) + .setOutputError(Status.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("longRunningRecognizeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + + LongRunningRecognizeResponse actualResponse = + client.longRunningRecognizeAsync(config, audio).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void longRunningRecognizeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + client.longRunningRecognizeAsync(config, audio).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void streamingRecognizeUnsupportedMethodTest() throws Exception { + // The streamingRecognize() method is not supported in REST transport. + //This empty test is generated for technical reasons. + } +} diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java b/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java rename to owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java new file mode 100644 index 000000000..b536dba14 --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java @@ -0,0 +1,1085 @@ +package com.google.cloud.speech.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service that implements Google Cloud Speech Adaptation API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1/cloud_speech_adaptation.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdaptationGrpc { + + private AdaptationGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1.Adaptation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v1.CreatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + AdaptationGrpc.getCreatePhraseSetMethod = getCreatePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CreatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v1.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { + io.grpc.MethodDescriptor getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + AdaptationGrpc.getGetPhraseSetMethod = getGetPhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.GetPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", + requestType = com.google.cloud.speech.v1.ListPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1.ListPhraseSetResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPhraseSetMethod() { + io.grpc.MethodDescriptor getListPhraseSetMethod; + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + AdaptationGrpc.getListPhraseSetMethod = getListPhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.ListPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.ListPhraseSetResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) + .build(); + } + } + } + return getListPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + AdaptationGrpc.getUpdatePhraseSetMethod = getUpdatePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.UpdatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) + .build(); + } + } + } + return getUpdatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", + requestType = com.google.cloud.speech.v1.DeletePhraseSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + AdaptationGrpc.getDeletePhraseSetMethod = getDeletePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.DeletePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v1.CreateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { + io.grpc.MethodDescriptor getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + AdaptationGrpc.getCreateCustomClassMethod = getCreateCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CreateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v1.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCustomClassMethod() { + io.grpc.MethodDescriptor getGetCustomClassMethod; + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + AdaptationGrpc.getGetCustomClassMethod = getGetCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.GetCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v1.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v1.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCustomClassesMethod() { + io.grpc.MethodDescriptor getListCustomClassesMethod; + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + AdaptationGrpc.getListCustomClassesMethod = getListCustomClassesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.ListCustomClassesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.ListCustomClassesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v1.UpdateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + AdaptationGrpc.getUpdateCustomClassMethod = getUpdateCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.UpdateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) + .build(); + } + } + } + return getUpdateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", + requestType = com.google.cloud.speech.v1.DeleteCustomClassRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + AdaptationGrpc.getDeleteCustomClassMethod = getDeleteCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.DeleteCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AdaptationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + }; + return AdaptationStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdaptationBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + }; + return AdaptationBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AdaptationFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + }; + return AdaptationFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static abstract class AdaptationImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet(com.google.cloud.speech.v1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetMethod(), responseObserver); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.CreatePhraseSetRequest, + com.google.cloud.speech.v1.PhraseSet>( + this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.GetPhraseSetRequest, + com.google.cloud.speech.v1.PhraseSet>( + this, METHODID_GET_PHRASE_SET))) + .addMethod( + getListPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.ListPhraseSetRequest, + com.google.cloud.speech.v1.ListPhraseSetResponse>( + this, METHODID_LIST_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1.PhraseSet>( + this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.DeletePhraseSetRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.CreateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass>( + this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.GetCustomClassRequest, + com.google.cloud.speech.v1.CustomClass>( + this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.ListCustomClassesRequest, + com.google.cloud.speech.v1.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.UpdateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass>( + this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.DeleteCustomClassRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CUSTOM_CLASS))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { + private AdaptationStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet(com.google.cloud.speech.v1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AdaptationBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.cloud.speech.v1.PhraseSet createPhraseSet(com.google.cloud.speech.v1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1.PhraseSet getPhraseSet(com.google.cloud.speech.v1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public com.google.cloud.speech.v1.ListPhraseSetResponse listPhraseSet(com.google.cloud.speech.v1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1.PhraseSet updatePhraseSet(com.google.cloud.speech.v1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.protobuf.Empty deletePhraseSet(com.google.cloud.speech.v1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1.CustomClass createCustomClass(com.google.cloud.speech.v1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1.CustomClass getCustomClass(com.google.cloud.speech.v1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public com.google.cloud.speech.v1.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1.CustomClass updateCustomClass(com.google.cloud.speech.v1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.protobuf.Empty deleteCustomClass(com.google.cloud.speech.v1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationFutureStub extends io.grpc.stub.AbstractFutureStub { + private AdaptationFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPhraseSet( + com.google.cloud.speech.v1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPhraseSet( + com.google.cloud.speech.v1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPhraseSet( + com.google.cloud.speech.v1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( + com.google.cloud.speech.v1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( + com.google.cloud.speech.v1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCustomClass( + com.google.cloud.speech.v1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCustomClass( + com.google.cloud.speech.v1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCustomClasses( + com.google.cloud.speech.v1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCustomClass( + com.google.cloud.speech.v1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( + com.google.cloud.speech.v1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_PHRASE_SET = 0; + private static final int METHODID_GET_PHRASE_SET = 1; + private static final int METHODID_LIST_PHRASE_SET = 2; + private static final int METHODID_UPDATE_PHRASE_SET = 3; + private static final int METHODID_DELETE_PHRASE_SET = 4; + private static final int METHODID_CREATE_CUSTOM_CLASS = 5; + private static final int METHODID_GET_CUSTOM_CLASS = 6; + private static final int METHODID_LIST_CUSTOM_CLASSES = 7; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; + private static final int METHODID_DELETE_CUSTOM_CLASS = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AdaptationImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet((com.google.cloud.speech.v1.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet((com.google.cloud.speech.v1.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PHRASE_SET: + serviceImpl.listPhraseSet((com.google.cloud.speech.v1.ListPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet((com.google.cloud.speech.v1.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet((com.google.cloud.speech.v1.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass((com.google.cloud.speech.v1.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass((com.google.cloud.speech.v1.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses((com.google.cloud.speech.v1.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass((com.google.cloud.speech.v1.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass((com.google.cloud.speech.v1.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdaptationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Adaptation"); + } + } + + private static final class AdaptationFileDescriptorSupplier + extends AdaptationBaseDescriptorSupplier { + AdaptationFileDescriptorSupplier() {} + } + + private static final class AdaptationMethodDescriptorSupplier + extends AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdaptationMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdaptationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getListPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java new file mode 100644 index 000000000..46b71822a --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java @@ -0,0 +1,479 @@ +package com.google.cloud.speech.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRecognizeMethod() { + io.grpc.MethodDescriptor getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = getRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.LongRunningRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SpeechFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static abstract class SpeechImplBase implements io.grpc.BindableService { + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); + } + + /** + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingRecognize( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.RecognizeRequest, + com.google.cloud.speech.v1.RecognizeResponse>( + this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>( + this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingRecognize( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1.RecognizeResponse recognize(com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture recognize( + com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize((com.google.cloud.speech.v1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize((com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier + extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier + extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java similarity index 68% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java index 14edd0a70..9484bfd6c 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `CreateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.CreateCustomClassRequest} */ -public final class CreateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CreateCustomClassRequest) CreateCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateCustomClassRequest.newBuilder() to construct. private CreateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateCustomClassRequest() { parent_ = ""; customClassId_ = ""; @@ -44,15 +26,16 @@ private CreateCustomClassRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateCustomClassRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - customClassId_ = s; - break; + customClassId_ = s; + break; + } + case 26: { + com.google.cloud.speech.v1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); } - case 26: - { - com.google.cloud.speech.v1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } - - break; + customClass_ = input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,33 +93,29 @@ private CreateCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CreateCustomClassRequest.class, - com.google.cloud.speech.v1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.CreateCustomClassRequest.class, com.google.cloud.speech.v1.CreateCustomClassRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -152,10 +126,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -164,15 +135,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -183,18 +153,17 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -205,8 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -215,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ @java.lang.Override @@ -224,15 +190,14 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -241,15 +206,16 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -260,16 +226,11 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { public static final int CUSTOM_CLASS_FIELD_NUMBER = 3; private com.google.cloud.speech.v1.CustomClass customClass_; /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ @java.lang.Override @@ -277,34 +238,23 @@ public boolean hasCustomClass() { return customClass_ != null; } /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1.CustomClass getCustomClass() { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -312,7 +262,6 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -350,7 +300,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomClass()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCustomClass()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,19 +311,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.CreateCustomClassRequest other = - (com.google.cloud.speech.v1.CreateCustomClassRequest) obj; + com.google.cloud.speech.v1.CreateCustomClassRequest other = (com.google.cloud.speech.v1.CreateCustomClassRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCustomClassId() + .equals(other.getCustomClassId())) return false; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass().equals(other.getCustomClass())) return false; + if (!getCustomClass() + .equals(other.getCustomClass())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -399,126 +352,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.CreateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `CreateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.CreateCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CreateCustomClassRequest) com.google.cloud.speech.v1.CreateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CreateCustomClassRequest.class, - com.google.cloud.speech.v1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.CreateCustomClassRequest.class, com.google.cloud.speech.v1.CreateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.CreateCustomClassRequest.newBuilder() @@ -526,15 +470,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -552,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; } @java.lang.Override @@ -573,8 +518,7 @@ public com.google.cloud.speech.v1.CreateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1.CreateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1.CreateCustomClassRequest result = - new com.google.cloud.speech.v1.CreateCustomClassRequest(this); + com.google.cloud.speech.v1.CreateCustomClassRequest result = new com.google.cloud.speech.v1.CreateCustomClassRequest(this); result.parent_ = parent_; result.customClassId_ = customClassId_; if (customClassBuilder_ == null) { @@ -590,39 +534,38 @@ public com.google.cloud.speech.v1.CreateCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.CreateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1.CreateCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1.CreateCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -630,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.CreateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1.CreateCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.CreateCustomClassRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -662,8 +604,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.CreateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.CreateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -675,8 +616,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -687,16 +626,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -705,8 +642,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -717,17 +652,16 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -735,8 +669,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -747,25 +679,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -776,21 +704,16 @@ public Builder setParent(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -801,19 +724,17 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -821,8 +742,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object customClassId_ = ""; /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -831,13 +750,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -846,8 +765,6 @@ public java.lang.String getCustomClassId() { } } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -856,14 +773,15 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -871,8 +789,6 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -881,22 +797,20 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId(java.lang.String value) { + public Builder setCustomClassId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -905,18 +819,15 @@ public Builder setCustomClassId(java.lang.String value) {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -925,16 +836,16 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; @@ -942,58 +853,39 @@ public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder> - customClassBuilder_; + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> customClassBuilder_; /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ public com.google.cloud.speech.v1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } else { return customClassBuilder_.getMessage(); } } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) { if (customClassBuilder_ == null) { @@ -1009,17 +901,14 @@ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) { return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass.Builder builderForValue) { + public Builder setCustomClass( + com.google.cloud.speech.v1.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); onChanged(); @@ -1030,23 +919,17 @@ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass.Builder bui return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1.CustomClass.newBuilder(customClass_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); } else { customClass_ = value; } @@ -1058,15 +941,11 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) { return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -1080,71 +959,55 @@ public Builder clearCustomClass() { return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? + com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder> + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder>( - getCustomClass(), getParentForChildren(), isClean()); + customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder>( + getCustomClass(), + getParentForChildren(), + isClean()); customClass_ = null; } return customClassBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1154,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.CreateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.CreateCustomClassRequest) private static final com.google.cloud.speech.v1.CreateCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.CreateCustomClassRequest(); } @@ -1168,16 +1031,16 @@ public static com.google.cloud.speech.v1.CreateCustomClassRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1192,4 +1055,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java index 14ccf162c..f9dbb4e97 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface CreateCustomClassRequestOrBuilder - extends +public interface CreateCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -36,16 +18,11 @@ public interface CreateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -56,17 +33,13 @@ public interface CreateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -75,13 +48,10 @@ public interface CreateCustomClassRequestOrBuilder
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ java.lang.String getCustomClassId(); /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -90,49 +60,35 @@ public interface CreateCustomClassRequestOrBuilder
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString getCustomClassIdBytes(); + com.google.protobuf.ByteString + getCustomClassIdBytes(); /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ com.google.cloud.speech.v1.CustomClass getCustomClass(); /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java similarity index 68% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java index c04029dba..04813cef2 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `CreatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.CreatePhraseSetRequest} */ -public final class CreatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreatePhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CreatePhraseSetRequest) CreatePhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreatePhraseSetRequest.newBuilder() to construct. private CreatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreatePhraseSetRequest() { parent_ = ""; phraseSetId_ = ""; @@ -44,15 +26,16 @@ private CreatePhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreatePhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - phraseSetId_ = s; - break; + phraseSetId_ = s; + break; + } + case 26: { + com.google.cloud.speech.v1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); } - case 26: - { - com.google.cloud.speech.v1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } - - break; + phraseSet_ = input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,33 +93,29 @@ private CreatePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CreatePhraseSetRequest.class, - com.google.cloud.speech.v1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1.CreatePhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -152,10 +126,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -164,15 +135,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -183,18 +153,17 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -205,8 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object phraseSetId_; /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -215,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ @java.lang.Override @@ -224,15 +190,14 @@ public java.lang.String getPhraseSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -241,15 +206,16 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for phraseSetId. */ @java.lang.Override - public com.google.protobuf.ByteString getPhraseSetIdBytes() { + public com.google.protobuf.ByteString + getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -260,16 +226,11 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() { public static final int PHRASE_SET_FIELD_NUMBER = 3; private com.google.cloud.speech.v1.PhraseSet phraseSet_; /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -277,34 +238,23 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1.PhraseSet getPhraseSet() { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -312,7 +262,6 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -350,7 +300,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phraseSetId_); } if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPhraseSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,19 +311,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.CreatePhraseSetRequest other = - (com.google.cloud.speech.v1.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v1.CreatePhraseSetRequest other = (com.google.cloud.speech.v1.CreatePhraseSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPhraseSetId() + .equals(other.getPhraseSetId())) return false; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -399,126 +352,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.CreatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `CreatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.CreatePhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CreatePhraseSetRequest) com.google.cloud.speech.v1.CreatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CreatePhraseSetRequest.class, - com.google.cloud.speech.v1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1.CreatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.CreatePhraseSetRequest.newBuilder() @@ -526,15 +470,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -552,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; } @java.lang.Override @@ -573,8 +518,7 @@ public com.google.cloud.speech.v1.CreatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.CreatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.CreatePhraseSetRequest result = - new com.google.cloud.speech.v1.CreatePhraseSetRequest(this); + com.google.cloud.speech.v1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1.CreatePhraseSetRequest(this); result.parent_ = parent_; result.phraseSetId_ = phraseSetId_; if (phraseSetBuilder_ == null) { @@ -590,39 +534,38 @@ public com.google.cloud.speech.v1.CreatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.CreatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.CreatePhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1.CreatePhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -630,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.CreatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1.CreatePhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.CreatePhraseSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -662,8 +604,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.CreatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.CreatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -675,8 +616,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -687,16 +626,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -705,8 +642,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -717,17 +652,16 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -735,8 +669,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -747,25 +679,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -776,21 +704,16 @@ public Builder setParent(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -801,19 +724,17 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -821,8 +742,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object phraseSetId_ = ""; /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -831,13 +750,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ public java.lang.String getPhraseSetId() { java.lang.Object ref = phraseSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; @@ -846,8 +765,6 @@ public java.lang.String getPhraseSetId() { } } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -856,14 +773,15 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for phraseSetId. */ - public com.google.protobuf.ByteString getPhraseSetIdBytes() { + public com.google.protobuf.ByteString + getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -871,8 +789,6 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() { } } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -881,22 +797,20 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId(java.lang.String value) { + public Builder setPhraseSetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phraseSetId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -905,18 +819,15 @@ public Builder setPhraseSetId(java.lang.String value) {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPhraseSetId() { - + phraseSetId_ = getDefaultInstance().getPhraseSetId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -925,16 +836,16 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { + public Builder setPhraseSetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phraseSetId_ = value; onChanged(); return this; @@ -942,58 +853,39 @@ public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder> - phraseSetBuilder_; + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetBuilder_; /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ public com.google.cloud.speech.v1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -1009,17 +901,14 @@ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet( + com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); onChanged(); @@ -1030,23 +919,17 @@ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet.Builder builder return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1.PhraseSet.newBuilder(phraseSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); } else { phraseSet_ = value; } @@ -1058,15 +941,11 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -1080,71 +959,55 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? + com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder> + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder>( - getPhraseSet(), getParentForChildren(), isClean()); + phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder>( + getPhraseSet(), + getParentForChildren(), + isClean()); phraseSet_ = null; } return phraseSetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1154,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.CreatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.CreatePhraseSetRequest) private static final com.google.cloud.speech.v1.CreatePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.CreatePhraseSetRequest(); } @@ -1168,16 +1031,16 @@ public static com.google.cloud.speech.v1.CreatePhraseSetRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1192,4 +1055,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java index f8fffaec1..913da08c2 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface CreatePhraseSetRequestOrBuilder - extends +public interface CreatePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -36,16 +18,11 @@ public interface CreatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -56,17 +33,13 @@ public interface CreatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -75,13 +48,10 @@ public interface CreatePhraseSetRequestOrBuilder
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ java.lang.String getPhraseSetId(); /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -90,49 +60,35 @@ public interface CreatePhraseSetRequestOrBuilder
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for phraseSetId. */ - com.google.protobuf.ByteString getPhraseSetIdBytes(); + com.google.protobuf.ByteString + getPhraseSetIdBytes(); /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ com.google.cloud.speech.v1.PhraseSet getPhraseSet(); /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java similarity index 73% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java index f5f4d764d..bcbf30da2 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** - * - * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.CustomClass}
  */
-public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CustomClass extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass)
     CustomClassOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -47,15 +29,16 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,40 +58,34 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              customClassId_ = s;
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                items_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              items_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
-                      extensionRegistry));
-              break;
+            customClassId_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              items_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            items_.add(
+                input.readMessage(com.google.cloud.speech.v1.CustomClass.ClassItem.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,7 +93,8 @@ private CustomClass(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -125,86 +103,75 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.CustomClass.class,
-            com.google.cloud.speech.v1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder
-      extends
+  public interface ClassItemOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ClassItem extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -223,20 +190,19 @@ private ClassItem( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -244,39 +210,34 @@ private ClassItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -285,29 +246,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -316,7 +277,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +288,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -352,15 +313,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1.CustomClass.ClassItem other = - (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1.CustomClass.ClassItem other = (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -380,93 +341,87 @@ public int hashCode() { } public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.CustomClass.ClassItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -476,32 +431,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass.ClassItem) com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1.CustomClass.ClassItem.newBuilder() @@ -509,15 +459,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -527,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override @@ -548,8 +499,7 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1.CustomClass.ClassItem result = - new com.google.cloud.speech.v1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1.CustomClass.ClassItem result = new com.google.cloud.speech.v1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -559,41 +509,38 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem) other); + return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem)other); } else { super.mergeFrom(other); return this; @@ -601,8 +548,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -626,8 +572,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -639,20 +584,18 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -661,21 +604,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -683,66 +625,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -755,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.CustomClass.ClassItem) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.CustomClass.ClassItem) private static final com.google.cloud.speech.v1.CustomClass.ClassItem DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.CustomClass.ClassItem(); } @@ -769,16 +703,16 @@ public static com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -793,19 +727,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -814,29 +746,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -847,15 +779,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The customClassId. */ @java.lang.Override @@ -864,30 +793,30 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -898,8 +827,6 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -911,8 +838,6 @@ public java.util.List getItems return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -920,13 +845,11 @@ public java.util.List getItems * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -938,8 +861,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -951,8 +872,6 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -960,12 +879,12 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ @java.lang.Override - public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { + public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index) { return items_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -977,7 +896,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1003,7 +923,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1013,16 +934,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass)) { return super.equals(obj); } com.google.cloud.speech.v1.CustomClass other = (com.google.cloud.speech.v1.CustomClass) obj; - if (!getName().equals(other.getName())) return false; - if (!getCustomClassId().equals(other.getCustomClassId())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCustomClassId() + .equals(other.getCustomClassId())) return false; + if (!getItemsList() + .equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1047,104 +971,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.CustomClass parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.CustomClass parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CustomClass parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CustomClass parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.CustomClass parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CustomClass parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CustomClass parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.CustomClass parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.CustomClass prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A set of words or phrases that represents a common concept likely to appear
    * in your audio, for example a list of passenger ship names. CustomClass items
@@ -1153,23 +1070,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.CustomClass}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass)
       com.google.cloud.speech.v1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.CustomClass.class,
-              com.google.cloud.speech.v1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.CustomClass.newBuilder()
@@ -1177,17 +1092,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1205,9 +1120,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
     }
 
     @java.lang.Override
@@ -1226,8 +1141,7 @@ public com.google.cloud.speech.v1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1.CustomClass result =
-          new com.google.cloud.speech.v1.CustomClass(this);
+      com.google.cloud.speech.v1.CustomClass result = new com.google.cloud.speech.v1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1248,39 +1162,38 @@ public com.google.cloud.speech.v1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1.CustomClass) other);
+        return mergeFrom((com.google.cloud.speech.v1.CustomClass)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1315,10 +1228,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1352,25 +1264,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1379,21 +1288,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1401,61 +1309,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1463,21 +1364,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object customClassId_ = ""; /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -1486,22 +1385,21 @@ public java.lang.String getCustomClassId() { } } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -1509,88 +1407,75 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId(java.lang.String value) { + public Builder setCustomClassId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> - itemsBuilder_; + com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> itemsBuilder_; /** - * - * *
      * A collection of class items.
      * 
@@ -1605,8 +1490,6 @@ public java.util.List getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -1621,8 +1504,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -1637,15 +1518,14 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { } } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public Builder setItems(int index, com.google.cloud.speech.v1.CustomClass.ClassItem value) { + public Builder setItems( + int index, com.google.cloud.speech.v1.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1659,8 +1539,6 @@ public Builder setItems(int index, com.google.cloud.speech.v1.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1679,8 +1557,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1701,15 +1577,14 @@ public Builder addItems(com.google.cloud.speech.v1.CustomClass.ClassItem value) return this; } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public Builder addItems(int index, com.google.cloud.speech.v1.CustomClass.ClassItem value) { + public Builder addItems( + int index, com.google.cloud.speech.v1.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1723,8 +1598,6 @@ public Builder addItems(int index, com.google.cloud.speech.v1.CustomClass.ClassI return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1743,8 +1616,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1763,8 +1634,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1775,7 +1644,8 @@ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -1783,8 +1653,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1802,8 +1670,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1821,44 +1687,39 @@ public Builder removeItems(int index) { return this; } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder getItemsBuilder(int index) { + public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder getItemsBuilder( + int index) { return getItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { + public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index) { if (itemsBuilder_ == null) { - return items_.get(index); - } else { + return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -1866,8 +1727,6 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** - * - * *
      * A collection of class items.
      * 
@@ -1875,55 +1734,49 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder() - .addBuilder(com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder(int index) { - return getItemsFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, - com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( - items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); items_ = null; } return itemsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1933,12 +1786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.CustomClass) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.CustomClass) private static final com.google.cloud.speech.v1.CustomClass DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.CustomClass(); } @@ -1947,16 +1800,16 @@ public static com.google.cloud.speech.v1.CustomClass getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1971,4 +1824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java similarity index 100% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java index a32a11ff4..d22bd6cc0 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java @@ -1,93 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface CustomClassOrBuilder - extends +public interface CustomClassOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The customClassId. */ java.lang.String getCustomClassId(); /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString getCustomClassIdBytes(); + com.google.protobuf.ByteString + getCustomClassIdBytes(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List getItemsList(); + java.util.List + getItemsList(); /** - * - * *
    * A collection of class items.
    * 
@@ -96,8 +67,6 @@ public interface CustomClassOrBuilder */ com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index); /** - * - * *
    * A collection of class items.
    * 
@@ -106,24 +75,21 @@ public interface CustomClassOrBuilder */ int getItemsCount(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java similarity index 69% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java index 553b01385..f07ccb28d 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `DeleteCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.DeleteCustomClassRequest} */ -public final class DeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.DeleteCustomClassRequest) DeleteCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteCustomClassRequest.newBuilder() to construct. private DeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteCustomClassRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private DeleteCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.DeleteCustomClassRequest.class, - com.google.cloud.speech.v1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1.DeleteCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -128,10 +106,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -140,15 +115,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -159,18 +133,17 @@ public java.lang.String getName() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -179,7 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -215,15 +188,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.DeleteCustomClassRequest other = - (com.google.cloud.speech.v1.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v1.DeleteCustomClassRequest other = (com.google.cloud.speech.v1.DeleteCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -243,126 +216,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.DeleteCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `DeleteCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.DeleteCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.DeleteCustomClassRequest) com.google.cloud.speech.v1.DeleteCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.DeleteCustomClassRequest.class, - com.google.cloud.speech.v1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1.DeleteCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.DeleteCustomClassRequest.newBuilder() @@ -370,15 +334,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; } @java.lang.Override @@ -409,8 +374,7 @@ public com.google.cloud.speech.v1.DeleteCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1.DeleteCustomClassRequest buildPartial() { - com.google.cloud.speech.v1.DeleteCustomClassRequest result = - new com.google.cloud.speech.v1.DeleteCustomClassRequest(this); + com.google.cloud.speech.v1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1.DeleteCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -420,39 +384,38 @@ public com.google.cloud.speech.v1.DeleteCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.DeleteCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1.DeleteCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1.DeleteCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -460,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.DeleteCustomClassRequest other) { - if (other == com.google.cloud.speech.v1.DeleteCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.DeleteCustomClassRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -485,8 +447,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.DeleteCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.DeleteCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,8 +459,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -510,16 +469,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -528,8 +485,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -540,17 +495,16 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -558,8 +512,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -570,25 +522,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -599,21 +547,16 @@ public Builder setName(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -624,26 +567,24 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -653,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.DeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.DeleteCustomClassRequest) private static final com.google.cloud.speech.v1.DeleteCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.DeleteCustomClassRequest(); } @@ -667,16 +608,16 @@ public static com.google.cloud.speech.v1.DeleteCustomClassRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -691,4 +632,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java index 9fdb35391..a534c8411 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface DeleteCustomClassRequestOrBuilder - extends +public interface DeleteCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -36,16 +18,11 @@ public interface DeleteCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -56,11 +33,9 @@ public interface DeleteCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java similarity index 65% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java index cb7ba1e7e..c16d6b374 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `DeletePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.DeletePhraseSetRequest} */ -public final class DeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeletePhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.DeletePhraseSetRequest) DeletePhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePhraseSetRequest.newBuilder() to construct. private DeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeletePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeletePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeletePhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeletePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.DeletePhraseSetRequest.class, - com.google.cloud.speech.v1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1.DeletePhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.DeletePhraseSetRequest other = - (com.google.cloud.speech.v1.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v1.DeletePhraseSetRequest other = (com.google.cloud.speech.v1.DeletePhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,126 +206,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.DeletePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `DeletePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.DeletePhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.DeletePhraseSetRequest) com.google.cloud.speech.v1.DeletePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.DeletePhraseSetRequest.class, - com.google.cloud.speech.v1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1.DeletePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.DeletePhraseSetRequest.newBuilder() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.speech.v1.DeletePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.DeletePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.DeletePhraseSetRequest result = - new com.google.cloud.speech.v1.DeletePhraseSetRequest(this); + com.google.cloud.speech.v1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1.DeletePhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.speech.v1.DeletePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.DeletePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.DeletePhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1.DeletePhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.DeletePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1.DeletePhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.DeletePhraseSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -475,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.DeletePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.DeletePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -488,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -513,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -538,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -618,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.DeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.DeletePhraseSetRequest) private static final com.google.cloud.speech.v1.DeletePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.DeletePhraseSetRequest(); } @@ -632,16 +573,16 @@ public static com.google.cloud.speech.v1.DeletePhraseSetRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeletePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -656,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000..6e63a397a --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1; + +public interface DeletePhraseSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.DeletePhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java similarity index 66% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java index bd859ff09..d9a29a78b 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `GetCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.GetCustomClassRequest} */ -public final class GetCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.GetCustomClassRequest) GetCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCustomClassRequest.newBuilder() to construct. private GetCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetCustomClassRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.GetCustomClassRequest.class, - com.google.cloud.speech.v1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.GetCustomClassRequest.class, com.google.cloud.speech.v1.GetCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.GetCustomClassRequest other = - (com.google.cloud.speech.v1.GetCustomClassRequest) obj; + com.google.cloud.speech.v1.GetCustomClassRequest other = (com.google.cloud.speech.v1.GetCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -232,127 +205,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.GetCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `GetCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.GetCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.GetCustomClassRequest) com.google.cloud.speech.v1.GetCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.GetCustomClassRequest.class, - com.google.cloud.speech.v1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.GetCustomClassRequest.class, com.google.cloud.speech.v1.GetCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.GetCustomClassRequest.newBuilder() @@ -360,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -378,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; } @java.lang.Override @@ -399,8 +364,7 @@ public com.google.cloud.speech.v1.GetCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1.GetCustomClassRequest buildPartial() { - com.google.cloud.speech.v1.GetCustomClassRequest result = - new com.google.cloud.speech.v1.GetCustomClassRequest(this); + com.google.cloud.speech.v1.GetCustomClassRequest result = new com.google.cloud.speech.v1.GetCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -410,39 +374,38 @@ public com.google.cloud.speech.v1.GetCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.GetCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1.GetCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1.GetCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -450,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.GetCustomClassRequest other) { - if (other == com.google.cloud.speech.v1.GetCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.GetCustomClassRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -487,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -512,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -537,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -617,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.GetCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.GetCustomClassRequest) private static final com.google.cloud.speech.v1.GetCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.GetCustomClassRequest(); } @@ -631,16 +573,16 @@ public static com.google.cloud.speech.v1.GetCustomClassRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -655,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000..61476aadb --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1; + +public interface GetCustomClassRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java similarity index 69% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java index f3a898271..b38cf58c7 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `GetPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.GetPhraseSetRequest} */ -public final class GetPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetPhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.GetPhraseSetRequest) GetPhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPhraseSetRequest.newBuilder() to construct. private GetPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetPhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetPhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.GetPhraseSetRequest.class, - com.google.cloud.speech.v1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.GetPhraseSetRequest.class, com.google.cloud.speech.v1.GetPhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -128,10 +106,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -140,15 +115,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -159,18 +133,17 @@ public java.lang.String getName() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -179,7 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -215,15 +188,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.GetPhraseSetRequest other = - (com.google.cloud.speech.v1.GetPhraseSetRequest) obj; + com.google.cloud.speech.v1.GetPhraseSetRequest other = (com.google.cloud.speech.v1.GetPhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -242,127 +215,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.GetPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `GetPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.GetPhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.GetPhraseSetRequest) com.google.cloud.speech.v1.GetPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.GetPhraseSetRequest.class, - com.google.cloud.speech.v1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.GetPhraseSetRequest.class, com.google.cloud.speech.v1.GetPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.GetPhraseSetRequest.newBuilder() @@ -370,15 +334,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -388,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; } @java.lang.Override @@ -409,8 +374,7 @@ public com.google.cloud.speech.v1.GetPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.GetPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.GetPhraseSetRequest result = - new com.google.cloud.speech.v1.GetPhraseSetRequest(this); + com.google.cloud.speech.v1.GetPhraseSetRequest result = new com.google.cloud.speech.v1.GetPhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -420,39 +384,38 @@ public com.google.cloud.speech.v1.GetPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.GetPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.GetPhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1.GetPhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -496,8 +459,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -508,16 +469,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -526,8 +485,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -538,17 +495,16 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -556,8 +512,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -568,25 +522,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -597,21 +547,16 @@ public Builder setName(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -622,26 +567,24 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -651,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.GetPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.GetPhraseSetRequest) private static final com.google.cloud.speech.v1.GetPhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.GetPhraseSetRequest(); } @@ -665,16 +608,16 @@ public static com.google.cloud.speech.v1.GetPhraseSetRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -689,4 +632,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java index 84f560a79..a7aa5beac 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface GetPhraseSetRequestOrBuilder - extends +public interface GetPhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.GetPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -36,16 +18,11 @@ public interface GetPhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -56,11 +33,9 @@ public interface GetPhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java similarity index 72% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java index ada0fbdc7..0ec369dc1 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.ListCustomClassesRequest} */ -public final class ListCustomClassesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCustomClassesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.ListCustomClassesRequest) ListCustomClassesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCustomClassesRequest.newBuilder() to construct. private ListCustomClassesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCustomClassesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListCustomClassesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCustomClassesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCustomClassesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListCustomClassesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,33 +85,29 @@ private ListCustomClassesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListCustomClassesRequest.class, - com.google.cloud.speech.v1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1.ListCustomClassesRequest.class, com.google.cloud.speech.v1.ListCustomClassesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -141,10 +118,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,15 +127,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -172,18 +145,17 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -204,7 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -215,8 +184,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -225,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -234,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -251,15 +216,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -268,7 +234,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -303,7 +269,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -316,17 +283,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.ListCustomClassesRequest other = - (com.google.cloud.speech.v1.ListCustomClassesRequest) obj; + com.google.cloud.speech.v1.ListCustomClassesRequest other = (com.google.cloud.speech.v1.ListCustomClassesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -350,126 +319,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.ListCustomClassesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.ListCustomClassesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.ListCustomClassesRequest) com.google.cloud.speech.v1.ListCustomClassesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListCustomClassesRequest.class, - com.google.cloud.speech.v1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1.ListCustomClassesRequest.class, com.google.cloud.speech.v1.ListCustomClassesRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.ListCustomClassesRequest.newBuilder() @@ -477,15 +437,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; } @java.lang.Override @@ -520,8 +481,7 @@ public com.google.cloud.speech.v1.ListCustomClassesRequest build() { @java.lang.Override public com.google.cloud.speech.v1.ListCustomClassesRequest buildPartial() { - com.google.cloud.speech.v1.ListCustomClassesRequest result = - new com.google.cloud.speech.v1.ListCustomClassesRequest(this); + com.google.cloud.speech.v1.ListCustomClassesRequest result = new com.google.cloud.speech.v1.ListCustomClassesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -533,39 +493,38 @@ public com.google.cloud.speech.v1.ListCustomClassesRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.ListCustomClassesRequest) { - return mergeFrom((com.google.cloud.speech.v1.ListCustomClassesRequest) other); + return mergeFrom((com.google.cloud.speech.v1.ListCustomClassesRequest)other); } else { super.mergeFrom(other); return this; @@ -573,8 +532,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.ListCustomClassesRequest other) { - if (other == com.google.cloud.speech.v1.ListCustomClassesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.ListCustomClassesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -605,8 +563,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.ListCustomClassesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.ListCustomClassesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -618,8 +575,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -630,16 +585,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -648,8 +601,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -660,17 +611,16 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -678,8 +628,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -690,25 +638,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -719,21 +663,16 @@ public Builder setParent(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -744,28 +683,24 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -774,7 +709,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -782,8 +716,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -792,19 +724,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -813,11 +742,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -825,8 +753,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -835,13 +761,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -850,8 +776,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -860,14 +784,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -875,8 +800,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -885,22 +808,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -909,18 +830,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -929,23 +847,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -955,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.ListCustomClassesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.ListCustomClassesRequest) private static final com.google.cloud.speech.v1.ListCustomClassesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.ListCustomClassesRequest(); } @@ -969,16 +887,16 @@ public static com.google.cloud.speech.v1.ListCustomClassesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -993,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java index 8644a1066..5e2d443bf 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface ListCustomClassesRequestOrBuilder - extends +public interface ListCustomClassesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -36,16 +18,11 @@ public interface ListCustomClassesRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -56,17 +33,13 @@ public interface ListCustomClassesRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -75,14 +48,11 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -91,13 +61,10 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -106,8 +73,8 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java similarity index 74% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java index d1a337045..702ef6bb2 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message returned to the client by the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.ListCustomClassesResponse} */ -public final class ListCustomClassesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCustomClassesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.ListCustomClassesResponse) ListCustomClassesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCustomClassesResponse.newBuilder() to construct. private ListCustomClassesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCustomClassesResponse() { customClasses_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCustomClassesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCustomClassesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCustomClassesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private ListCustomClassesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - customClasses_.add( - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + customClasses_.add( + input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListCustomClassesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -113,27 +94,22 @@ private ListCustomClassesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListCustomClassesResponse.class, - com.google.cloud.speech.v1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1.ListCustomClassesResponse.class, com.google.cloud.speech.v1.ListCustomClassesResponse.Builder.class); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1; private java.util.List customClasses_; /** - * - * *
    * The custom classes.
    * 
@@ -145,8 +121,6 @@ public java.util.List getCustomClassesLi return customClasses_; } /** - * - * *
    * The custom classes.
    * 
@@ -154,13 +128,11 @@ public java.util.List getCustomClassesLi * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCustomClassesOrBuilderList() { return customClasses_; } /** - * - * *
    * The custom classes.
    * 
@@ -172,8 +144,6 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** - * - * *
    * The custom classes.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** - * - * *
    * The custom classes.
    * 
@@ -194,22 +162,20 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ @java.lang.Override - public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { + public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder( + int index) { return customClasses_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < customClasses_.size(); i++) { output.writeMessage(1, customClasses_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < customClasses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customClasses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, customClasses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.ListCustomClassesResponse other = - (com.google.cloud.speech.v1.ListCustomClassesResponse) obj; + com.google.cloud.speech.v1.ListCustomClassesResponse other = (com.google.cloud.speech.v1.ListCustomClassesResponse) obj; - if (!getCustomClassesList().equals(other.getCustomClassesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCustomClassesList() + .equals(other.getCustomClassesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,126 +293,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.ListCustomClassesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message returned to the client by the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.ListCustomClassesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.ListCustomClassesResponse) com.google.cloud.speech.v1.ListCustomClassesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListCustomClassesResponse.class, - com.google.cloud.speech.v1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1.ListCustomClassesResponse.class, com.google.cloud.speech.v1.ListCustomClassesResponse.Builder.class); } // Construct using com.google.cloud.speech.v1.ListCustomClassesResponse.newBuilder() @@ -452,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCustomClassesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; } @java.lang.Override @@ -499,8 +458,7 @@ public com.google.cloud.speech.v1.ListCustomClassesResponse build() { @java.lang.Override public com.google.cloud.speech.v1.ListCustomClassesResponse buildPartial() { - com.google.cloud.speech.v1.ListCustomClassesResponse result = - new com.google.cloud.speech.v1.ListCustomClassesResponse(this); + com.google.cloud.speech.v1.ListCustomClassesResponse result = new com.google.cloud.speech.v1.ListCustomClassesResponse(this); int from_bitField0_ = bitField0_; if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +478,38 @@ public com.google.cloud.speech.v1.ListCustomClassesResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.ListCustomClassesResponse) { - return mergeFrom((com.google.cloud.speech.v1.ListCustomClassesResponse) other); + return mergeFrom((com.google.cloud.speech.v1.ListCustomClassesResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.ListCustomClassesResponse other) { - if (other == com.google.cloud.speech.v1.ListCustomClassesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.ListCustomClassesResponse.getDefaultInstance()) return this; if (customClassesBuilder_ == null) { if (!other.customClasses_.isEmpty()) { if (customClasses_.isEmpty()) { @@ -580,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.ListCustomClassesResponse ot customClassesBuilder_ = null; customClasses_ = other.customClasses_; bitField0_ = (bitField0_ & ~0x00000001); - customClassesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCustomClassesFieldBuilder() - : null; + customClassesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCustomClassesFieldBuilder() : null; } else { customClassesBuilder_.addAllMessages(other.customClasses_); } @@ -612,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.ListCustomClassesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.ListCustomClassesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List customClasses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - customClasses_ = - new java.util.ArrayList(customClasses_); + customClasses_ = new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder> - customClassesBuilder_; + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> customClassesBuilder_; /** - * - * *
      * The custom classes.
      * 
@@ -659,8 +605,6 @@ public java.util.List getCustomClassesLi } } /** - * - * *
      * The custom classes.
      * 
@@ -675,8 +619,6 @@ public int getCustomClassesCount() { } } /** - * - * *
      * The custom classes.
      * 
@@ -691,15 +633,14 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { } } /** - * - * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public Builder setCustomClasses(int index, com.google.cloud.speech.v1.CustomClass value) { + public Builder setCustomClasses( + int index, com.google.cloud.speech.v1.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +654,6 @@ public Builder setCustomClasses(int index, com.google.cloud.speech.v1.CustomClas return this; } /** - * - * *
      * The custom classes.
      * 
@@ -733,8 +672,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -755,15 +692,14 @@ public Builder addCustomClasses(com.google.cloud.speech.v1.CustomClass value) { return this; } /** - * - * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public Builder addCustomClasses(int index, com.google.cloud.speech.v1.CustomClass value) { + public Builder addCustomClasses( + int index, com.google.cloud.speech.v1.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,8 +713,6 @@ public Builder addCustomClasses(int index, com.google.cloud.speech.v1.CustomClas return this; } /** - * - * *
      * The custom classes.
      * 
@@ -797,8 +731,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -817,8 +749,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -829,7 +759,8 @@ public Builder addAllCustomClasses( java.lang.Iterable values) { if (customClassesBuilder_ == null) { ensureCustomClassesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customClasses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, customClasses_); onChanged(); } else { customClassesBuilder_.addAllMessages(values); @@ -837,8 +768,6 @@ public Builder addAllCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -856,8 +785,6 @@ public Builder clearCustomClasses() { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -875,44 +802,39 @@ public Builder removeCustomClasses(int index) { return this; } /** - * - * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder(int index) { + public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder( + int index) { return getCustomClassesFieldBuilder().getBuilder(index); } /** - * - * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { + public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder( + int index) { if (customClassesBuilder_ == null) { - return customClasses_.get(index); - } else { + return customClasses_.get(index); } else { return customClassesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesOrBuilderList() { + public java.util.List + getCustomClassesOrBuilderList() { if (customClassesBuilder_ != null) { return customClassesBuilder_.getMessageOrBuilderList(); } else { @@ -920,8 +842,6 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder } } /** - * - * *
      * The custom classes.
      * 
@@ -929,47 +849,38 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder() { - return getCustomClassesFieldBuilder() - .addBuilder(com.google.cloud.speech.v1.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder().addBuilder( + com.google.cloud.speech.v1.CustomClass.getDefaultInstance()); } /** - * - * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(int index) { - return getCustomClassesFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v1.CustomClass.getDefaultInstance()); + public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder( + int index) { + return getCustomClassesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1.CustomClass.getDefaultInstance()); } /** - * - * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesBuilderList() { + public java.util.List + getCustomClassesBuilderList() { return getCustomClassesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder> + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> getCustomClassesFieldBuilder() { if (customClassesBuilder_ == null) { - customClassesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder>( + customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder>( customClasses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -981,21 +892,19 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(in private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1004,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1027,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1101,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.ListCustomClassesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.ListCustomClassesResponse) private static final com.google.cloud.speech.v1.ListCustomClassesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.ListCustomClassesResponse(); } @@ -1115,16 +1016,16 @@ public static com.google.cloud.speech.v1.ListCustomClassesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1139,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java index 187213b4a..59b5c44f8 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface ListCustomClassesResponseOrBuilder - extends +public interface ListCustomClassesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - java.util.List getCustomClassesList(); + java.util.List + getCustomClassesList(); /** - * - * *
    * The custom classes.
    * 
@@ -44,8 +25,6 @@ public interface ListCustomClassesResponseOrBuilder */ com.google.cloud.speech.v1.CustomClass getCustomClasses(int index); /** - * - * *
    * The custom classes.
    * 
@@ -54,51 +33,43 @@ public interface ListCustomClassesResponseOrBuilder */ int getCustomClassesCount(); /** - * - * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** - * - * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index); + com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java similarity index 73% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java index 06e4098cc..e574eaab8 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.ListPhraseSetRequest} */ -public final class ListPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.ListPhraseSetRequest) ListPhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPhraseSetRequest.newBuilder() to construct. private ListPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPhraseSetRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListPhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListPhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,33 +85,29 @@ private ListPhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListPhraseSetRequest.class, - com.google.cloud.speech.v1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.ListPhraseSetRequest.class, com.google.cloud.speech.v1.ListPhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -141,10 +118,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,15 +127,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -172,18 +145,17 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -204,7 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -215,8 +184,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -225,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -234,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -251,15 +216,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -268,7 +234,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -303,7 +269,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -316,17 +283,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.ListPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.ListPhraseSetRequest other = - (com.google.cloud.speech.v1.ListPhraseSetRequest) obj; + com.google.cloud.speech.v1.ListPhraseSetRequest other = (com.google.cloud.speech.v1.ListPhraseSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -349,127 +318,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.ListPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.ListPhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.ListPhraseSetRequest) com.google.cloud.speech.v1.ListPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListPhraseSetRequest.class, - com.google.cloud.speech.v1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.ListPhraseSetRequest.class, com.google.cloud.speech.v1.ListPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.ListPhraseSetRequest.newBuilder() @@ -477,15 +437,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; } @java.lang.Override @@ -520,8 +481,7 @@ public com.google.cloud.speech.v1.ListPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.ListPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.ListPhraseSetRequest result = - new com.google.cloud.speech.v1.ListPhraseSetRequest(this); + com.google.cloud.speech.v1.ListPhraseSetRequest result = new com.google.cloud.speech.v1.ListPhraseSetRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -533,39 +493,38 @@ public com.google.cloud.speech.v1.ListPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.ListPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.ListPhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1.ListPhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -573,8 +532,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.ListPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1.ListPhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.ListPhraseSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -617,8 +575,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -629,16 +585,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -647,8 +601,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -659,17 +611,16 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -677,8 +628,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -689,25 +638,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -718,21 +663,16 @@ public Builder setParent(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -743,28 +683,24 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -773,7 +709,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -781,8 +716,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -791,19 +724,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -812,11 +742,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -824,8 +753,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -834,13 +761,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -849,8 +776,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -859,14 +784,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -874,8 +800,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -884,22 +808,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -908,18 +830,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -928,23 +847,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -954,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.ListPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.ListPhraseSetRequest) private static final com.google.cloud.speech.v1.ListPhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.ListPhraseSetRequest(); } @@ -968,16 +887,16 @@ public static com.google.cloud.speech.v1.ListPhraseSetRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java index 21e2b44cf..007794345 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface ListPhraseSetRequestOrBuilder - extends +public interface ListPhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.ListPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -36,16 +18,11 @@ public interface ListPhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -56,17 +33,13 @@ public interface ListPhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -75,14 +48,11 @@ public interface ListPhraseSetRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -91,13 +61,10 @@ public interface ListPhraseSetRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -106,8 +73,8 @@ public interface ListPhraseSetRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java similarity index 73% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java index 8936d24c9..e03484719 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message returned to the client by the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.ListPhraseSetResponse} */ -public final class ListPhraseSetResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPhraseSetResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.ListPhraseSetResponse) ListPhraseSetResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPhraseSetResponse.newBuilder() to construct. private ListPhraseSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPhraseSetResponse() { phraseSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListPhraseSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPhraseSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListPhraseSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,31 +55,28 @@ private ListPhraseSetResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phraseSets_.add( - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + phraseSets_.add( + input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private ListPhraseSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -113,27 +94,22 @@ private ListPhraseSetResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListPhraseSetResponse.class, - com.google.cloud.speech.v1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1.ListPhraseSetResponse.class, com.google.cloud.speech.v1.ListPhraseSetResponse.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** - * - * *
    * The phrase set.
    * 
@@ -145,8 +121,6 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** - * - * *
    * The phrase set.
    * 
@@ -154,13 +128,11 @@ public java.util.List getPhraseSetsList() * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** - * - * *
    * The phrase set.
    * 
@@ -172,8 +144,6 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * The phrase set.
    * 
@@ -185,8 +155,6 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * The phrase set.
    * 
@@ -194,22 +162,20 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -250,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < phraseSets_.size(); i++) { output.writeMessage(1, phraseSets_.get(i)); } @@ -279,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < phraseSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, phraseSets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, phraseSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -292,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.ListPhraseSetResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.ListPhraseSetResponse other = - (com.google.cloud.speech.v1.ListPhraseSetResponse) obj; + com.google.cloud.speech.v1.ListPhraseSetResponse other = (com.google.cloud.speech.v1.ListPhraseSetResponse) obj; - if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getPhraseSetsList() + .equals(other.getPhraseSetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,127 +292,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.ListPhraseSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message returned to the client by the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.ListPhraseSetResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.ListPhraseSetResponse) com.google.cloud.speech.v1.ListPhraseSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListPhraseSetResponse.class, - com.google.cloud.speech.v1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1.ListPhraseSetResponse.class, com.google.cloud.speech.v1.ListPhraseSetResponse.Builder.class); } // Construct using com.google.cloud.speech.v1.ListPhraseSetResponse.newBuilder() @@ -452,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; } @java.lang.Override @@ -499,8 +458,7 @@ public com.google.cloud.speech.v1.ListPhraseSetResponse build() { @java.lang.Override public com.google.cloud.speech.v1.ListPhraseSetResponse buildPartial() { - com.google.cloud.speech.v1.ListPhraseSetResponse result = - new com.google.cloud.speech.v1.ListPhraseSetResponse(this); + com.google.cloud.speech.v1.ListPhraseSetResponse result = new com.google.cloud.speech.v1.ListPhraseSetResponse(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +478,38 @@ public com.google.cloud.speech.v1.ListPhraseSetResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.ListPhraseSetResponse) { - return mergeFrom((com.google.cloud.speech.v1.ListPhraseSetResponse) other); + return mergeFrom((com.google.cloud.speech.v1.ListPhraseSetResponse)other); } else { super.mergeFrom(other); return this; @@ -560,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.ListPhraseSetResponse other) { - if (other == com.google.cloud.speech.v1.ListPhraseSetResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.ListPhraseSetResponse.getDefaultInstance()) return this; if (phraseSetsBuilder_ == null) { if (!other.phraseSets_.isEmpty()) { if (phraseSets_.isEmpty()) { @@ -580,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.ListPhraseSetResponse other) phraseSetsBuilder_ = null; phraseSets_ = other.phraseSets_; bitField0_ = (bitField0_ & ~0x00000001); - phraseSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPhraseSetsFieldBuilder() - : null; + phraseSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPhraseSetsFieldBuilder() : null; } else { phraseSetsBuilder_.addAllMessages(other.phraseSets_); } @@ -621,28 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder> - phraseSetsBuilder_; + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetsBuilder_; /** - * - * *
      * The phrase set.
      * 
@@ -657,8 +605,6 @@ public java.util.List getPhraseSetsList() } } /** - * - * *
      * The phrase set.
      * 
@@ -673,8 +619,6 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * The phrase set.
      * 
@@ -689,15 +633,14 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { } } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public Builder setPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet value) { + public Builder setPhraseSets( + int index, com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,8 +654,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet val return this; } /** - * - * *
      * The phrase set.
      * 
@@ -731,8 +672,6 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -753,15 +692,14 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet value) { + public Builder addPhraseSets( + int index, com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -775,15 +713,14 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet val return this; } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { + public Builder addPhraseSets( + com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(builderForValue.build()); @@ -794,8 +731,6 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet.Builder builde return this; } /** - * - * *
      * The phrase set.
      * 
@@ -814,8 +749,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -826,7 +759,8 @@ public Builder addAllPhraseSets( java.lang.Iterable values) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phraseSets_); onChanged(); } else { phraseSetsBuilder_.addAllMessages(values); @@ -834,8 +768,6 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -853,8 +785,6 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * The phrase set.
      * 
@@ -872,44 +802,39 @@ public Builder removePhraseSets(int index) { return this; } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder(int index) { + public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder( + int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); - } else { + return phraseSets_.get(index); } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -917,8 +842,6 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int } } /** - * - * *
      * The phrase set.
      * 
@@ -926,47 +849,42 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder() - .addBuilder(com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()); + return getPhraseSetsFieldBuilder().addBuilder( + com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()); } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder(int index) { - return getPhraseSetsFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder( + int index) { + return getPhraseSetsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()); } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public java.util.List getPhraseSetsBuilderList() { + public java.util.List + getPhraseSetsBuilderList() { return getPhraseSetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder> + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder>( - phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder>( + phraseSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phraseSets_ = null; } return phraseSetsBuilder_; @@ -974,21 +892,19 @@ public java.util.List getPhraseSet private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -997,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1020,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1094,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.ListPhraseSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.ListPhraseSetResponse) private static final com.google.cloud.speech.v1.ListPhraseSetResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.ListPhraseSetResponse(); } @@ -1108,16 +1016,16 @@ public static com.google.cloud.speech.v1.ListPhraseSetResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1132,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java similarity index 66% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java index 4b06b6250..8f78e4160 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface ListPhraseSetResponseOrBuilder - extends +public interface ListPhraseSetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.ListPhraseSetResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - java.util.List getPhraseSetsList(); + java.util.List + getPhraseSetsList(); /** - * - * *
    * The phrase set.
    * 
@@ -44,8 +25,6 @@ public interface ListPhraseSetResponseOrBuilder */ com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index); /** - * - * *
    * The phrase set.
    * 
@@ -54,51 +33,43 @@ public interface ListPhraseSetResponseOrBuilder */ int getPhraseSetsCount(); /** - * - * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** - * - * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); + com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java similarity index 100% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java similarity index 72% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java index e41d675f5..6dec13323 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,55 +55,50 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              progressPercent_ = input.readInt32();
-              break;
-            }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
+          case 8: {
 
-              break;
+            progressPercent_ = input.readInt32();
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (lastUpdateTime_ != null) {
-                subBuilder = lastUpdateTime_.toBuilder();
-              }
-              lastUpdateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(lastUpdateTime_);
-                lastUpdateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (lastUpdateTime_ != null) {
+              subBuilder = lastUpdateTime_.toBuilder();
+            }
+            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(lastUpdateTime_);
+              lastUpdateTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            uri_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -128,40 +106,35 @@ private LongRunningRecognizeMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
-            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
-   *
-   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -172,14 +145,11 @@ public int getProgressPercent() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -187,14 +157,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ @java.lang.Override @@ -202,8 +169,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Time when the request was received.
    * 
@@ -218,14 +183,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp lastUpdateTime_; /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -233,25 +195,18 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } /** - * - * *
    * Time of the most recent processing update.
    * 
@@ -266,15 +221,12 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ @java.lang.Override @@ -283,30 +235,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -315,7 +267,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,7 +278,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -350,13 +302,16 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, progressPercent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); @@ -369,24 +324,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = - (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime() + .equals(other.getLastUpdateTime())) return false; } - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -416,104 +374,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1.LongRunningRecognizeMetadata prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1.LongRunningRecognizeMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes the progress of a long-running `LongRunningRecognize` call. It is
    * included in the `metadata` field of the `Operation` returned by the
@@ -522,23 +472,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
-              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeMetadata.newBuilder()
@@ -546,15 +494,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -578,9 +527,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -599,8 +548,7 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result =
-          new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -621,39 +569,38 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata) other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -661,8 +608,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeMetadata other) {
-      if (other == com.google.cloud.speech.v1.LongRunningRecognizeMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1.LongRunningRecognizeMetadata.getDefaultInstance()) return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -695,8 +641,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -706,17 +651,14 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_;
+    private int progressPercent_ ;
     /**
-     *
-     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -724,38 +666,32 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -763,33 +699,24 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -800,8 +727,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Time when the request was received.
      * 
@@ -822,15 +747,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -841,8 +765,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -853,7 +775,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -865,8 +787,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -885,8 +805,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -894,13 +812,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the request was received.
      * 
@@ -911,12 +827,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Time when the request was received.
      * 
@@ -924,17 +839,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -942,47 +854,34 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1003,15 +902,14 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -1022,8 +920,6 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1034,9 +930,7 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); } else { lastUpdateTime_ = value; } @@ -1048,8 +942,6 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1068,8 +960,6 @@ public Builder clearLastUpdateTime() { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1077,13 +967,11 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1094,14 +982,11 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1109,17 +994,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), getParentForChildren(), isClean()); + lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), + getParentForChildren(), + isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; @@ -1127,21 +1009,19 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { private java.lang.Object uri_ = ""; /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -1150,22 +1030,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -1173,71 +1052,64 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1247,12 +1119,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.LongRunningRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeMetadata) private static final com.google.cloud.speech.v1.LongRunningRecognizeMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(); } @@ -1261,16 +1133,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1285,4 +1157,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java similarity index 74% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java index 2b8a33c7f..ccedbf890 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,69 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeMetadataOrBuilder - extends +public interface LongRunningRecognizeMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Time when the request was received.
    * 
@@ -73,32 +46,24 @@ public interface LongRunningRecognizeMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** - * - * *
    * Time of the most recent processing update.
    * 
@@ -108,29 +73,24 @@ public interface LongRunningRecognizeMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java similarity index 60% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java index b63f76a38..76f44fd6e 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LongRunningRecognizeRequest() {}
+  private LongRunningRecognizeRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,62 +53,52 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
-              if (config_ != null) {
-                subBuilder = config_.toBuilder();
-              }
-              config_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(config_);
-                config_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
+            if (config_ != null) {
+              subBuilder = config_.toBuilder();
+            }
+            config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(config_);
+              config_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
-              if (audio_ != null) {
-                subBuilder = audio_.toBuilder();
-              }
-              audio_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(audio_);
-                audio_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
+            if (audio_ != null) {
+              subBuilder = audio_.toBuilder();
+            }
+            audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(audio_);
+              audio_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
+            }
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -132,42 +106,35 @@ private LongRunningRecognizeRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
-            com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1.RecognitionConfig config_;
   /**
-   *
-   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -175,36 +142,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -214,16 +170,11 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ @java.lang.Override @@ -231,34 +182,23 @@ public boolean hasAudio() { return audio_ != null; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -268,16 +208,11 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -285,34 +220,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -320,7 +244,6 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -352,13 +276,16 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -368,25 +295,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeRequest other = - (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -417,104 +346,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1.LongRunningRecognizeRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1.LongRunningRecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The top-level message sent by the client for the `LongRunningRecognize`
    * method.
@@ -522,23 +443,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
-              com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeRequest.newBuilder()
@@ -546,15 +465,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -580,9 +500,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -601,8 +521,7 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeRequest result =
-          new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -626,39 +545,38 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -666,8 +584,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1.LongRunningRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1.LongRunningRecognizeRequest.getDefaultInstance()) return this;
       if (other.hasConfig()) {
         mergeConfig(other.getConfig());
       }
@@ -696,8 +613,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -709,61 +625,42 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.RecognitionConfig,
-            com.google.cloud.speech.v1.RecognitionConfig.Builder,
-            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -779,18 +676,15 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -801,24 +695,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder bu return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -830,16 +718,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -853,67 +737,51 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -921,58 +789,39 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder> - audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } else { return audioBuilder_.getMessage(); } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -988,17 +837,14 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio( + com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -1009,23 +855,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder buil return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); } else { audio_ = value; } @@ -1037,15 +877,11 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -1059,64 +895,48 @@ public Builder clearAudio() { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? + com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), getParentForChildren(), isClean()); + audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), + getParentForChildren(), + isClean()); audio_ = null; } return audioBuilder_; @@ -1124,58 +944,39 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1191,15 +992,11 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputConfig( com.google.cloud.speech.v1.TranscriptOutputConfig.Builder builderForValue) { @@ -1213,23 +1010,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1241,15 +1032,11 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1263,71 +1050,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1337,12 +1108,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.LongRunningRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeRequest) private static final com.google.cloud.speech.v1.LongRunningRecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.LongRunningRecognizeRequest(); } @@ -1351,16 +1122,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1375,4 +1146,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java index 3a4e90c85..fe890f69a 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java @@ -1,151 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeRequestOrBuilder - extends +public interface LongRunningRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ boolean hasAudio(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ com.google.cloud.speech.v1.RecognitionAudio getAudio(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java similarity index 74% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java index 7f1ad2415..4a952b510 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -31,31 +14,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,72 +58,61 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
+            }
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 50: {
+            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
+            }
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (outputError_ != null) {
-                subBuilder = outputError_.toBuilder();
-              }
-              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputError_);
-                outputError_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 58: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (outputError_ != null) {
+              subBuilder = outputError_.toBuilder();
+            }
+            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputError_);
+              outputError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -148,7 +120,8 @@ private LongRunningRecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -157,27 +130,22 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
-            com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -190,8 +158,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -200,13 +166,11 @@ public java.util.List getRes
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResultsOrBuilderList() {
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -219,8 +183,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -233,8 +195,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
     return results_.get(index);
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -251,14 +211,11 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
   public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Duration totalBilledTime_;
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -266,25 +223,18 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -299,14 +249,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -314,25 +261,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Original output config if present in the request.
    * 
@@ -347,14 +287,11 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ @java.lang.Override @@ -362,14 +299,11 @@ public boolean hasOutputError() { return outputError_ != null; } /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ @java.lang.Override @@ -377,8 +311,6 @@ public com.google.rpc.Status getOutputError() { return outputError_ == null ? com.google.rpc.Status.getDefaultInstance() : outputError_; } /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
@@ -391,7 +323,6 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,7 +334,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } @@ -426,16 +358,20 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -445,26 +381,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeResponse other = - (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime() + .equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError().equals(other.getOutputError())) return false; + if (!getOutputError() + .equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -499,104 +438,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -607,23 +538,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
-              com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeResponse.newBuilder()
@@ -631,17 +560,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -673,9 +602,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -694,8 +623,7 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeResponse result =
-          new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -729,39 +657,38 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -769,8 +696,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v1.LongRunningRecognizeResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1.LongRunningRecognizeResponse.getDefaultInstance()) return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -789,10 +715,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeResponse
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -826,8 +751,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -836,29 +760,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -874,8 +790,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -891,8 +805,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -908,8 +820,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -917,7 +827,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public Builder setResults(int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
+    public Builder setResults(
+        int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -931,8 +842,6 @@ public Builder setResults(int index, com.google.cloud.speech.v1.SpeechRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -952,8 +861,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -975,8 +882,6 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -984,7 +889,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public Builder addResults(int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
+    public Builder addResults(
+        int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -998,8 +904,6 @@ public Builder addResults(int index, com.google.cloud.speech.v1.SpeechRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1019,8 +923,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1040,8 +942,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1053,7 +953,8 @@ public Builder addAllResults(
         java.lang.Iterable values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -1061,8 +962,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1081,8 +980,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1101,8 +998,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1110,12 +1005,11 @@ public Builder removeResults(int index) {
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuilder(int index) {
+    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuilder(
+        int index) {
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1126,14 +1020,11 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuil
     public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);
-      } else {
+        return results_.get(index);  } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1141,8 +1032,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1150,8 +1041,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1160,12 +1049,10 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1173,14 +1060,12 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder(int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder(
+        int index) {
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1188,23 +1073,20 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
+        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechRecognitionResult,
-                com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
-                com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1212,47 +1094,34 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        totalBilledTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1273,15 +1142,14 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1292,8 +1160,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1304,9 +1170,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); } else { totalBilledTime_ = value; } @@ -1318,8 +1182,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1338,8 +1200,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1347,13 +1207,11 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1364,14 +1222,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { if (totalBilledTimeBuilder_ != null) { return totalBilledTimeBuilder_.getMessageOrBuilder(); } else { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1379,17 +1234,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), getParentForChildren(), isClean()); + totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), + getParentForChildren(), + isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; @@ -1397,47 +1249,34 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1458,8 +1297,6 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1478,8 +1315,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1490,9 +1325,7 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1504,8 +1337,6 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1524,8 +1355,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1533,13 +1362,11 @@ public Builder clearOutputConfig() { * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1550,14 +1377,11 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1565,17 +1389,14 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1583,31 +1404,24 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1618,8 +1432,6 @@ public com.google.rpc.Status getOutputError() { } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1640,15 +1452,14 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError( + com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1659,8 +1470,6 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1671,7 +1480,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1683,8 +1492,6 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1703,8 +1510,6 @@ public Builder clearOutputError() { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1712,13 +1517,11 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1729,12 +1532,11 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { if (outputErrorBuilder_ != null) { return outputErrorBuilder_.getMessageOrBuilder(); } else { - return outputError_ == null ? com.google.rpc.Status.getDefaultInstance() : outputError_; + return outputError_ == null ? + com.google.rpc.Status.getDefaultInstance() : outputError_; } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1742,22 +1544,21 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getOutputError(), getParentForChildren(), isClean()); + outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getOutputError(), + getParentForChildren(), + isClean()); outputError_ = null; } return outputErrorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1767,12 +1568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.LongRunningRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeResponse) private static final com.google.cloud.speech.v1.LongRunningRecognizeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.LongRunningRecognizeResponse(); } @@ -1781,16 +1582,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1805,4 +1606,6 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java index 5078fa81a..231d7ae91 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeResponseOrBuilder - extends +public interface LongRunningRecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -33,10 +15,9 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -46,8 +27,6 @@ public interface LongRunningRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -57,8 +36,6 @@ public interface LongRunningRecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,11 +43,9 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -78,35 +53,28 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -116,32 +84,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Original output config if present in the request.
    * 
@@ -151,32 +111,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java similarity index 77% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java index 3f0552bf8..0ec604f92 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** - * - * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
  */
-public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PhraseSet extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet)
     PhraseSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -45,15 +27,16 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,36 +56,33 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                phrases_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              phrases_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
-              break;
-            }
-          case 37:
-            {
-              boost_ = input.readFloat();
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              phrases_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            phrases_.add(
+                input.readMessage(com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
+            break;
+          }
+          case 37: {
+
+            boost_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -110,7 +90,8 @@ private PhraseSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -119,55 +100,44 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.PhraseSet.class,
-            com.google.cloud.speech.v1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder
-      extends
+  public interface PhraseOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The phrase itself.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -181,14 +151,11 @@ public interface PhraseOrBuilder
      * 
* * float boost = 2; - * * @return The boost. */ float getBoost(); } /** - * - * *
    * A phrases containing words and phrase "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -217,31 +184,31 @@ public interface PhraseOrBuilder
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Phrase extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet.Phrase)
       PhraseOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -260,25 +227,24 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                value_ = s;
-                break;
-              }
-            case 21:
-              {
-                boost_ = input.readFloat();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              value_ = s;
+              break;
+            }
+            case 21: {
+
+              boost_ = input.readFloat();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -286,39 +252,34 @@ private Phrase(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.Phrase.class,
-              com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -327,29 +288,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * The phrase itself.
      * 
* * string value = 1; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -360,8 +321,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -375,7 +334,6 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -384,7 +342,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -396,7 +353,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -416,7 +374,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -426,17 +385,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1.PhraseSet.Phrase other = - (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1.PhraseSet.Phrase other = (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -451,100 +411,95 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -554,8 +509,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A phrases containing words and phrase "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -584,24 +537,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet.Phrase)
         com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.speech.v1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1.PhraseSet.Phrase.class,
-                com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1.PhraseSet.Phrase.newBuilder()
@@ -609,15 +559,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -629,9 +580,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.speech.v1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
@@ -650,8 +601,7 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1.PhraseSet.Phrase result =
-            new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1.PhraseSet.Phrase result = new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -662,41 +612,38 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase) other);
+          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -743,20 +690,18 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
-       *
-       *
        * 
        * The phrase itself.
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -765,21 +710,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -787,70 +731,61 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_; + private float boost_ ; /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -864,7 +799,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -872,8 +806,6 @@ public float getBoost() { return boost_; } /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -887,19 +819,16 @@ public float getBoost() {
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -913,16 +842,14 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -935,12 +862,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.PhraseSet.Phrase) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.PhraseSet.Phrase) private static final com.google.cloud.speech.v1.PhraseSet.Phrase DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.PhraseSet.Phrase(); } @@ -949,16 +876,16 @@ public static com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -973,19 +900,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -994,29 +919,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1027,8 +952,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -1040,8 +963,6 @@ public java.util.List getPhrasesLis return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1049,13 +970,11 @@ public java.util.List getPhrasesLis * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ @java.lang.Override - public java.util.List + public java.util.List getPhrasesOrBuilderList() { return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1067,8 +986,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1080,8 +997,6 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1089,15 +1004,14 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ @java.lang.Override - public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { + public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( + int index) { return phrases_.get(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1111,7 +1025,6 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1120,7 +1033,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1132,7 +1044,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1155,10 +1068,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < phrases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, phrases_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, phrases_.get(i)); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1168,17 +1083,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet)) { return super.equals(obj); } com.google.cloud.speech.v1.PhraseSet other = (com.google.cloud.speech.v1.PhraseSet) obj; - if (!getName().equals(other.getName())) return false; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1197,109 +1115,104 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.PhraseSet parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v1.PhraseSet parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1307,23 +1220,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet)
       com.google.cloud.speech.v1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.class,
-              com.google.cloud.speech.v1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.PhraseSet.newBuilder()
@@ -1331,17 +1242,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1359,9 +1270,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
@@ -1401,39 +1312,38 @@ public com.google.cloud.speech.v1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1.PhraseSet) other);
+        return mergeFrom((com.google.cloud.speech.v1.PhraseSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1464,10 +1374,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1504,25 +1413,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1531,21 +1437,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1553,85 +1458,72 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, - com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> - phrasesBuilder_; + com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; /** - * - * *
      * A list of word and phrases.
      * 
@@ -1646,8 +1538,6 @@ public java.util.List getPhrasesLis } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1662,8 +1552,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1678,15 +1566,14 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { } } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public Builder setPhrases(int index, com.google.cloud.speech.v1.PhraseSet.Phrase value) { + public Builder setPhrases( + int index, com.google.cloud.speech.v1.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1700,8 +1587,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v1.PhraseSet.Phrase return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1720,8 +1605,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1742,15 +1625,14 @@ public Builder addPhrases(com.google.cloud.speech.v1.PhraseSet.Phrase value) { return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public Builder addPhrases(int index, com.google.cloud.speech.v1.PhraseSet.Phrase value) { + public Builder addPhrases( + int index, com.google.cloud.speech.v1.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1764,15 +1646,14 @@ public Builder addPhrases(int index, com.google.cloud.speech.v1.PhraseSet.Phrase return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public Builder addPhrases(com.google.cloud.speech.v1.PhraseSet.Phrase.Builder builderForValue) { + public Builder addPhrases( + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder builderForValue) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); phrases_.add(builderForValue.build()); @@ -1783,8 +1664,6 @@ public Builder addPhrases(com.google.cloud.speech.v1.PhraseSet.Phrase.Builder bu return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1803,8 +1682,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1815,7 +1692,8 @@ public Builder addAllPhrases( java.lang.Iterable values) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phrases_); onChanged(); } else { phrasesBuilder_.addAllMessages(values); @@ -1823,8 +1701,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1842,8 +1718,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1861,44 +1735,39 @@ public Builder removePhrases(int index) { return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder getPhrasesBuilder(int index) { + public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder getPhrasesBuilder( + int index) { return getPhrasesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { + public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( + int index) { if (phrasesBuilder_ == null) { - return phrases_.get(index); - } else { + return phrases_.get(index); } else { return phrasesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesOrBuilderList() { + public java.util.List + getPhrasesOrBuilderList() { if (phrasesBuilder_ != null) { return phrasesBuilder_.getMessageOrBuilderList(); } else { @@ -1906,8 +1775,6 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1915,57 +1782,49 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder() - .addBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder().addBuilder( + com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { - return getPhrasesFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder( + int index) { + return getPhrasesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, - com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, - com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( - phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( + phrases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_; + private float boost_ ; /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1979,7 +1838,6 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(int
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1987,8 +1845,6 @@ public float getBoost() { return boost_; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -2002,19 +1858,16 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -2028,18 +1881,17 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2049,12 +1901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.PhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.PhraseSet) private static final com.google.cloud.speech.v1.PhraseSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.PhraseSet(); } @@ -2063,16 +1915,16 @@ public static com.google.cloud.speech.v1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2087,4 +1939,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java similarity index 100% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java similarity index 72% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java index 39857ed50..c57c3c5d6 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface PhraseSetOrBuilder - extends +public interface PhraseSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of word and phrases.
    * 
@@ -69,8 +45,6 @@ public interface PhraseSetOrBuilder */ com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index); /** - * - * *
    * A list of word and phrases.
    * 
@@ -79,30 +53,25 @@ public interface PhraseSetOrBuilder */ int getPhrasesCount(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( + int index); /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -116,7 +85,6 @@ public interface PhraseSetOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java similarity index 76% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index d17b7c6b0..13a01ffc4 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
  */
-public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognitionAudio extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private RecognitionAudio() {}
+  private RecognitionAudio() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,26 +55,24 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              audioSource_ = input.readBytes();
-              audioSourceCase_ = 1;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 2;
-              audioSource_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 10: {
+            audioSource_ = input.readBytes();
+            audioSourceCase_ = 1;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            audioSourceCase_ = 2;
+            audioSource_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -98,40 +80,35 @@ private RecognitionAudio(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionAudio.class,
-            com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
-
   public enum AudioSourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
-
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -147,30 +124,25 @@ public static AudioSourceCase valueOf(int value) {
 
     public static AudioSourceCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return CONTENT;
-        case 2:
-          return URI;
-        case 0:
-          return AUDIOSOURCE_NOT_SET;
-        default:
-          return null;
+        case 1: return CONTENT;
+        case 2: return URI;
+        case 0: return AUDIOSOURCE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public AudioSourceCase getAudioSourceCase() {
-    return AudioSourceCase.forNumber(audioSourceCase_);
+  public AudioSourceCase
+  getAudioSourceCase() {
+    return AudioSourceCase.forNumber(
+        audioSourceCase_);
   }
 
   public static final int CONTENT_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -178,7 +150,6 @@ public AudioSourceCase getAudioSourceCase() {
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -186,8 +157,6 @@ public boolean hasContent() { return audioSourceCase_ == 1; } /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -195,7 +164,6 @@ public boolean hasContent() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -208,8 +176,6 @@ public com.google.protobuf.ByteString getContent() { public static final int URI_FIELD_NUMBER = 2; /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -221,15 +187,12 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * string uri = 2; - * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 2; } /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -241,7 +204,6 @@ public boolean hasUri() {
    * 
* * string uri = 2; - * * @return The uri. */ public java.lang.String getUri() { @@ -252,7 +214,8 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -261,8 +224,6 @@ public java.lang.String getUri() { } } /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -274,17 +235,18 @@ public java.lang.String getUri() {
    * 
* * string uri = 2; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -295,7 +257,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,9 +268,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (audioSourceCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) audioSource_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audioSource_); @@ -324,9 +287,9 @@ public int getSerializedSize() { size = 0; if (audioSourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) audioSource_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audioSource_); @@ -339,21 +302,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionAudio)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionAudio other = - (com.google.cloud.speech.v1.RecognitionAudio) obj; + com.google.cloud.speech.v1.RecognitionAudio other = (com.google.cloud.speech.v1.RecognitionAudio) obj; if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false; switch (audioSourceCase_) { case 1: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 2: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 0: default: @@ -386,104 +350,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.RecognitionAudio parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.RecognitionAudio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionAudio parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionAudio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains audio data in the encoding specified in the `RecognitionConfig`.
    * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -493,23 +450,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionAudio)
       com.google.cloud.speech.v1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionAudio.class,
-              com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionAudio.newBuilder()
@@ -517,15 +472,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -535,9 +491,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
@@ -556,8 +512,7 @@ public com.google.cloud.speech.v1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1.RecognitionAudio result =
-          new com.google.cloud.speech.v1.RecognitionAudio(this);
+      com.google.cloud.speech.v1.RecognitionAudio result = new com.google.cloud.speech.v1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -573,39 +528,38 @@ public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio) other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -615,22 +569,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionAudio other) {
       if (other == com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT:
-          {
-            setContent(other.getContent());
-            break;
-          }
-        case URI:
-          {
-            audioSourceCase_ = 2;
-            audioSource_ = other.audioSource_;
-            onChanged();
-            break;
-          }
-        case AUDIOSOURCE_NOT_SET:
-          {
-            break;
-          }
+        case CONTENT: {
+          setContent(other.getContent());
+          break;
+        }
+        case URI: {
+          audioSourceCase_ = 2;
+          audioSource_ = other.audioSource_;
+          onChanged();
+          break;
+        }
+        case AUDIOSOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -660,12 +611,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-
-    public AudioSourceCase getAudioSourceCase() {
-      return AudioSourceCase.forNumber(audioSourceCase_);
+    public AudioSourceCase
+        getAudioSourceCase() {
+      return AudioSourceCase.forNumber(
+          audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -675,9 +626,8 @@ public Builder clearAudioSource() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -685,15 +635,12 @@ public Builder clearAudioSource() {
      * 
* * bytes content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 1; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -701,7 +648,6 @@ public boolean hasContent() {
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -711,8 +657,6 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -720,22 +664,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -743,7 +684,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -756,8 +696,6 @@ public Builder clearContent() { } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -769,7 +707,6 @@ public Builder clearContent() {
      * 
* * string uri = 2; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -777,8 +714,6 @@ public boolean hasUri() { return audioSourceCase_ == 2; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -790,7 +725,6 @@ public boolean hasUri() {
      * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -800,7 +734,8 @@ public java.lang.String getUri() { ref = audioSource_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -811,8 +746,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -824,18 +757,19 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -845,8 +779,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -858,22 +790,20 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 2; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -885,7 +815,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -897,8 +826,6 @@ public Builder clearUri() { return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -910,23 +837,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -936,12 +863,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognitionAudio) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionAudio) private static final com.google.cloud.speech.v1.RecognitionAudio DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognitionAudio(); } @@ -950,16 +877,16 @@ public static com.google.cloud.speech.v1.RecognitionAudio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -974,4 +901,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java similarity index 79% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index b8330aa93..4347fb6f5 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionAudioOrBuilder - extends +public interface RecognitionAudioOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -33,13 +15,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -47,14 +26,11 @@ public interface RecognitionAudioOrBuilder
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -66,13 +42,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -84,13 +57,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -102,10 +72,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); public com.google.cloud.speech.v1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java similarity index 84% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java index 7dfd24d7f..46cadf00f 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
  */
-public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognitionConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -48,15 +30,16 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,180 +59,159 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              encoding_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              sampleRateHertz_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            encoding_ = rawValue;
+            break;
+          }
+          case 16: {
 
-              languageCode_ = s;
-              break;
-            }
-          case 32:
-            {
-              maxAlternatives_ = input.readInt32();
-              break;
-            }
-          case 40:
-            {
-              profanityFilter_ = input.readBool();
-              break;
-            }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                speechContexts_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              speechContexts_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
-              break;
+            sampleRateHertz_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            languageCode_ = s;
+            break;
+          }
+          case 32: {
+
+            maxAlternatives_ = input.readInt32();
+            break;
+          }
+          case 40: {
+
+            profanityFilter_ = input.readBool();
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              speechContexts_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 56:
-            {
-              audioChannelCount_ = input.readInt32();
-              break;
+            speechContexts_.add(
+                input.readMessage(com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
+            break;
+          }
+          case 56: {
+
+            audioChannelCount_ = input.readInt32();
+            break;
+          }
+          case 64: {
+
+            enableWordTimeOffsets_ = input.readBool();
+            break;
+          }
+          case 74: {
+            com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
+            if (metadata_ != null) {
+              subBuilder = metadata_.toBuilder();
             }
-          case 64:
-            {
-              enableWordTimeOffsets_ = input.readBool();
-              break;
+            metadata_ = input.readMessage(com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(metadata_);
+              metadata_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
-              if (metadata_ != null) {
-                subBuilder = metadata_.toBuilder();
-              }
-              metadata_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(metadata_);
-                metadata_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 88: {
+
+            enableAutomaticPunctuation_ = input.readBool();
+            break;
+          }
+          case 96: {
+
+            enableSeparateRecognitionPerChannel_ = input.readBool();
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            model_ = s;
+            break;
+          }
+          case 112: {
+
+            useEnhanced_ = input.readBool();
+            break;
+          }
+          case 120: {
+
+            enableWordConfidence_ = input.readBool();
+            break;
+          }
+          case 146: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 88:
-            {
-              enableAutomaticPunctuation_ = input.readBool();
-              break;
+            alternativeLanguageCodes_.add(s);
+            break;
+          }
+          case 154: {
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
+            if (diarizationConfig_ != null) {
+              subBuilder = diarizationConfig_.toBuilder();
             }
-          case 96:
-            {
-              enableSeparateRecognitionPerChannel_ = input.readBool();
-              break;
+            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(diarizationConfig_);
+              diarizationConfig_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              model_ = s;
-              break;
-            }
-          case 112:
-            {
-              useEnhanced_ = input.readBool();
-              break;
-            }
-          case 120:
-            {
-              enableWordConfidence_ = input.readBool();
-              break;
+            break;
+          }
+          case 162: {
+            com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
+            if (adaptation_ != null) {
+              subBuilder = adaptation_.toBuilder();
             }
-          case 146:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              alternativeLanguageCodes_.add(s);
-              break;
+            adaptation_ = input.readMessage(com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(adaptation_);
+              adaptation_ = subBuilder.buildPartial();
             }
-          case 154:
-            {
-              com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
-              if (diarizationConfig_ != null) {
-                subBuilder = diarizationConfig_.toBuilder();
-              }
-              diarizationConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(diarizationConfig_);
-                diarizationConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 178: {
+            com.google.protobuf.BoolValue.Builder subBuilder = null;
+            if (enableSpokenPunctuation_ != null) {
+              subBuilder = enableSpokenPunctuation_.toBuilder();
             }
-          case 162:
-            {
-              com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
-              if (adaptation_ != null) {
-                subBuilder = adaptation_.toBuilder();
-              }
-              adaptation_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(adaptation_);
-                adaptation_ = subBuilder.buildPartial();
-              }
-
-              break;
+            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(enableSpokenPunctuation_);
+              enableSpokenPunctuation_ = subBuilder.buildPartial();
             }
-          case 178:
-            {
-              com.google.protobuf.BoolValue.Builder subBuilder = null;
-              if (enableSpokenPunctuation_ != null) {
-                subBuilder = enableSpokenPunctuation_.toBuilder();
-              }
-              enableSpokenPunctuation_ =
-                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(enableSpokenPunctuation_);
-                enableSpokenPunctuation_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 186: {
+            com.google.protobuf.BoolValue.Builder subBuilder = null;
+            if (enableSpokenEmojis_ != null) {
+              subBuilder = enableSpokenEmojis_.toBuilder();
             }
-          case 186:
-            {
-              com.google.protobuf.BoolValue.Builder subBuilder = null;
-              if (enableSpokenEmojis_ != null) {
-                subBuilder = enableSpokenEmojis_.toBuilder();
-              }
-              enableSpokenEmojis_ =
-                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(enableSpokenEmojis_);
-                enableSpokenEmojis_ = subBuilder.buildPartial();
-              }
-
-              break;
+            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(enableSpokenEmojis_);
+              enableSpokenEmojis_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -257,7 +219,8 @@ private RecognitionConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -269,25 +232,20 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionConfig.class,
-            com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -313,10 +271,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.speech.v1.RecognitionConfig.AudioEncoding}
    */
-  public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AudioEncoding
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -325,8 +282,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -335,8 +290,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -350,8 +303,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     FLAC(2),
     /**
-     *
-     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -360,8 +311,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(3), /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -370,8 +319,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR(4), /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -380,8 +327,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR_WB(5), /** - * - * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -392,8 +337,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     OGG_OPUS(6),
     /**
-     *
-     *
      * 
      * Although the use of lossy encodings is not recommended, if a very low
      * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -414,8 +357,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     SPEEX_WITH_HEADER_BYTE(7),
     /**
-     *
-     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -429,8 +370,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -439,8 +378,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -449,8 +386,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINEAR16_VALUE = 1; /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -464,8 +399,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FLAC_VALUE = 2;
     /**
-     *
-     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -474,8 +407,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MULAW_VALUE = 3; /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -484,8 +415,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AMR_VALUE = 4; /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -494,8 +423,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AMR_WB_VALUE = 5; /** - * - * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -506,8 +433,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int OGG_OPUS_VALUE = 6;
     /**
-     *
-     *
      * 
      * Although the use of lossy encodings is not recommended, if a very low
      * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -528,8 +453,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SPEEX_WITH_HEADER_BYTE_VALUE = 7;
     /**
-     *
-     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -540,6 +463,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -564,61 +488,55 @@ public static AudioEncoding valueOf(int value) {
      */
     public static AudioEncoding forNumber(int value) {
       switch (value) {
-        case 0:
-          return ENCODING_UNSPECIFIED;
-        case 1:
-          return LINEAR16;
-        case 2:
-          return FLAC;
-        case 3:
-          return MULAW;
-        case 4:
-          return AMR;
-        case 5:
-          return AMR_WB;
-        case 6:
-          return OGG_OPUS;
-        case 7:
-          return SPEEX_WITH_HEADER_BYTE;
-        case 9:
-          return WEBM_OPUS;
-        default:
-          return null;
+        case 0: return ENCODING_UNSPECIFIED;
+        case 1: return LINEAR16;
+        case 2: return FLAC;
+        case 3: return MULAW;
+        case 4: return AMR;
+        case 5: return AMR_WB;
+        case 6: return OGG_OPUS;
+        case 7: return SPEEX_WITH_HEADER_BYTE;
+        case 9: return WEBM_OPUS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AudioEncoding> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AudioEncoding findValueByNumber(int number) {
+              return AudioEncoding.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public AudioEncoding findValueByNumber(int number) {
-            return AudioEncoding.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.speech.v1.RecognitionConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AudioEncoding[] VALUES = values();
 
-    public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AudioEncoding valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -638,8 +556,6 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
-   *
-   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -647,16 +563,12 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -664,24 +576,17 @@ public int getEncodingValue() {
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null - ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -693,7 +598,6 @@ public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding()
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -704,8 +608,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -719,7 +621,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -730,8 +631,6 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -742,7 +641,6 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -753,8 +651,6 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -765,7 +661,6 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -774,15 +669,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -793,15 +687,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -812,8 +707,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -830,15 +723,13 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
    * 
* * repeated string alternative_language_codes = 18; - * * @return A list containing the alternativeLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getAlternativeLanguageCodesList() { return alternativeLanguageCodes_; } /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -855,15 +746,12 @@ public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList()
    * 
* * repeated string alternative_language_codes = 18; - * * @return The count of alternativeLanguageCodes. */ public int getAlternativeLanguageCodesCount() { return alternativeLanguageCodes_.size(); } /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -880,7 +768,6 @@ public int getAlternativeLanguageCodesCount() {
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ @@ -888,8 +775,6 @@ public java.lang.String getAlternativeLanguageCodes(int index) { return alternativeLanguageCodes_.get(index); } /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -906,19 +791,17 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -929,7 +812,6 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -940,8 +822,6 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -950,7 +830,6 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -961,8 +840,6 @@ public boolean getProfanityFilter() { public static final int ADAPTATION_FIELD_NUMBER = 20; private com.google.cloud.speech.v1.SpeechAdaptation adaptation_; /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -972,7 +849,6 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -980,8 +856,6 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -991,18 +865,13 @@ public boolean hasAdaptation() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return The adaptation. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation getAdaptation() { - return adaptation_ == null - ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() - : adaptation_; + return adaptation_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -1021,8 +890,6 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
   public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6;
   private java.util.List speechContexts_;
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1038,8 +905,6 @@ public java.util.List getSpeechContext
     return speechContexts_;
   }
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1051,13 +916,11 @@ public java.util.List getSpeechContext
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSpeechContextsOrBuilderList() {
     return speechContexts_;
   }
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1073,8 +936,6 @@ public int getSpeechContextsCount() {
     return speechContexts_.size();
   }
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1090,8 +951,6 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
     return speechContexts_.get(index);
   }
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1103,15 +962,14 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index) {
+  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
+      int index) {
     return speechContexts_.get(index);
   }
 
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -1120,7 +978,6 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1131,8 +988,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -1140,7 +995,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -1151,8 +1005,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1161,7 +1013,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1172,8 +1023,6 @@ public boolean getEnableAutomaticPunctuation() { public static final int ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER = 22; private com.google.protobuf.BoolValue enableSpokenPunctuation_; /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1185,7 +1034,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1193,8 +1041,6 @@ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuation_ != null; } /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1206,18 +1052,13 @@ public boolean hasEnableSpokenPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return The enableSpokenPunctuation. */ @java.lang.Override public com.google.protobuf.BoolValue getEnableSpokenPunctuation() { - return enableSpokenPunctuation_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableSpokenPunctuation_; + return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_; } /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1238,8 +1079,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
-   *
-   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1249,7 +1088,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1257,8 +1095,6 @@ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojis_ != null; } /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1268,18 +1104,13 @@ public boolean hasEnableSpokenEmojis() {
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return The enableSpokenEmojis. */ @java.lang.Override public com.google.protobuf.BoolValue getEnableSpokenEmojis() { - return enableSpokenEmojis_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableSpokenEmojis_; + return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_; } /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1298,8 +1129,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 19;
   private com.google.cloud.speech.v1.SpeakerDiarizationConfig diarizationConfig_;
   /**
-   *
-   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1312,7 +1141,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -1320,8 +1148,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1334,18 +1160,13 @@ public boolean hasDiarizationConfig() {
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; - * * @return The diarizationConfig. */ @java.lang.Override public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig() { - return diarizationConfig_ == null - ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() - : diarizationConfig_; + return diarizationConfig_ == null ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1360,22 +1181,18 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(
    * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
-      getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
   /**
-   *
-   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1383,25 +1200,18 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Metadata regarding this request.
    * 
@@ -1416,8 +1226,6 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1473,7 +1281,6 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
    * 
* * string model = 13; - * * @return The model. */ @java.lang.Override @@ -1482,15 +1289,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1546,15 +1352,16 @@ public java.lang.String getModel() {
    * 
* * string model = 13; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1565,8 +1372,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** - * - * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1578,7 +1383,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -1587,7 +1391,6 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1599,10 +1402,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (encoding_ - != com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (encoding_ != com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(1, encoding_); } if (sampleRateHertz_ != 0) { @@ -1645,8 +1447,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeBool(15, enableWordConfidence_); } for (int i = 0; i < alternativeLanguageCodes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 18, alternativeLanguageCodes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, alternativeLanguageCodes_.getRaw(i)); } if (diarizationConfig_ != null) { output.writeMessage(19, getDiarizationConfig()); @@ -1669,52 +1470,59 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encoding_ - != com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encoding_); + if (encoding_ != com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, encoding_); } if (sampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sampleRateHertz_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, sampleRateHertz_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } if (maxAlternatives_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxAlternatives_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, maxAlternatives_); } if (profanityFilter_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, profanityFilter_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, profanityFilter_); } for (int i = 0; i < speechContexts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, speechContexts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, speechContexts_.get(i)); } if (audioChannelCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, audioChannelCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, audioChannelCount_); } if (enableWordTimeOffsets_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableWordTimeOffsets_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, enableWordTimeOffsets_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getMetadata()); } if (enableAutomaticPunctuation_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(11, enableAutomaticPunctuation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, enableAutomaticPunctuation_); } if (enableSeparateRecognitionPerChannel_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 12, enableSeparateRecognitionPerChannel_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, enableSeparateRecognitionPerChannel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, model_); } if (useEnhanced_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, useEnhanced_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, useEnhanced_); } if (enableWordConfidence_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, enableWordConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, enableWordConfidence_); } { int dataSize = 0; @@ -1725,18 +1533,20 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getEnableSpokenPunctuation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getEnableSpokenEmojis()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1746,50 +1556,65 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionConfig other = - (com.google.cloud.speech.v1.RecognitionConfig) obj; + com.google.cloud.speech.v1.RecognitionConfig other = (com.google.cloud.speech.v1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) - return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) - return false; - if (getMaxAlternatives() != other.getMaxAlternatives()) return false; - if (getProfanityFilter() != other.getProfanityFilter()) return false; + if (getSampleRateHertz() + != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() + != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() + != other.getEnableSeparateRecognitionPerChannel()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList() + .equals(other.getAlternativeLanguageCodesList())) return false; + if (getMaxAlternatives() + != other.getMaxAlternatives()) return false; + if (getProfanityFilter() + != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation().equals(other.getAdaptation())) return false; - } - if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; + if (!getAdaptation() + .equals(other.getAdaptation())) return false; + } + if (!getSpeechContextsList() + .equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() + != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() + != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() + != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation() + .equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis() + .equals(other.getEnableSpokenEmojis())) return false; } if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig() + .equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } - if (!getModel().equals(other.getModel())) return false; - if (getUseEnhanced() != other.getUseEnhanced()) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (getUseEnhanced() + != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1808,9 +1633,8 @@ public int hashCode() { hash = (37 * hash) + AUDIO_CHANNEL_COUNT_FIELD_NUMBER; hash = (53 * hash) + getAudioChannelCount(); hash = (37 * hash) + ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableSeparateRecognitionPerChannel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSeparateRecognitionPerChannel()); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); if (getAlternativeLanguageCodesCount() > 0) { @@ -1820,7 +1644,8 @@ public int hashCode() { hash = (37 * hash) + MAX_ALTERNATIVES_FIELD_NUMBER; hash = (53 * hash) + getMaxAlternatives(); hash = (37 * hash) + PROFANITY_FILTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProfanityFilter()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getProfanityFilter()); if (hasAdaptation()) { hash = (37 * hash) + ADAPTATION_FIELD_NUMBER; hash = (53 * hash) + getAdaptation().hashCode(); @@ -1830,11 +1655,14 @@ public int hashCode() { hash = (53 * hash) + getSpeechContextsList().hashCode(); } hash = (37 * hash) + ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWordTimeOffsets()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableWordTimeOffsets()); hash = (37 * hash) + ENABLE_WORD_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWordConfidence()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableWordConfidence()); hash = (37 * hash) + ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAutomaticPunctuation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableAutomaticPunctuation()); if (hasEnableSpokenPunctuation()) { hash = (37 * hash) + ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER; hash = (53 * hash) + getEnableSpokenPunctuation().hashCode(); @@ -1854,110 +1682,104 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -1965,23 +1787,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionConfig)
       com.google.cloud.speech.v1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionConfig.class,
-              com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionConfig.newBuilder()
@@ -1989,17 +1809,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2069,9 +1889,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -2090,8 +1910,7 @@ public com.google.cloud.speech.v1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.RecognitionConfig result =
-          new com.google.cloud.speech.v1.RecognitionConfig(this);
+      com.google.cloud.speech.v1.RecognitionConfig result = new com.google.cloud.speech.v1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -2152,39 +1971,38 @@ public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2246,10 +2064,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionConfig other) {
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSpeechContextsFieldBuilder()
-                    : null;
+            speechContextsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSpeechContextsFieldBuilder() : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2311,13 +2128,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
-     *
-     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2325,16 +2139,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2342,19 +2152,16 @@ public int getEncodingValue() {
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2362,21 +2169,15 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null - ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2384,7 +2185,6 @@ public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding()
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @param value The encoding to set. * @return This builder for chaining. */ @@ -2392,14 +2192,12 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2407,20 +2205,17 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_; + private int sampleRateHertz_ ; /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2432,7 +2227,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -2440,8 +2234,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2453,19 +2245,16 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; - * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2477,20 +2266,17 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2504,7 +2290,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -2512,8 +2297,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2527,19 +2310,16 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; - * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2553,20 +2333,17 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_; + private boolean enableSeparateRecognitionPerChannel_ ; /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2577,7 +2354,6 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2585,8 +2361,6 @@ public boolean getEnableSeparateRecognitionPerChannel() { return enableSeparateRecognitionPerChannel_; } /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2597,19 +2371,16 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2620,11 +2391,10 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2632,8 +2402,6 @@ public Builder clearEnableSeparateRecognitionPerChannel() { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2644,13 +2412,13 @@ public Builder clearEnableSeparateRecognitionPerChannel() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -2659,8 +2427,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2671,14 +2437,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -2686,8 +2453,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2698,22 +2463,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2724,18 +2487,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2746,34 +2506,29 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = - new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2790,15 +2545,13 @@ private void ensureAlternativeLanguageCodesIsMutable() {
      * 
* * repeated string alternative_language_codes = 18; - * * @return A list containing the alternativeLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getAlternativeLanguageCodesList() { return alternativeLanguageCodes_.getUnmodifiableView(); } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2815,15 +2568,12 @@ public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList()
      * 
* * repeated string alternative_language_codes = 18; - * * @return The count of alternativeLanguageCodes. */ public int getAlternativeLanguageCodesCount() { return alternativeLanguageCodes_.size(); } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2840,7 +2590,6 @@ public int getAlternativeLanguageCodesCount() {
      * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ @@ -2848,8 +2597,6 @@ public java.lang.String getAlternativeLanguageCodes(int index) { return alternativeLanguageCodes_.get(index); } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2866,16 +2613,14 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2892,23 +2637,21 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
      * 
* * repeated string alternative_language_codes = 18; - * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2925,22 +2668,20 @@ public Builder setAlternativeLanguageCodes(int index, java.lang.String value) {
      * 
* * repeated string alternative_language_codes = 18; - * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes(java.lang.String value) { + public Builder addAlternativeLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2957,19 +2698,18 @@ public Builder addAlternativeLanguageCodes(java.lang.String value) {
      * 
* * repeated string alternative_language_codes = 18; - * * @param values The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllAlternativeLanguageCodes(java.lang.Iterable values) { + public Builder addAllAlternativeLanguageCodes( + java.lang.Iterable values) { ensureAlternativeLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternativeLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, alternativeLanguageCodes_); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2986,7 +2726,6 @@ public Builder addAllAlternativeLanguageCodes(java.lang.Iterable
      *
      * repeated string alternative_language_codes = 18;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAlternativeLanguageCodes() {
@@ -2996,8 +2735,6 @@ public Builder clearAlternativeLanguageCodes() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3014,25 +2751,23 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; - * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_; + private int maxAlternatives_ ; /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3043,16 +2778,13 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v
      * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override public int getMaxAlternatives() { return maxAlternatives_; } - /** - * - * + /** *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3063,19 +2795,16 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; - * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3086,20 +2815,17 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_; + private boolean profanityFilter_ ; /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3108,7 +2834,6 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -3116,8 +2841,6 @@ public boolean getProfanityFilter() { return profanityFilter_; } /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3126,19 +2849,16 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; - * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3147,11 +2867,10 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -3159,13 +2878,8 @@ public Builder clearProfanityFilter() { private com.google.cloud.speech.v1.SpeechAdaptation adaptation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptation, - com.google.cloud.speech.v1.SpeechAdaptation.Builder, - com.google.cloud.speech.v1.SpeechAdaptationOrBuilder> - adaptationBuilder_; + com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder> adaptationBuilder_; /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3175,15 +2889,12 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3193,21 +2904,16 @@ public boolean hasAdaptation() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return The adaptation. */ public com.google.cloud.speech.v1.SpeechAdaptation getAdaptation() { if (adaptationBuilder_ == null) { - return adaptation_ == null - ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() - : adaptation_; + return adaptation_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_; } else { return adaptationBuilder_.getMessage(); } } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3232,8 +2938,6 @@ public Builder setAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3256,8 +2960,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3272,9 +2974,7 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-              com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -3286,8 +2986,6 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3310,8 +3008,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3323,13 +3019,11 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1.SpeechAdaptation.Builder getAdaptationBuilder() {
-
+      
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3344,14 +3038,11 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
       if (adaptationBuilder_ != null) {
         return adaptationBuilder_.getMessageOrBuilder();
       } else {
-        return adaptation_ == null
-            ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()
-            : adaptation_;
+        return adaptation_ == null ?
+            com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_;
       }
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3363,42 +3054,32 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation,
-            com.google.cloud.speech.v1.SpeechAdaptation.Builder,
-            com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>
+        com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder> 
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechAdaptation,
-                com.google.cloud.speech.v1.SpeechAdaptation.Builder,
-                com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
-                getAdaptation(), getParentForChildren(), isClean());
+        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
+                getAdaptation(),
+                getParentForChildren(),
+                isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
     }
 
     private java.util.List speechContexts_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureSpeechContextsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        speechContexts_ =
-            new java.util.ArrayList(speechContexts_);
+        speechContexts_ = new java.util.ArrayList(speechContexts_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechContext,
-            com.google.cloud.speech.v1.SpeechContext.Builder,
-            com.google.cloud.speech.v1.SpeechContextOrBuilder>
-        speechContextsBuilder_;
+        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> speechContextsBuilder_;
 
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3417,8 +3098,6 @@ public java.util.List getSpeechContext
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3437,8 +3116,6 @@ public int getSpeechContextsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3457,8 +3134,6 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3469,7 +3144,8 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public Builder setSpeechContexts(int index, com.google.cloud.speech.v1.SpeechContext value) {
+    public Builder setSpeechContexts(
+        int index, com.google.cloud.speech.v1.SpeechContext value) {
       if (speechContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3483,8 +3159,6 @@ public Builder setSpeechContexts(int index, com.google.cloud.speech.v1.SpeechCon
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3507,8 +3181,6 @@ public Builder setSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3533,8 +3205,6 @@ public Builder addSpeechContexts(com.google.cloud.speech.v1.SpeechContext value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3545,7 +3215,8 @@ public Builder addSpeechContexts(com.google.cloud.speech.v1.SpeechContext value)
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public Builder addSpeechContexts(int index, com.google.cloud.speech.v1.SpeechContext value) {
+    public Builder addSpeechContexts(
+        int index, com.google.cloud.speech.v1.SpeechContext value) {
       if (speechContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3559,8 +3230,6 @@ public Builder addSpeechContexts(int index, com.google.cloud.speech.v1.SpeechCon
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3583,8 +3252,6 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3607,8 +3274,6 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3623,7 +3288,8 @@ public Builder addAllSpeechContexts(
         java.lang.Iterable values) {
       if (speechContextsBuilder_ == null) {
         ensureSpeechContextsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speechContexts_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, speechContexts_);
         onChanged();
       } else {
         speechContextsBuilder_.addAllMessages(values);
@@ -3631,8 +3297,6 @@ public Builder addAllSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3654,8 +3318,6 @@ public Builder clearSpeechContexts() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3677,8 +3339,6 @@ public Builder removeSpeechContexts(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3689,12 +3349,11 @@ public Builder removeSpeechContexts(int index) {
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public com.google.cloud.speech.v1.SpeechContext.Builder getSpeechContextsBuilder(int index) {
+    public com.google.cloud.speech.v1.SpeechContext.Builder getSpeechContextsBuilder(
+        int index) {
       return getSpeechContextsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3705,16 +3364,14 @@ public com.google.cloud.speech.v1.SpeechContext.Builder getSpeechContextsBuilder
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index) {
+    public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
+        int index) {
       if (speechContextsBuilder_ == null) {
-        return speechContexts_.get(index);
-      } else {
+        return speechContexts_.get(index);  } else {
         return speechContextsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3725,8 +3382,8 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List
-        getSpeechContextsOrBuilderList() {
+    public java.util.List 
+         getSpeechContextsOrBuilderList() {
       if (speechContextsBuilder_ != null) {
         return speechContextsBuilder_.getMessageOrBuilderList();
       } else {
@@ -3734,8 +3391,6 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3747,12 +3402,10 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
     public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder() {
-      return getSpeechContextsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1.SpeechContext.getDefaultInstance());
+      return getSpeechContextsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1.SpeechContext.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3763,13 +3416,12 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder(int index) {
-      return getSpeechContextsFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v1.SpeechContext.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder(
+        int index) {
+      return getSpeechContextsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1.SpeechContext.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3780,22 +3432,16 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List
-        getSpeechContextsBuilderList() {
+    public java.util.List 
+         getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechContext,
-            com.google.cloud.speech.v1.SpeechContext.Builder,
-            com.google.cloud.speech.v1.SpeechContextOrBuilder>
+        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> 
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechContext,
-                com.google.cloud.speech.v1.SpeechContext.Builder,
-                com.google.cloud.speech.v1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3805,10 +3451,8 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
       return speechContextsBuilder_;
     }
 
-    private boolean enableWordTimeOffsets_;
+    private boolean enableWordTimeOffsets_ ;
     /**
-     *
-     *
      * 
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3817,7 +3461,6 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3825,8 +3468,6 @@ public boolean getEnableWordTimeOffsets() { return enableWordTimeOffsets_; } /** - * - * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3835,19 +3476,16 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; - * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3856,20 +3494,17 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_; + private boolean enableWordConfidence_ ; /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3877,7 +3512,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -3885,8 +3519,6 @@ public boolean getEnableWordConfidence() { return enableWordConfidence_; } /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3894,19 +3526,16 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; - * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3914,20 +3543,17 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_; + private boolean enableAutomaticPunctuation_ ; /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3936,7 +3562,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3944,8 +3569,6 @@ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3954,19 +3577,16 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3975,11 +3595,10 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -3987,13 +3606,8 @@ public Builder clearEnableAutomaticPunctuation() { private com.google.protobuf.BoolValue enableSpokenPunctuation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - enableSpokenPunctuationBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSpokenPunctuationBuilder_; /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4005,15 +3619,12 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4025,21 +3636,16 @@ public boolean hasEnableSpokenPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return The enableSpokenPunctuation. */ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() { if (enableSpokenPunctuationBuilder_ == null) { - return enableSpokenPunctuation_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableSpokenPunctuation_; + return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_; } else { return enableSpokenPunctuationBuilder_.getMessage(); } } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4066,8 +3672,6 @@ public Builder setEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4092,8 +3696,6 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4110,9 +3712,7 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -4124,8 +3724,6 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4150,8 +3748,6 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4165,13 +3761,11 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-
+      
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4188,14 +3782,11 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
       if (enableSpokenPunctuationBuilder_ != null) {
         return enableSpokenPunctuationBuilder_.getMessageOrBuilder();
       } else {
-        return enableSpokenPunctuation_ == null
-            ? com.google.protobuf.BoolValue.getDefaultInstance()
-            : enableSpokenPunctuation_;
+        return enableSpokenPunctuation_ == null ?
+            com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
       }
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4209,17 +3800,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
         getEnableSpokenPunctuationFieldBuilder() {
       if (enableSpokenPunctuationBuilder_ == null) {
-        enableSpokenPunctuationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.BoolValue,
-                com.google.protobuf.BoolValue.Builder,
-                com.google.protobuf.BoolValueOrBuilder>(
-                getEnableSpokenPunctuation(), getParentForChildren(), isClean());
+        enableSpokenPunctuationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+                getEnableSpokenPunctuation(),
+                getParentForChildren(),
+                isClean());
         enableSpokenPunctuation_ = null;
       }
       return enableSpokenPunctuationBuilder_;
@@ -4227,13 +3815,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
 
     private com.google.protobuf.BoolValue enableSpokenEmojis_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
-        enableSpokenEmojisBuilder_;
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSpokenEmojisBuilder_;
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4243,15 +3826,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4261,21 +3841,16 @@ public boolean hasEnableSpokenEmojis() {
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return The enableSpokenEmojis. */ public com.google.protobuf.BoolValue getEnableSpokenEmojis() { if (enableSpokenEmojisBuilder_ == null) { - return enableSpokenEmojis_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableSpokenEmojis_; + return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_; } else { return enableSpokenEmojisBuilder_.getMessage(); } } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4300,8 +3875,6 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4312,7 +3885,8 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(
+        com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -4323,8 +3897,6 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4339,9 +3911,7 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -4353,8 +3923,6 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4377,8 +3945,6 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4390,13 +3956,11 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-
+      
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4411,14 +3975,11 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
       if (enableSpokenEmojisBuilder_ != null) {
         return enableSpokenEmojisBuilder_.getMessageOrBuilder();
       } else {
-        return enableSpokenEmojis_ == null
-            ? com.google.protobuf.BoolValue.getDefaultInstance()
-            : enableSpokenEmojis_;
+        return enableSpokenEmojis_ == null ?
+            com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
       }
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4430,17 +3991,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
         getEnableSpokenEmojisFieldBuilder() {
       if (enableSpokenEmojisBuilder_ == null) {
-        enableSpokenEmojisBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.BoolValue,
-                com.google.protobuf.BoolValue.Builder,
-                com.google.protobuf.BoolValueOrBuilder>(
-                getEnableSpokenEmojis(), getParentForChildren(), isClean());
+        enableSpokenEmojisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+                getEnableSpokenEmojis(),
+                getParentForChildren(),
+                isClean());
         enableSpokenEmojis_ = null;
       }
       return enableSpokenEmojisBuilder_;
@@ -4448,13 +4006,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
 
     private com.google.cloud.speech.v1.SpeakerDiarizationConfig diarizationConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig,
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder,
-            com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder>
-        diarizationConfigBuilder_;
+        com.google.cloud.speech.v1.SpeakerDiarizationConfig, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder> diarizationConfigBuilder_;
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4467,15 +4020,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4488,21 +4038,16 @@ public boolean hasDiarizationConfig() {
      * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; - * * @return The diarizationConfig. */ public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig() { if (diarizationConfigBuilder_ == null) { - return diarizationConfig_ == null - ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() - : diarizationConfig_; + return diarizationConfig_ == null ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; } else { return diarizationConfigBuilder_.getMessage(); } } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4530,8 +4075,6 @@ public Builder setDiarizationConfig(com.google.cloud.speech.v1.SpeakerDiarizatio
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4557,8 +4100,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4572,14 +4113,11 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(
-        com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-              com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -4591,8 +4129,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4618,8 +4154,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4633,15 +4167,12 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder
-        getDiarizationConfigBuilder() {
-
+    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
+      
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4655,19 +4186,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
-        getDiarizationConfigOrBuilder() {
+    public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
       if (diarizationConfigBuilder_ != null) {
         return diarizationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return diarizationConfig_ == null
-            ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()
-            : diarizationConfig_;
+        return diarizationConfig_ == null ?
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4682,17 +4209,14 @@ public Builder clearDiarizationConfig() {
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig,
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder,
-            com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder>
+        com.google.cloud.speech.v1.SpeakerDiarizationConfig, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder> 
         getDiarizationConfigFieldBuilder() {
       if (diarizationConfigBuilder_ == null) {
-        diarizationConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeakerDiarizationConfig,
-                com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder,
-                com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder>(
-                getDiarizationConfig(), getParentForChildren(), isClean());
+        diarizationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder>(
+                getDiarizationConfig(),
+                getParentForChildren(),
+                isClean());
         diarizationConfig_ = null;
       }
       return diarizationConfigBuilder_;
@@ -4700,47 +4224,34 @@ public Builder clearDiarizationConfig() {
 
     private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.RecognitionMetadata,
-            com.google.cloud.speech.v1.RecognitionMetadata.Builder,
-            com.google.cloud.speech.v1.RecognitionMetadataOrBuilder>
-        metadataBuilder_;
+        com.google.cloud.speech.v1.RecognitionMetadata, com.google.cloud.speech.v1.RecognitionMetadata.Builder, com.google.cloud.speech.v1.RecognitionMetadataOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return The metadata. */ public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4761,8 +4272,6 @@ public Builder setMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4781,8 +4290,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4793,9 +4300,7 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } @@ -4807,8 +4312,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4827,8 +4330,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4836,13 +4337,11 @@ public Builder clearMetadata() { * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4853,14 +4352,11 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null - ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? + com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; } } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -4868,17 +4364,14 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionMetadata, - com.google.cloud.speech.v1.RecognitionMetadata.Builder, - com.google.cloud.speech.v1.RecognitionMetadataOrBuilder> + com.google.cloud.speech.v1.RecognitionMetadata, com.google.cloud.speech.v1.RecognitionMetadata.Builder, com.google.cloud.speech.v1.RecognitionMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionMetadata, - com.google.cloud.speech.v1.RecognitionMetadata.Builder, - com.google.cloud.speech.v1.RecognitionMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionMetadata, com.google.cloud.speech.v1.RecognitionMetadata.Builder, com.google.cloud.speech.v1.RecognitionMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); metadata_ = null; } return metadataBuilder_; @@ -4886,8 +4379,6 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil private java.lang.Object model_ = ""; /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4943,13 +4434,13 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
      * 
* * string model = 13; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -4958,8 +4449,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5015,14 +4504,15 @@ public java.lang.String getModel() {
      * 
* * string model = 13; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -5030,8 +4520,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5087,22 +4575,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 13; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5158,18 +4644,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 13; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5225,25 +4708,23 @@ public Builder clearModel() {
      * 
* * string model = 13; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_; + private boolean useEnhanced_ ; /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5255,7 +4736,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -5263,8 +4743,6 @@ public boolean getUseEnhanced() { return useEnhanced_; } /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5276,19 +4754,16 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; - * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5300,18 +4775,17 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; - * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5321,12 +4795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionConfig) private static final com.google.cloud.speech.v1.RecognitionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognitionConfig(); } @@ -5335,16 +4809,16 @@ public static com.google.cloud.speech.v1.RecognitionConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5359,4 +4833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java similarity index 94% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java index c3bdcc43d..a07304d06 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionConfigOrBuilder - extends +public interface RecognitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -33,13 +15,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -47,14 +26,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding(); /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -66,14 +42,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -87,14 +60,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ int getAudioChannelCount(); /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -105,14 +75,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -123,13 +90,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -140,14 +104,12 @@ public interface RecognitionConfigOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -164,13 +126,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @return A list containing the alternativeLanguageCodes. */ - java.util.List getAlternativeLanguageCodesList(); + java.util.List + getAlternativeLanguageCodesList(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -187,13 +147,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -210,14 +167,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -234,15 +188,13 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index); /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -253,14 +205,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ int getMaxAlternatives(); /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -269,14 +218,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ boolean getProfanityFilter(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -286,13 +232,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -302,13 +245,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; - * * @return The adaptation. */ com.google.cloud.speech.v1.SpeechAdaptation getAdaptation(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -322,8 +262,6 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -334,10 +272,9 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List getSpeechContextsList();
+  java.util.List 
+      getSpeechContextsList();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -350,8 +287,6 @@ public interface RecognitionConfigOrBuilder
    */
   com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index);
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -364,8 +299,6 @@ public interface RecognitionConfigOrBuilder
    */
   int getSpeechContextsCount();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -376,11 +309,9 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List
+  java.util.List 
       getSpeechContextsOrBuilderList();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -391,11 +322,10 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
+  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -404,14 +334,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -419,14 +346,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -435,14 +359,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -454,13 +375,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -472,13 +390,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -494,8 +409,6 @@ public interface RecognitionConfigOrBuilder
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -505,13 +418,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -521,13 +431,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -541,8 +448,6 @@ public interface RecognitionConfigOrBuilder
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
-   *
-   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -555,13 +460,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -574,13 +476,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; - * * @return The diarizationConfig. */ com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(); /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -597,32 +496,24 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; - * * @return The metadata. */ com.google.cloud.speech.v1.RecognitionMetadata getMetadata(); /** - * - * *
    * Metadata regarding this request.
    * 
@@ -632,8 +523,6 @@ public interface RecognitionConfigOrBuilder com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuilder(); /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -689,13 +578,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * string model = 13; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -751,14 +637,12 @@ public interface RecognitionConfigOrBuilder
    * 
* * string model = 13; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -770,7 +654,6 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java similarity index 72% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java index 13c6f3d40..5e39e8ad8 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ -@java.lang.Deprecated -public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +@java.lang.Deprecated public final class RecognitionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionMetadata) RecognitionMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognitionMetadata.newBuilder() to construct. private RecognitionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognitionMetadata() { interactionType_ = 0; microphoneDistance_ = 0; @@ -50,15 +31,16 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,67 +59,60 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - interactionType_ = rawValue; - break; - } - case 24: - { - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: - { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: { - microphoneDistance_ = rawValue; - break; - } - case 40: - { - int rawValue = input.readEnum(); + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: - { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + originalMediaType_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); - recordingDeviceName_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceName_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + originalMimeType_ = s; + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + audioTopic_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -145,31 +120,27 @@ private RecognitionMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, - com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } /** - * - * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -177,10 +148,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.InteractionType}
    */
-  public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InteractionType
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -190,8 +160,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     INTERACTION_TYPE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Multiple people in a conversation or discussion. For example in a
      * meeting with two or more people actively participating. Typically
@@ -203,8 +171,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISCUSSION(1),
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -214,8 +180,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PRESENTATION(2),
     /**
-     *
-     *
      * 
      * A phone-call or video-conference in which two or more people, who are
      * not in the same room, are actively participating.
@@ -225,8 +189,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PHONE_CALL(3),
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -235,8 +197,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICEMAIL(4), /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -245,8 +205,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ PROFESSIONALLY_PRODUCED(5), /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -255,8 +213,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_SEARCH(6), /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -265,8 +221,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_COMMAND(7), /** - * - * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -279,8 +233,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -290,8 +242,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INTERACTION_TYPE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Multiple people in a conversation or discussion. For example in a
      * meeting with two or more people actively participating. Typically
@@ -303,8 +253,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -314,8 +262,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PRESENTATION_VALUE = 2;
     /**
-     *
-     *
      * 
      * A phone-call or video-conference in which two or more people, who are
      * not in the same room, are actively participating.
@@ -325,8 +271,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -335,8 +279,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICEMAIL_VALUE = 4; /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -345,8 +287,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -355,8 +295,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICE_SEARCH_VALUE = 6; /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -365,8 +303,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICE_COMMAND_VALUE = 7; /** - * - * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -376,6 +312,7 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DICTATION_VALUE = 8;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -400,54 +337,45 @@ public static InteractionType valueOf(int value) {
      */
     public static InteractionType forNumber(int value) {
       switch (value) {
-        case 0:
-          return INTERACTION_TYPE_UNSPECIFIED;
-        case 1:
-          return DISCUSSION;
-        case 2:
-          return PRESENTATION;
-        case 3:
-          return PHONE_CALL;
-        case 4:
-          return VOICEMAIL;
-        case 5:
-          return PROFESSIONALLY_PRODUCED;
-        case 6:
-          return VOICE_SEARCH;
-        case 7:
-          return VOICE_COMMAND;
-        case 8:
-          return DICTATION;
-        default:
-          return null;
+        case 0: return INTERACTION_TYPE_UNSPECIFIED;
+        case 1: return DISCUSSION;
+        case 2: return PRESENTATION;
+        case 3: return PHONE_CALL;
+        case 4: return VOICEMAIL;
+        case 5: return PROFESSIONALLY_PRODUCED;
+        case 6: return VOICE_SEARCH;
+        case 7: return VOICE_COMMAND;
+        case 8: return DICTATION;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        InteractionType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public InteractionType findValueByNumber(int number) {
+              return InteractionType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public InteractionType findValueByNumber(int number) {
-                return InteractionType.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
       return com.google.cloud.speech.v1.RecognitionMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -456,7 +384,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static InteractionType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -474,18 +403,15 @@ private InteractionType(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the types of capture settings describing an audio file.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance} */ - public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnum { + public enum MicrophoneDistance + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Audio type is not known.
      * 
@@ -494,8 +420,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MICROPHONE_DISTANCE_UNSPECIFIED(0), /** - * - * *
      * The audio was captured from a closely placed microphone. Eg. phone,
      * dictaphone, or handheld microphone. Generally if there speaker is within
@@ -506,8 +430,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     NEARFIELD(1),
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -516,8 +438,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MIDFIELD(2), /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -529,8 +449,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Audio type is not known.
      * 
@@ -539,8 +457,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ public static final int MICROPHONE_DISTANCE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The audio was captured from a closely placed microphone. Eg. phone,
      * dictaphone, or handheld microphone. Generally if there speaker is within
@@ -551,8 +467,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -561,8 +475,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ public static final int MIDFIELD_VALUE = 2; /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -571,6 +483,7 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ public static final int FARFIELD_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -595,16 +508,11 @@ public static MicrophoneDistance valueOf(int value) { */ public static MicrophoneDistance forNumber(int value) { switch (value) { - case 0: - return MICROPHONE_DISTANCE_UNSPECIFIED; - case 1: - return NEARFIELD; - case 2: - return MIDFIELD; - case 3: - return FARFIELD; - default: - return null; + case 0: return MICROPHONE_DISTANCE_UNSPECIFIED; + case 1: return NEARFIELD; + case 2: return MIDFIELD; + case 3: return FARFIELD; + default: return null; } } @@ -612,28 +520,28 @@ public static MicrophoneDistance forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + MicrophoneDistance> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MicrophoneDistance findValueByNumber(int number) { + return MicrophoneDistance.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MicrophoneDistance findValueByNumber(int number) { - return MicrophoneDistance.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.speech.v1.RecognitionMetadata.getDescriptor().getEnumTypes().get(1); } @@ -642,7 +550,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static MicrophoneDistance valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -660,18 +569,15 @@ private MicrophoneDistance(int value) { } /** - * - * *
    * The original media the speech was recorded on.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType} */ - public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum { + public enum OriginalMediaType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown original media type.
      * 
@@ -680,8 +586,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -690,8 +594,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ AUDIO(1), /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -703,8 +605,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown original media type.
      * 
@@ -713,8 +613,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -723,8 +621,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUDIO_VALUE = 1; /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -733,6 +629,7 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int VIDEO_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -757,14 +654,10 @@ public static OriginalMediaType valueOf(int value) { */ public static OriginalMediaType forNumber(int value) { switch (value) { - case 0: - return ORIGINAL_MEDIA_TYPE_UNSPECIFIED; - case 1: - return AUDIO; - case 2: - return VIDEO; - default: - return null; + case 0: return ORIGINAL_MEDIA_TYPE_UNSPECIFIED; + case 1: return AUDIO; + case 2: return VIDEO; + default: return null; } } @@ -772,28 +665,28 @@ public static OriginalMediaType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + OriginalMediaType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OriginalMediaType findValueByNumber(int number) { + return OriginalMediaType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OriginalMediaType findValueByNumber(int number) { - return OriginalMediaType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.speech.v1.RecognitionMetadata.getDescriptor().getEnumTypes().get(2); } @@ -802,7 +695,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static OriginalMediaType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -820,18 +714,15 @@ private OriginalMediaType(int value) { } /** - * - * *
    * The type of device the speech was recorded with.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType} */ - public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEnum { + public enum RecordingDeviceType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The recording device is unknown.
      * 
@@ -840,8 +731,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -850,8 +739,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ SMARTPHONE(1), /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -860,8 +747,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PC(2), /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -870,8 +755,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PHONE_LINE(3), /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -880,8 +763,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ VEHICLE(4), /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -890,8 +771,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ OTHER_OUTDOOR_DEVICE(5), /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -903,8 +782,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * The recording device is unknown.
      * 
@@ -913,8 +790,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -923,8 +798,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int SMARTPHONE_VALUE = 1; /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -933,8 +806,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PC_VALUE = 2; /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -943,8 +814,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PHONE_LINE_VALUE = 3; /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -953,8 +822,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int VEHICLE_VALUE = 4; /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -963,8 +830,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -973,6 +838,7 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_INDOOR_DEVICE_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -997,22 +863,14 @@ public static RecordingDeviceType valueOf(int value) { */ public static RecordingDeviceType forNumber(int value) { switch (value) { - case 0: - return RECORDING_DEVICE_TYPE_UNSPECIFIED; - case 1: - return SMARTPHONE; - case 2: - return PC; - case 3: - return PHONE_LINE; - case 4: - return VEHICLE; - case 5: - return OTHER_OUTDOOR_DEVICE; - case 6: - return OTHER_INDOOR_DEVICE; - default: - return null; + case 0: return RECORDING_DEVICE_TYPE_UNSPECIFIED; + case 1: return SMARTPHONE; + case 2: return PC; + case 3: return PHONE_LINE; + case 4: return VEHICLE; + case 5: return OTHER_OUTDOOR_DEVICE; + case 6: return OTHER_INDOOR_DEVICE; + default: return null; } } @@ -1020,28 +878,28 @@ public static RecordingDeviceType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + RecordingDeviceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RecordingDeviceType findValueByNumber(int number) { + return RecordingDeviceType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RecordingDeviceType findValueByNumber(int number) { - return RecordingDeviceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.speech.v1.RecognitionMetadata.getDescriptor().getEnumTypes().get(3); } @@ -1050,7 +908,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static RecordingDeviceType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1070,46 +929,33 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override - public int getInteractionTypeValue() { + @java.lang.Override public int getInteractionTypeValue() { return interactionType_; } /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * * @return The interactionType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -1118,7 +964,6 @@ public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInterac
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1129,134 +974,87 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override - public int getMicrophoneDistanceValue() { + @java.lang.Override public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override - public int getOriginalMediaTypeValue() { + @java.lang.Override public int getOriginalMediaTypeValue() { return originalMediaType_; } /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override - public int getRecordingDeviceTypeValue() { + @java.lang.Override public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ - @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { + @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1264,7 +1062,6 @@ public int getRecordingDeviceTypeValue() {
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ @java.lang.Override @@ -1273,15 +1070,14 @@ public java.lang.String getRecordingDeviceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordingDeviceName_ = s; return s; } } /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1289,15 +1085,16 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string recording_device_name = 7; - * * @return The bytes for recordingDeviceName. */ @java.lang.Override - public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { + public com.google.protobuf.ByteString + getRecordingDeviceNameBytes() { java.lang.Object ref = recordingDeviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recordingDeviceName_ = b; return b; } else { @@ -1308,8 +1105,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1318,7 +1113,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ @java.lang.Override @@ -1327,15 +1121,14 @@ public java.lang.String getOriginalMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalMimeType_ = s; return s; } } /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1344,15 +1137,16 @@ public java.lang.String getOriginalMimeType() {
    * 
* * string original_mime_type = 8; - * * @return The bytes for originalMimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { + public com.google.protobuf.ByteString + getOriginalMimeTypeBytes() { java.lang.Object ref = originalMimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); originalMimeType_ = b; return b; } else { @@ -1363,15 +1157,12 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The audioTopic. */ @java.lang.Override @@ -1380,30 +1171,30 @@ public java.lang.String getAudioTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audioTopic_ = s; return s; } } /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The bytes for audioTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getAudioTopicBytes() { + public com.google.protobuf.ByteString + getAudioTopicBytes() { java.lang.Object ref = audioTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); audioTopic_ = b; return b; } else { @@ -1412,7 +1203,6 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1424,32 +1214,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (interactionType_ - != com.google.cloud.speech.v1.RecognitionMetadata.InteractionType - .INTERACTION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (interactionType_ != com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.INTERACTION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, interactionType_); } if (industryNaicsCodeOfAudio_ != 0) { output.writeUInt32(3, industryNaicsCodeOfAudio_); } - if (microphoneDistance_ - != com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance - .MICROPHONE_DISTANCE_UNSPECIFIED - .getNumber()) { + if (microphoneDistance_ != com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.MICROPHONE_DISTANCE_UNSPECIFIED.getNumber()) { output.writeEnum(4, microphoneDistance_); } - if (originalMediaType_ - != com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType - .ORIGINAL_MEDIA_TYPE_UNSPECIFIED - .getNumber()) { + if (originalMediaType_ != com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.ORIGINAL_MEDIA_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, originalMediaType_); } - if (recordingDeviceType_ - != com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType - .RECORDING_DEVICE_TYPE_UNSPECIFIED - .getNumber()) { + if (recordingDeviceType_ != com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.RECORDING_DEVICE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(6, recordingDeviceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordingDeviceName_)) { @@ -1470,32 +1249,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (interactionType_ - != com.google.cloud.speech.v1.RecognitionMetadata.InteractionType - .INTERACTION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, interactionType_); + if (interactionType_ != com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.INTERACTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, interactionType_); } if (industryNaicsCodeOfAudio_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, industryNaicsCodeOfAudio_); - } - if (microphoneDistance_ - != com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance - .MICROPHONE_DISTANCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, microphoneDistance_); - } - if (originalMediaType_ - != com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType - .ORIGINAL_MEDIA_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, originalMediaType_); - } - if (recordingDeviceType_ - != com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType - .RECORDING_DEVICE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, recordingDeviceType_); + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, industryNaicsCodeOfAudio_); + } + if (microphoneDistance_ != com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.MICROPHONE_DISTANCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, microphoneDistance_); + } + if (originalMediaType_ != com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.ORIGINAL_MEDIA_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, originalMediaType_); + } + if (recordingDeviceType_ != com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.RECORDING_DEVICE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, recordingDeviceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordingDeviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, recordingDeviceName_); @@ -1514,22 +1286,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionMetadata other = - (com.google.cloud.speech.v1.RecognitionMetadata) obj; + com.google.cloud.speech.v1.RecognitionMetadata other = (com.google.cloud.speech.v1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() + != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; - if (!getAudioTopic().equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName() + .equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType() + .equals(other.getOriginalMimeType())) return false; + if (!getAudioTopic() + .equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1562,127 +1337,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionMetadata) com.google.cloud.speech.v1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, - com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognitionMetadata.newBuilder() @@ -1690,15 +1456,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1722,9 +1489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override @@ -1743,8 +1510,7 @@ public com.google.cloud.speech.v1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1.RecognitionMetadata result = - new com.google.cloud.speech.v1.RecognitionMetadata(this); + com.google.cloud.speech.v1.RecognitionMetadata result = new com.google.cloud.speech.v1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1761,39 +1527,38 @@ public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata) other); + return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata)other); } else { super.mergeFrom(other); return this; @@ -1860,107 +1625,80 @@ public Builder mergeFrom( private int interactionType_ = 0; /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override - public int getInteractionTypeValue() { + @java.lang.Override public int getInteractionTypeValue() { return interactionType_; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The interactionType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType( - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType(com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_; + private int industryNaicsCodeOfAudio_ ; /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1969,7 +1707,6 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1977,8 +1714,6 @@ public int getIndustryNaicsCodeOfAudio() { return industryNaicsCodeOfAudio_; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1987,19 +1722,16 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -2008,11 +1740,10 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -2020,100 +1751,73 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override - public int getMicrophoneDistanceValue() { + @java.lang.Override public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance - getMicrophoneDistance() { + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance( - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance(com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -2121,99 +1825,73 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override - public int getOriginalMediaTypeValue() { + @java.lang.Override public int getOriginalMediaTypeValue() { return originalMediaType_; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType( - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType(com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -2221,105 +1899,73 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override - public int getRecordingDeviceTypeValue() { + @java.lang.Override public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType( - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType(com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -2327,8 +1973,6 @@ public Builder clearRecordingDeviceType() { private java.lang.Object recordingDeviceName_ = ""; /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2336,13 +1980,13 @@ public Builder clearRecordingDeviceType() {
      * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ public java.lang.String getRecordingDeviceName() { java.lang.Object ref = recordingDeviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordingDeviceName_ = s; return s; @@ -2351,8 +1995,6 @@ public java.lang.String getRecordingDeviceName() { } } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2360,14 +2002,15 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; - * * @return The bytes for recordingDeviceName. */ - public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { + public com.google.protobuf.ByteString + getRecordingDeviceNameBytes() { java.lang.Object ref = recordingDeviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recordingDeviceName_ = b; return b; } else { @@ -2375,8 +2018,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { } } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2384,22 +2025,20 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
      * 
* * string recording_device_name = 7; - * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName(java.lang.String value) { + public Builder setRecordingDeviceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2407,18 +2046,15 @@ public Builder setRecordingDeviceName(java.lang.String value) {
      * 
* * string recording_device_name = 7; - * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2426,16 +2062,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; - * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2443,8 +2079,6 @@ public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) private java.lang.Object originalMimeType_ = ""; /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2453,13 +2087,13 @@ public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value)
      * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ public java.lang.String getOriginalMimeType() { java.lang.Object ref = originalMimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalMimeType_ = s; return s; @@ -2468,8 +2102,6 @@ public java.lang.String getOriginalMimeType() { } } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2478,14 +2110,15 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; - * * @return The bytes for originalMimeType. */ - public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { + public com.google.protobuf.ByteString + getOriginalMimeTypeBytes() { java.lang.Object ref = originalMimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); originalMimeType_ = b; return b; } else { @@ -2493,8 +2126,6 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { } } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2503,22 +2134,20 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() {
      * 
* * string original_mime_type = 8; - * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType(java.lang.String value) { + public Builder setOriginalMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2527,18 +2156,15 @@ public Builder setOriginalMimeType(java.lang.String value) {
      * 
* * string original_mime_type = 8; - * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2547,16 +2173,16 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; - * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; @@ -2564,21 +2190,19 @@ public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object audioTopic_ = ""; /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @return The audioTopic. */ public java.lang.String getAudioTopic() { java.lang.Object ref = audioTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audioTopic_ = s; return s; @@ -2587,22 +2211,21 @@ public java.lang.String getAudioTopic() { } } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @return The bytes for audioTopic. */ - public com.google.protobuf.ByteString getAudioTopicBytes() { + public com.google.protobuf.ByteString + getAudioTopicBytes() { java.lang.Object ref = audioTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); audioTopic_ = b; return b; } else { @@ -2610,71 +2233,64 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic(java.lang.String value) { + public Builder setAudioTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2684,12 +2300,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognitionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionMetadata) private static final com.google.cloud.speech.v1.RecognitionMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognitionMetadata(); } @@ -2698,16 +2314,16 @@ public static com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2722,4 +2338,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java similarity index 76% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java index bd7b23985..5b3a0073f 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java @@ -1,57 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -@java.lang.Deprecated -public interface RecognitionMetadataOrBuilder - extends +@java.lang.Deprecated public interface RecognitionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * * @return The enum numeric value on the wire for interactionType. */ int getInteractionTypeValue(); /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; - * * @return The interactionType. */ com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType(); /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -60,97 +35,68 @@ public interface RecognitionMetadataOrBuilder
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ int getIndustryNaicsCodeOfAudio(); /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ int getMicrophoneDistanceValue(); /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance(); /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ int getOriginalMediaTypeValue(); /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType(); /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ int getRecordingDeviceTypeValue(); /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType(); /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -158,13 +104,10 @@ public interface RecognitionMetadataOrBuilder
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ java.lang.String getRecordingDeviceName(); /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -172,14 +115,12 @@ public interface RecognitionMetadataOrBuilder
    * 
* * string recording_device_name = 7; - * * @return The bytes for recordingDeviceName. */ - com.google.protobuf.ByteString getRecordingDeviceNameBytes(); + com.google.protobuf.ByteString + getRecordingDeviceNameBytes(); /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -188,13 +129,10 @@ public interface RecognitionMetadataOrBuilder
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ java.lang.String getOriginalMimeType(); /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -203,35 +141,30 @@ public interface RecognitionMetadataOrBuilder
    * 
* * string original_mime_type = 8; - * * @return The bytes for originalMimeType. */ - com.google.protobuf.ByteString getOriginalMimeTypeBytes(); + com.google.protobuf.ByteString + getOriginalMimeTypeBytes(); /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString getAudioTopicBytes(); + com.google.protobuf.ByteString + getAudioTopicBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java similarity index 61% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java index 91c9cb18f..8940768da 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ -public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecognizeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeRequest) RecognizeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RecognizeRequest() {} + private RecognizeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private RecognizeRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = - input.readMessage( - com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -114,42 +92,35 @@ private RecognizeRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, - com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -157,36 +128,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -196,16 +156,11 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ @java.lang.Override @@ -213,34 +168,23 @@ public boolean hasAudio() { return audio_ != null; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -248,7 +192,6 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +203,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -277,10 +221,12 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -290,21 +236,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeRequest other = - (com.google.cloud.speech.v1.RecognizeRequest) obj; + com.google.cloud.speech.v1.RecognizeRequest other = (com.google.cloud.speech.v1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -330,127 +277,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeRequest) com.google.cloud.speech.v1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, - com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognizeRequest.newBuilder() @@ -458,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -486,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override @@ -507,8 +446,7 @@ public com.google.cloud.speech.v1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1.RecognizeRequest result = - new com.google.cloud.speech.v1.RecognizeRequest(this); + com.google.cloud.speech.v1.RecognizeRequest result = new com.google.cloud.speech.v1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -527,39 +465,38 @@ public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest) other); + return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest)other); } else { super.mergeFrom(other); return this; @@ -605,61 +542,42 @@ public Builder mergeFrom( private com.google.cloud.speech.v1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -675,18 +593,15 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -697,24 +612,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder bu return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -726,16 +635,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -749,67 +654,51 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -817,58 +706,39 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder> - audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } else { return audioBuilder_.getMessage(); } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -884,17 +754,14 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio( + com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -905,23 +772,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder buil return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); } else { audio_ = value; } @@ -933,15 +794,11 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -955,71 +812,55 @@ public Builder clearAudio() { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null - ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? + com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, - com.google.cloud.speech.v1.RecognitionAudio.Builder, - com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), getParentForChildren(), isClean()); + audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), + getParentForChildren(), + isClean()); audio_ = null; } return audioBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1029,12 +870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognizeRequest) private static final com.google.cloud.speech.v1.RecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognizeRequest(); } @@ -1043,16 +884,16 @@ public static com.google.cloud.speech.v1.RecognizeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1067,4 +908,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..5811af703 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public interface RecognizeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The config. + */ + com.google.cloud.speech.v1.RecognitionConfig getConfig(); + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The audio. + */ + com.google.cloud.speech.v1.RecognitionAudio getAudio(); + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java similarity index 74% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java index 7d9714ef5..42ddf12c6 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
  */
-public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,41 +56,35 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
+            }
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -115,7 +92,8 @@ private RecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -124,27 +102,22 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognizeResponse.class,
-            com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -157,8 +130,6 @@ public java.util.List getRes
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -167,13 +138,11 @@ public java.util.List getRes
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResultsOrBuilderList() {
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -186,8 +155,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -200,8 +167,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
     return results_.get(index);
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -218,14 +183,11 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
   public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Duration totalBilledTime_;
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -233,25 +195,18 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -264,7 +219,6 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -276,7 +230,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } @@ -293,10 +248,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -306,18 +263,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeResponse other = - (com.google.cloud.speech.v1.RecognizeResponse) obj; + com.google.cloud.speech.v1.RecognizeResponse other = (com.google.cloud.speech.v1.RecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime() + .equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,104 +301,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -449,23 +400,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeResponse)
       com.google.cloud.speech.v1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognizeResponse.class,
-              com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognizeResponse.newBuilder()
@@ -473,17 +422,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -503,9 +452,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -524,8 +473,7 @@ public com.google.cloud.speech.v1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.RecognizeResponse result =
-          new com.google.cloud.speech.v1.RecognizeResponse(this);
+      com.google.cloud.speech.v1.RecognizeResponse result = new com.google.cloud.speech.v1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -549,39 +497,38 @@ public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -608,10 +555,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognizeResponse other) {
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -648,29 +594,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -686,8 +624,6 @@ public java.util.List getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -703,8 +639,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -720,8 +654,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -729,7 +661,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public Builder setResults(int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
+    public Builder setResults(
+        int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -743,8 +676,6 @@ public Builder setResults(int index, com.google.cloud.speech.v1.SpeechRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -764,8 +695,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -787,8 +716,6 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -796,7 +723,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public Builder addResults(int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
+    public Builder addResults(
+        int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -810,8 +738,6 @@ public Builder addResults(int index, com.google.cloud.speech.v1.SpeechRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -831,8 +757,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -852,8 +776,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -865,7 +787,8 @@ public Builder addAllResults(
         java.lang.Iterable values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -873,8 +796,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -893,8 +814,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -913,8 +832,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -922,12 +839,11 @@ public Builder removeResults(int index) {
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuilder(int index) {
+    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuilder(
+        int index) {
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -938,14 +854,11 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuil
     public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);
-      } else {
+        return results_.get(index);  } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -953,8 +866,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -962,8 +875,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -972,12 +883,10 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -985,14 +894,12 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder(int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder(
+        int index) {
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1000,23 +907,20 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
+        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechRecognitionResult,
-                com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
-                com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1024,47 +928,34 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        totalBilledTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1085,15 +976,14 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1104,8 +994,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1116,9 +1004,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); } else { totalBilledTime_ = value; } @@ -1130,8 +1016,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1150,8 +1034,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1159,13 +1041,11 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1176,14 +1056,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { if (totalBilledTimeBuilder_ != null) { return totalBilledTimeBuilder_.getMessageOrBuilder(); } else { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1191,24 +1068,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), getParentForChildren(), isClean()); + totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), + getParentForChildren(), + isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1218,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognizeResponse) private static final com.google.cloud.speech.v1.RecognizeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognizeResponse(); } @@ -1232,16 +1106,16 @@ public static com.google.cloud.speech.v1.RecognizeResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1256,4 +1130,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java index ea3880945..d2b282a71 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognizeResponseOrBuilder - extends +public interface RecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -33,10 +15,9 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -46,8 +27,6 @@ public interface RecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -57,8 +36,6 @@ public interface RecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,11 +43,9 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -78,35 +53,28 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java similarity index 71% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java index cbd6b730e..72dfa283a 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeakerDiarizationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SpeakerDiarizationConfig() {} + private SpeakerDiarizationConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,33 +52,33 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: - { - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: - { - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: - { - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: - { - speakerTag_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: { + + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: { + + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: { + + speakerTag_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,33 +86,29 @@ private SpeakerDiarizationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -136,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -147,8 +126,6 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -156,7 +133,6 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -167,8 +143,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -176,7 +150,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -187,27 +160,21 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** - * - * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See - * google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. + * See google/cloud/speech/v1/cloud_speech.proto;l=457 * @return The speakerTag. */ @java.lang.Override - @java.lang.Deprecated - public int getSpeakerTag() { + @java.lang.Deprecated public int getSpeakerTag() { return speakerTag_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +186,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableSpeakerDiarization_ != false) { output.writeBool(1, enableSpeakerDiarization_); } @@ -242,16 +210,20 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,18 +233,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeakerDiarizationConfig other = - (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() + != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() + != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() + != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() + != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -285,7 +260,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpeakerDiarization()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSpeakerDiarization()); hash = (37 * hash) + MIN_SPEAKER_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMinSpeakerCount(); hash = (37 * hash) + MAX_SPEAKER_COUNT_FIELD_NUMBER; @@ -298,126 +274,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder() @@ -425,15 +392,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -449,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override @@ -470,8 +438,7 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1.SpeakerDiarizationConfig result = - new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -484,39 +451,38 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig) other); + return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig)other); } else { super.mergeFrom(other); return this; @@ -524,8 +490,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeakerDiarizationConfig other) { - if (other == com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) return this; if (other.getEnableSpeakerDiarization() != false) { setEnableSpeakerDiarization(other.getEnableSpeakerDiarization()); } @@ -557,8 +522,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -568,10 +532,8 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_; + private boolean enableSpeakerDiarization_ ; /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -579,7 +541,6 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -587,8 +548,6 @@ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -596,19 +555,16 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; - * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -616,20 +572,17 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; - * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_; + private int minSpeakerCount_ ; /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -637,7 +590,6 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -645,8 +597,6 @@ public int getMinSpeakerCount() { return minSpeakerCount_; } /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -654,19 +604,16 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; - * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -674,20 +621,17 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_; + private int maxSpeakerCount_ ; /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -695,7 +639,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -703,8 +646,6 @@ public int getMaxSpeakerCount() { return maxSpeakerCount_; } /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -712,19 +653,16 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -732,82 +670,66 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_; + private int speakerTag_ ; /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See - * google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. + * See google/cloud/speech/v1/cloud_speech.proto;l=457 * @return The speakerTag. */ @java.lang.Override - @java.lang.Deprecated - public int getSpeakerTag() { + @java.lang.Deprecated public int getSpeakerTag() { return speakerTag_; } /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See - * google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. + * See google/cloud/speech/v1/cloud_speech.proto;l=457 * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See - * google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. + * See google/cloud/speech/v1/cloud_speech.proto;l=457 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSpeakerTag() { - + @java.lang.Deprecated public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -817,12 +739,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeakerDiarizationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeakerDiarizationConfig) private static final com.google.cloud.speech.v1.SpeakerDiarizationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeakerDiarizationConfig(); } @@ -831,16 +753,16 @@ public static com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -855,4 +777,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java index cf71a32e1..cb178fda1 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeakerDiarizationConfigOrBuilder - extends +public interface SpeakerDiarizationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -33,14 +15,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -48,14 +27,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -63,25 +39,19 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ int getMaxSpeakerCount(); /** - * - * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See - * google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. + * See google/cloud/speech/v1/cloud_speech.proto;l=457 * @return The speakerTag. */ - @java.lang.Deprecated - int getSpeakerTag(); + @java.lang.Deprecated int getSpeakerTag(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java similarity index 79% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java index 3bcc98af9..1ba9f5acf 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** - * - * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ -public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechAdaptation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptation) SpeechAdaptationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,45 +56,40 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phraseSets_.add( - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - phraseSetReferences_.add(s); - break; + phraseSets_.add( + input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - customClasses_.add( - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); - break; + phraseSetReferences_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + customClasses_.add( + input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -119,7 +97,8 @@ private SpeechAdaptation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -134,27 +113,22 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, - com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** - * - * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -168,8 +142,6 @@ public java.util.List getPhraseSetsList()
     return phraseSets_;
   }
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -179,13 +151,11 @@ public java.util.List getPhraseSetsList()
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPhraseSetsOrBuilderList() {
     return phraseSets_;
   }
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -199,8 +169,6 @@ public int getPhraseSetsCount() {
     return phraseSets_.size();
   }
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -214,8 +182,6 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
     return phraseSets_.get(index);
   }
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -225,52 +191,42 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
+  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+      int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
-   *
-   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList + getPhraseSetReferencesList() { return phraseSetReferences_; } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -278,27 +234,22 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** - * - * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -313,8 +264,6 @@ public java.util.List getCustomClassesLi
     return customClasses_;
   }
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -325,13 +274,11 @@ public java.util.List getCustomClassesLi
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getCustomClassesOrBuilderList() {
     return customClasses_;
   }
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -346,8 +293,6 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -362,8 +307,6 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
     return customClasses_.get(index);
   }
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -374,12 +317,12 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
+  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index) {
     return customClasses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -391,7 +334,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < phraseSets_.size(); i++) {
       output.writeMessage(1, phraseSets_.get(i));
     }
@@ -411,7 +355,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < phraseSets_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, phraseSets_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, phraseSets_.get(i));
     }
     {
       int dataSize = 0;
@@ -422,7 +367,8 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -432,17 +378,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechAdaptation other =
-        (com.google.cloud.speech.v1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1.SpeechAdaptation other = (com.google.cloud.speech.v1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList()
+        .equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList()
+        .equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList()
+        .equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -471,127 +419,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.speech.v1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechAdaptation) com.google.cloud.speech.v1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, - com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptation.newBuilder() @@ -599,18 +538,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -632,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechResourceProto - .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override @@ -653,8 +592,7 @@ public com.google.cloud.speech.v1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptation result = - new com.google.cloud.speech.v1.SpeechAdaptation(this); + com.google.cloud.speech.v1.SpeechAdaptation result = new com.google.cloud.speech.v1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -687,39 +625,38 @@ public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation)other); } else { super.mergeFrom(other); return this; @@ -746,10 +683,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptation other) { phraseSetsBuilder_ = null; phraseSets_ = other.phraseSets_; bitField0_ = (bitField0_ & ~0x00000001); - phraseSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPhraseSetsFieldBuilder() - : null; + phraseSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPhraseSetsFieldBuilder() : null; } else { phraseSetsBuilder_.addAllMessages(other.phraseSets_); } @@ -783,10 +719,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptation other) { customClassesBuilder_ = null; customClasses_ = other.customClasses_; bitField0_ = (bitField0_ & ~0x00000004); - customClassesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCustomClassesFieldBuilder() - : null; + customClassesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCustomClassesFieldBuilder() : null; } else { customClassesBuilder_.addAllMessages(other.customClasses_); } @@ -820,28 +755,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder> - phraseSetsBuilder_; + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetsBuilder_; /** - * - * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -858,8 +786,6 @@ public java.util.List getPhraseSetsList()
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -876,8 +802,6 @@ public int getPhraseSetsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -894,8 +818,6 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -904,7 +826,8 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public Builder setPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet value) {
+    public Builder setPhraseSets(
+        int index, com.google.cloud.speech.v1.PhraseSet value) {
       if (phraseSetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -918,8 +841,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet val
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -940,8 +861,6 @@ public Builder setPhraseSets(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -964,8 +883,6 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -974,7 +891,8 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet value) {
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public Builder addPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet value) {
+    public Builder addPhraseSets(
+        int index, com.google.cloud.speech.v1.PhraseSet value) {
       if (phraseSetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -988,8 +906,6 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet val
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -998,7 +914,8 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet val
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) {
+    public Builder addPhraseSets(
+        com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) {
       if (phraseSetsBuilder_ == null) {
         ensurePhraseSetsIsMutable();
         phraseSets_.add(builderForValue.build());
@@ -1009,8 +926,6 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet.Builder builde
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1031,8 +946,6 @@ public Builder addPhraseSets(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1045,7 +958,8 @@ public Builder addAllPhraseSets(
         java.lang.Iterable values) {
       if (phraseSetsBuilder_ == null) {
         ensurePhraseSetsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSets_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, phraseSets_);
         onChanged();
       } else {
         phraseSetsBuilder_.addAllMessages(values);
@@ -1053,8 +967,6 @@ public Builder addAllPhraseSets(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1074,8 +986,6 @@ public Builder clearPhraseSets() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1095,8 +1005,6 @@ public Builder removePhraseSets(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1105,12 +1013,11 @@ public Builder removePhraseSets(int index) {
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder(int index) {
+    public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder(
+        int index) {
       return getPhraseSetsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1119,16 +1026,14 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder(int ind
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
+    public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+        int index) {
       if (phraseSetsBuilder_ == null) {
-        return phraseSets_.get(index);
-      } else {
+        return phraseSets_.get(index);  } else {
         return phraseSetsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1137,8 +1042,8 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public java.util.List
-        getPhraseSetsOrBuilderList() {
+    public java.util.List 
+         getPhraseSetsOrBuilderList() {
       if (phraseSetsBuilder_ != null) {
         return phraseSetsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1146,8 +1051,6 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1157,12 +1060,10 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
     public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder() {
-      return getPhraseSetsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1.PhraseSet.getDefaultInstance());
+      return getPhraseSetsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1.PhraseSet.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1171,13 +1072,12 @@ public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder() {
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder(int index) {
-      return getPhraseSetsFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v1.PhraseSet.getDefaultInstance());
+    public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder(
+        int index) {
+      return getPhraseSetsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1.PhraseSet.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1186,76 +1086,61 @@ public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder(int ind
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public java.util.List getPhraseSetsBuilderList() {
+    public java.util.List 
+         getPhraseSetsBuilderList() {
       return getPhraseSetsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.PhraseSet,
-            com.google.cloud.speech.v1.PhraseSet.Builder,
-            com.google.cloud.speech.v1.PhraseSetOrBuilder>
+        com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> 
         getPhraseSetsFieldBuilder() {
       if (phraseSetsBuilder_ == null) {
-        phraseSetsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.PhraseSet,
-                com.google.cloud.speech.v1.PhraseSet.Builder,
-                com.google.cloud.speech.v1.PhraseSetOrBuilder>(
-                phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder>(
+                phraseSets_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         phraseSets_ = null;
       }
       return phraseSetsBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList phraseSetReferences_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensurePhraseSetReferencesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(phraseSetReferences_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList + getPhraseSetReferencesList() { return phraseSetReferences_.getUnmodifiableView(); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -1263,95 +1148,80 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences(int index, java.lang.String value) { + public Builder setPhraseSetReferences( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences(java.lang.String value) { + public Builder addPhraseSetReferences( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences(java.lang.Iterable values) { + public Builder addAllPhraseSetReferences( + java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phraseSetReferences_); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1361,23 +1231,20 @@ public Builder clearPhraseSetReferences() { return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1385,25 +1252,18 @@ public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) } private java.util.List customClasses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - customClasses_ = - new java.util.ArrayList(customClasses_); + customClasses_ = new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder> - customClassesBuilder_; + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> customClassesBuilder_; /** - * - * *
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1421,8 +1281,6 @@ public java.util.List getCustomClassesLi
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1440,8 +1298,6 @@ public int getCustomClassesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1459,8 +1315,6 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1470,7 +1324,8 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public Builder setCustomClasses(int index, com.google.cloud.speech.v1.CustomClass value) {
+    public Builder setCustomClasses(
+        int index, com.google.cloud.speech.v1.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1484,8 +1339,6 @@ public Builder setCustomClasses(int index, com.google.cloud.speech.v1.CustomClas
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1507,8 +1360,6 @@ public Builder setCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1532,8 +1383,6 @@ public Builder addCustomClasses(com.google.cloud.speech.v1.CustomClass value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1543,7 +1392,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v1.CustomClass value) {
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public Builder addCustomClasses(int index, com.google.cloud.speech.v1.CustomClass value) {
+    public Builder addCustomClasses(
+        int index, com.google.cloud.speech.v1.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1557,8 +1407,6 @@ public Builder addCustomClasses(int index, com.google.cloud.speech.v1.CustomClas
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1580,8 +1428,6 @@ public Builder addCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1603,8 +1449,6 @@ public Builder addCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1618,7 +1462,8 @@ public Builder addAllCustomClasses(
         java.lang.Iterable values) {
       if (customClassesBuilder_ == null) {
         ensureCustomClassesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customClasses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, customClasses_);
         onChanged();
       } else {
         customClassesBuilder_.addAllMessages(values);
@@ -1626,8 +1471,6 @@ public Builder addAllCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1648,8 +1491,6 @@ public Builder clearCustomClasses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1670,8 +1511,6 @@ public Builder removeCustomClasses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1681,12 +1520,11 @@ public Builder removeCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder(int index) {
+    public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder(
+        int index) {
       return getCustomClassesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1696,16 +1534,14 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder(in
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
+    public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
+        int index) {
       if (customClassesBuilder_ == null) {
-        return customClasses_.get(index);
-      } else {
+        return customClasses_.get(index);  } else {
         return customClassesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1715,8 +1551,8 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public java.util.List
-        getCustomClassesOrBuilderList() {
+    public java.util.List 
+         getCustomClassesOrBuilderList() {
       if (customClassesBuilder_ != null) {
         return customClassesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1724,8 +1560,6 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1736,12 +1570,10 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
     public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder() {
-      return getCustomClassesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1.CustomClass.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1751,13 +1583,12 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder()
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(int index) {
-      return getCustomClassesFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v1.CustomClass.getDefaultInstance());
+    public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
+        int index) {
+      return getCustomClassesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1.CustomClass.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1767,22 +1598,16 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(in
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public java.util.List
-        getCustomClassesBuilderList() {
+    public java.util.List 
+         getCustomClassesBuilderList() {
       return getCustomClassesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.CustomClass,
-            com.google.cloud.speech.v1.CustomClass.Builder,
-            com.google.cloud.speech.v1.CustomClassOrBuilder>
+        com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> 
         getCustomClassesFieldBuilder() {
       if (customClassesBuilder_ == null) {
-        customClassesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.CustomClass,
-                com.google.cloud.speech.v1.CustomClass.Builder,
-                com.google.cloud.speech.v1.CustomClassOrBuilder>(
+        customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder>(
                 customClasses_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -1791,9 +1616,9 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(in
       }
       return customClassesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1803,12 +1628,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptation)
   private static final com.google.cloud.speech.v1.SpeechAdaptation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptation();
   }
@@ -1817,16 +1642,16 @@ public static com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SpeechAdaptation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SpeechAdaptation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SpeechAdaptation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SpeechAdaptation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1841,4 +1666,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
similarity index 79%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
index 7ac546836..b40c4c5a0 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/resource.proto
 
 package com.google.cloud.speech.v1;
 
-public interface SpeechAdaptationOrBuilder
-    extends
+public interface SpeechAdaptationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -34,10 +16,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List getPhraseSetsList();
+  java.util.List 
+      getPhraseSetsList();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -48,8 +29,6 @@ public interface SpeechAdaptationOrBuilder
    */
   com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index);
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -60,8 +39,6 @@ public interface SpeechAdaptationOrBuilder
    */
   int getPhraseSetsCount();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -70,11 +47,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List
+  java.util.List 
       getPhraseSetsOrBuilderList();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -83,66 +58,51 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
+  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - java.util.List getPhraseSetReferencesList(); + java.util.List + getPhraseSetReferencesList(); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index); /** - * - * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -152,10 +112,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List getCustomClassesList();
+  java.util.List 
+      getCustomClassesList();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -167,8 +126,6 @@ public interface SpeechAdaptationOrBuilder
    */
   com.google.cloud.speech.v1.CustomClass getCustomClasses(int index);
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -180,8 +137,6 @@ public interface SpeechAdaptationOrBuilder
    */
   int getCustomClassesCount();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -191,11 +146,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List
+  java.util.List 
       getCustomClassesOrBuilderList();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -205,5 +158,6 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
+  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java
new file mode 100644
index 000000000..314543722
--- /dev/null
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java
@@ -0,0 +1,285 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/speech/v1/cloud_speech_adaptation.proto
+
+package com.google.cloud.speech.v1;
+
+public final class SpeechAdaptationProto {
+  private SpeechAdaptationProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n4google/cloud/speech/v1/cloud_speech_ad" +
+      "aptation.proto\022\026google.cloud.speech.v1\032\034" +
+      "google/api/annotations.proto\032\027google/api" +
+      "/client.proto\032\037google/api/field_behavior" +
+      ".proto\032\031google/api/resource.proto\032%googl" +
+      "e/cloud/speech/v1/resource.proto\032\033google" +
+      "/protobuf/empty.proto\032 google/protobuf/f" +
+      "ield_mask.proto\"\251\001\n\026CreatePhraseSetReque" +
+      "st\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037speech.googl" +
+      "eapis.com/PhraseSet\022\032\n\rphrase_set_id\030\002 \001" +
+      "(\tB\003\340A\002\022:\n\nphrase_set\030\003 \001(\0132!.google.clo" +
+      "ud.speech.v1.PhraseSetB\003\340A\002\"\205\001\n\026UpdatePh" +
+      "raseSetRequest\022:\n\nphrase_set\030\001 \001(\0132!.goo" +
+      "gle.cloud.speech.v1.PhraseSetB\003\340A\002\022/\n\013up" +
+      "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" +
+      "ask\"L\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\t" +
+      "B\'\340A\002\372A!\n\037speech.googleapis.com/PhraseSe" +
+      "t\"v\n\024ListPhraseSetRequest\0227\n\006parent\030\001 \001(" +
+      "\tB\'\340A\002\372A!\022\037speech.googleapis.com/PhraseS" +
+      "et\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" +
+      "\t\"h\n\025ListPhraseSetResponse\0226\n\013phrase_set" +
+      "s\030\001 \003(\0132!.google.cloud.speech.v1.PhraseS" +
+      "et\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeletePhr" +
+      "aseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spe" +
+      "ech.googleapis.com/PhraseSet\"\263\001\n\030CreateC" +
+      "ustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" +
+      "#\022!speech.googleapis.com/CustomClass\022\034\n\017" +
+      "custom_class_id\030\002 \001(\tB\003\340A\002\022>\n\014custom_cla" +
+      "ss\030\003 \001(\0132#.google.cloud.speech.v1.Custom" +
+      "ClassB\003\340A\002\"\213\001\n\030UpdateCustomClassRequest\022" +
+      ">\n\014custom_class\030\001 \001(\0132#.google.cloud.spe" +
+      "ech.v1.CustomClassB\003\340A\002\022/\n\013update_mask\030\002" +
+      " \001(\0132\032.google.protobuf.FieldMask\"P\n\025GetC" +
+      "ustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" +
+      "!speech.googleapis.com/CustomClass\"|\n\030Li" +
+      "stCustomClassesRequest\0229\n\006parent\030\001 \001(\tB)" +
+      "\340A\002\372A#\022!speech.googleapis.com/CustomClas" +
+      "s\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" +
+      "\"q\n\031ListCustomClassesResponse\022;\n\016custom_" +
+      "classes\030\001 \003(\0132#.google.cloud.speech.v1.C" +
+      "ustomClass\022\027\n\017next_page_token\030\002 \001(\t\"S\n\030D" +
+      "eleteCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340" +
+      "A\002\372A#\n!speech.googleapis.com/CustomClass" +
+      "2\216\017\n\nAdaptation\022\301\001\n\017CreatePhraseSet\022..go" +
+      "ogle.cloud.speech.v1.CreatePhraseSetRequ" +
+      "est\032!.google.cloud.speech.v1.PhraseSet\"[" +
+      "\202\323\344\223\0023\"./v1/{parent=projects/*/locations" +
+      "/*}/phraseSets:\001*\332A\037parent,phrase_set,ph" +
+      "rase_set_id\022\235\001\n\014GetPhraseSet\022+.google.cl" +
+      "oud.speech.v1.GetPhraseSetRequest\032!.goog" +
+      "le.cloud.speech.v1.PhraseSet\"=\202\323\344\223\0020\022./v" +
+      "1/{name=projects/*/locations/*/phraseSet" +
+      "s/*}\332A\004name\022\255\001\n\rListPhraseSet\022,.google.c" +
+      "loud.speech.v1.ListPhraseSetRequest\032-.go" +
+      "ogle.cloud.speech.v1.ListPhraseSetRespon" +
+      "se\"?\202\323\344\223\0020\022./v1/{parent=projects/*/locat" +
+      "ions/*}/phraseSets\332A\006parent\022\314\001\n\017UpdatePh" +
+      "raseSet\022..google.cloud.speech.v1.UpdateP" +
+      "hraseSetRequest\032!.google.cloud.speech.v1" +
+      ".PhraseSet\"f\202\323\344\223\002G29/v1/{phrase_set.name" +
+      "=projects/*/locations/*/phraseSets/*}:\np" +
+      "hrase_set\332A\026phrase_set,update_mask\022\230\001\n\017D" +
+      "eletePhraseSet\022..google.cloud.speech.v1." +
+      "DeletePhraseSetRequest\032\026.google.protobuf" +
+      ".Empty\"=\202\323\344\223\0020*./v1/{name=projects/*/loc" +
+      "ations/*/phraseSets/*}\332A\004name\022\316\001\n\021Create" +
+      "CustomClass\0220.google.cloud.speech.v1.Cre" +
+      "ateCustomClassRequest\032#.google.cloud.spe" +
+      "ech.v1.CustomClass\"b\202\323\344\223\0026\"1/v1/{parent=" +
+      "projects/*/locations/*}/customClasses:\001*" +
+      "\332A#parent,custom_class,custom_class_id\022\246" +
+      "\001\n\016GetCustomClass\022-.google.cloud.speech." +
+      "v1.GetCustomClassRequest\032#.google.cloud." +
+      "speech.v1.CustomClass\"@\202\323\344\223\0023\0221/v1/{name" +
+      "=projects/*/locations/*/customClasses/*}" +
+      "\332A\004name\022\274\001\n\021ListCustomClasses\0220.google.c" +
+      "loud.speech.v1.ListCustomClassesRequest\032" +
+      "1.google.cloud.speech.v1.ListCustomClass" +
+      "esResponse\"B\202\323\344\223\0023\0221/v1/{parent=projects" +
+      "/*/locations/*}/customClasses\332A\006parent\022\333" +
+      "\001\n\021UpdateCustomClass\0220.google.cloud.spee" +
+      "ch.v1.UpdateCustomClassRequest\032#.google." +
+      "cloud.speech.v1.CustomClass\"o\202\323\344\223\002N2>/v1" +
+      "/{custom_class.name=projects/*/locations" +
+      "/*/customClasses/*}:\014custom_class\332A\030cust" +
+      "om_class,update_mask\022\237\001\n\021DeleteCustomCla" +
+      "ss\0220.google.cloud.speech.v1.DeleteCustom" +
+      "ClassRequest\032\026.google.protobuf.Empty\"@\202\323" +
+      "\344\223\0023*1/v1/{name=projects/*/locations/*/c" +
+      "ustomClasses/*}\332A\004name\032I\312A\025speech.google" +
+      "apis.com\322A.https://www.googleapis.com/au" +
+      "th/cloud-platformB|\n\032com.google.cloud.sp" +
+      "eech.v1B\025SpeechAdaptationProtoP\001Z
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
  */
-public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SpeechContext extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechContext)
     SpeechContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,28 +55,27 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                phrases_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              phrases_.add(s);
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              phrases_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 37:
-            {
-              boost_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            phrases_.add(s);
+            break;
+          }
+          case 37: {
+
+            boost_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,7 +83,8 @@ private SpeechContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -110,27 +93,22 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.SpeechContext.class,
-            com.google.cloud.speech.v1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
-   *
-   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -146,15 +124,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string phrases = 1; - * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList getPhrasesList() { + public com.google.protobuf.ProtocolStringList + getPhrasesList() { return phrases_; } /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -170,15 +146,12 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() {
    * 
* * repeated string phrases = 1; - * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -194,7 +167,6 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -202,8 +174,6 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -219,19 +189,17 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString getPhrasesBytes(int index) { + public com.google.protobuf.ByteString + getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -244,7 +212,6 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -253,7 +220,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +231,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < phrases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrases_.getRaw(i)); } @@ -290,7 +257,8 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -300,16 +268,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechContext)) { return super.equals(obj); } com.google.cloud.speech.v1.SpeechContext other = (com.google.cloud.speech.v1.SpeechContext) obj; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,110 +296,104 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.SpeechContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -437,23 +401,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechContext)
       com.google.cloud.speech.v1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.SpeechContext.class,
-              com.google.cloud.speech.v1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.SpeechContext.newBuilder()
@@ -461,15 +423,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -481,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
@@ -502,8 +465,7 @@ public com.google.cloud.speech.v1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1.SpeechContext result =
-          new com.google.cloud.speech.v1.SpeechContext(this);
+      com.google.cloud.speech.v1.SpeechContext result = new com.google.cloud.speech.v1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -519,39 +481,38 @@ public com.google.cloud.speech.v1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1.SpeechContext) other);
+        return mergeFrom((com.google.cloud.speech.v1.SpeechContext)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -601,21 +562,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -631,15 +587,13 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; - * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList getPhrasesList() { + public com.google.protobuf.ProtocolStringList + getPhrasesList() { return phrases_.getUnmodifiableView(); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -655,15 +609,12 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() {
      * 
* * repeated string phrases = 1; - * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -679,7 +630,6 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -687,8 +637,6 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -704,16 +652,14 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString getPhrasesBytes(int index) { + public com.google.protobuf.ByteString + getPhrasesBytes(int index) { return phrases_.getByteString(index); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -729,23 +675,21 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
      * 
* * repeated string phrases = 1; - * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases(int index, java.lang.String value) { + public Builder setPhrases( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -761,22 +705,20 @@ public Builder setPhrases(int index, java.lang.String value) {
      * 
* * repeated string phrases = 1; - * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases(java.lang.String value) { + public Builder addPhrases( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -792,19 +734,18 @@ public Builder addPhrases(java.lang.String value) {
      * 
* * repeated string phrases = 1; - * * @param values The phrases to add. * @return This builder for chaining. */ - public Builder addAllPhrases(java.lang.Iterable values) { + public Builder addAllPhrases( + java.lang.Iterable values) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phrases_); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -820,7 +761,6 @@ public Builder addAllPhrases(java.lang.Iterable values) {
      * 
* * repeated string phrases = 1; - * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -830,8 +770,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -847,25 +785,23 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; - * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_; + private float boost_ ; /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -878,7 +814,6 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) {
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -886,8 +821,6 @@ public float getBoost() { return boost_; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -900,19 +833,16 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -925,18 +855,17 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -946,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechContext) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechContext) private static final com.google.cloud.speech.v1.SpeechContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechContext(); } @@ -960,16 +889,16 @@ public static com.google.cloud.speech.v1.SpeechContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -984,4 +913,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java similarity index 85% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java index a529f0428..97fbd87c3 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechContextOrBuilder - extends +public interface SpeechContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -41,13 +23,11 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @return A list containing the phrases. */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -63,13 +43,10 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @return The count of phrases. */ int getPhrasesCount(); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -85,14 +62,11 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -108,15 +82,13 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString getPhrasesBytes(int index); + com.google.protobuf.ByteString + getPhrasesBytes(int index); /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -129,7 +101,6 @@ public interface SpeechContextOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java new file mode 100644 index 000000000..774dc9363 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java @@ -0,0 +1,406 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public final class SpeechProto { + private SpeechProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_WordInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/speech/v1/cloud_speech.pr" + + "oto\022\026google.cloud.speech.v1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032%goo" + + "gle/cloud/speech/v1/resource.proto\032#goog" + + "le/longrunning/operations.proto\032\036google/" + + "protobuf/duration.proto\032\037google/protobuf" + + "/timestamp.proto\032\036google/protobuf/wrappe" + + "rs.proto\032\027google/rpc/status.proto\"\220\001\n\020Re" + + "cognizeRequest\022>\n\006config\030\001 \001(\0132).google." + + "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" + + "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" + + "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" + + "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" + + "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" + + "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" + + "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" + + "\0132..google.cloud.speech.v1.TranscriptOut" + + "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" + + "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" + + "treamingRecognizeRequest\022N\n\020streaming_co" + + "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" + + "amingRecognitionConfigH\000\022\027\n\raudio_conten" + + "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" + + "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." + + "google.cloud.speech.v1.RecognitionConfig" + + "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" + + "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" + + "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" + + "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" + + "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" + + "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" + + "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" + + "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" + + "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" + + "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" + + "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" + + "speech_contexts\030\006 \003(\0132%.google.cloud.spe" + + "ech.v1.SpeechContext\022 \n\030enable_word_time" + + "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" + + "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" + + " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" + + "\032.google.protobuf.BoolValue\0228\n\024enable_sp" + + "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" + + "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" + + "le.cloud.speech.v1.SpeakerDiarizationCon" + + "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" + + "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" + + "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" + + "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" + + "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" + + "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" + + "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" + + "ionConfig\022\"\n\032enable_speaker_diarization\030" + + "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" + + "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" + + "B\005\030\001\340A\003\"\244\010\n\023RecognitionMetadata\022U\n\020inter" + + "action_type\030\001 \001(\0162;.google.cloud.speech." + + "v1.RecognitionMetadata.InteractionType\022$" + + "\n\034industry_naics_code_of_audio\030\003 \001(\r\022[\n\023" + + "microphone_distance\030\004 \001(\0162>.google.cloud" + + ".speech.v1.RecognitionMetadata.Microphon" + + "eDistance\022Z\n\023original_media_type\030\005 \001(\0162=" + + ".google.cloud.speech.v1.RecognitionMetad" + + "ata.OriginalMediaType\022^\n\025recording_devic" + + "e_type\030\006 \001(\0162?.google.cloud.speech.v1.Re" + + "cognitionMetadata.RecordingDeviceType\022\035\n" + + "\025recording_device_name\030\007 \001(\t\022\032\n\022original" + + "_mime_type\030\010 \001(\t\022\023\n\013audio_topic\030\n \001(\t\"\305\001" + + "\n\017InteractionType\022 \n\034INTERACTION_TYPE_UN" + + "SPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRESENTAT" + + "ION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020\004\022\033\n\027" + + "PROFESSIONALLY_PRODUCED\020\005\022\020\n\014VOICE_SEARC" + + "H\020\006\022\021\n\rVOICE_COMMAND\020\007\022\r\n\tDICTATION\020\010\"d\n" + + "\022MicrophoneDistance\022#\n\037MICROPHONE_DISTAN" + + "CE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010MIDFI" + + "ELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMediaType" + + "\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDeviceT" + + "ype\022%\n!RECORDING_DEVICE_TYPE_UNSPECIFIED" + + "\020\000\022\016\n\nSMARTPHONE\020\001\022\006\n\002PC\020\002\022\016\n\nPHONE_LINE" + + "\020\003\022\013\n\007VEHICLE\020\004\022\030\n\024OTHER_OUTDOOR_DEVICE\020" + + "\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006:\002\030\001\"/\n\rSpeech" + + "Context\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"" + + "D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r" + + "\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021Recogn" + + "izeResponse\022@\n\007results\030\002 \003(\0132/.google.cl" + + "oud.speech.v1.SpeechRecognitionResult\0224\n" + + "\021total_billed_time\030\003 \001(\0132\031.google.protob" + + "uf.Duration\"\207\002\n\034LongRunningRecognizeResp" + + "onse\022@\n\007results\030\002 \003(\0132/.google.cloud.spe" + + "ech.v1.SpeechRecognitionResult\0224\n\021total_" + + "billed_time\030\003 \001(\0132\031.google.protobuf.Dura" + + "tion\022E\n\routput_config\030\006 \001(\0132..google.clo" + + "ud.speech.v1.TranscriptOutputConfig\022(\n\014o" + + "utput_error\030\007 \001(\0132\022.google.rpc.Status\"\260\001" + + "\n\034LongRunningRecognizeMetadata\022\030\n\020progre" + + "ss_percent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0224\n\020last_update_" + + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020" + + "\n\003uri\030\004 \001(\tB\003\340A\003\"\347\002\n\032StreamingRecognizeR" + + "esponse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Stat" + + "us\022C\n\007results\030\002 \003(\01322.google.cloud.speec" + + "h.v1.StreamingRecognitionResult\022]\n\021speec" + + "h_event_type\030\004 \001(\0162B.google.cloud.speech" + + ".v1.StreamingRecognizeResponse.SpeechEve" + + "ntType\0224\n\021total_billed_time\030\005 \001(\0132\031.goog" + + "le.protobuf.Duration\"L\n\017SpeechEventType\022" + + "\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_" + + "SINGLE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognit" + + "ionResult\022J\n\014alternatives\030\001 \003(\01324.google" + + ".cloud.speech.v1.SpeechRecognitionAltern" + + "ative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstability\030\003 \001" + + "(\002\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" + + "tobuf.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rl" + + "anguage_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecogn" + + "itionResult\022J\n\014alternatives\030\001 \003(\01324.goog" + + "le.cloud.speech.v1.SpeechRecognitionAlte" + + "rnative\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_e" + + "nd_time\030\004 \001(\0132\031.google.protobuf.Duration" + + "\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRe" + + "cognitionAlternative\022\022\n\ntranscript\030\001 \001(\t" + + "\022\022\n\nconfidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .go" + + "ogle.cloud.speech.v1.WordInfo\"\242\001\n\010WordIn" + + "fo\022-\n\nstart_time\030\001 \001(\0132\031.google.protobuf" + + ".Duration\022+\n\010end_time\030\002 \001(\0132\031.google.pro" + + "tobuf.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfiden" + + "ce\030\004 \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006S" + + "peech\022\220\001\n\tRecognize\022(.google.cloud.speec" + + "h.v1.RecognizeRequest\032).google.cloud.spe" + + "ech.v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/sp" + + "eech:recognize:\001*\332A\014config,audio\022\344\001\n\024Lon" + + "gRunningRecognize\0223.google.cloud.speech." + + "v1.LongRunningRecognizeRequest\032\035.google." + + "longrunning.Operation\"x\202\323\344\223\002$\"\037/v1/speec" + + "h:longrunningrecognize:\001*\332A\014config,audio" + + "\312A<\n\034LongRunningRecognizeResponse\022\034LongR" + + "unningRecognizeMetadata\022\201\001\n\022StreamingRec" + + "ognize\0221.google.cloud.speech.v1.Streamin" + + "gRecognizeRequest\0322.google.cloud.speech." + + "v1.StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025" + + "speech.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformBr\n\032com.go" + + "ogle.cloud.speech.v1B\013SpeechProtoP\001Z * Alternative hypotheses (a.k.a. n-best list). *
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechRecognitionAlternative extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,33 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - transcript_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add( - input.readMessage( - com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); - break; + transcript_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + words_.add( + input.readMessage(com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,7 +89,8 @@ private SpeechRecognitionAlternative( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -118,27 +99,22 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** - * - * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -147,7 +123,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -156,15 +131,14 @@ public java.lang.String getTranscript() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transcript_ = s; return s; } } /** - * - * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -173,15 +147,16 @@ public java.lang.String getTranscript() {
    * 
* * string transcript = 1; - * * @return The bytes for transcript. */ @java.lang.Override - public com.google.protobuf.ByteString getTranscriptBytes() { + public com.google.protobuf.ByteString + getTranscriptBytes() { java.lang.Object ref = transcript_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transcript_ = b; return b; } else { @@ -192,8 +167,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -205,7 +178,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -216,8 +188,6 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** - * - * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -231,8 +201,6 @@ public java.util.List getWordsList() {
     return words_;
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -242,13 +210,11 @@ public java.util.List getWordsList() {
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getWordsOrBuilderList() {
     return words_;
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -262,8 +228,6 @@ public int getWordsCount() {
     return words_.size();
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -277,8 +241,6 @@ public com.google.cloud.speech.v1.WordInfo getWords(int index) {
     return words_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -288,12 +250,12 @@ public com.google.cloud.speech.v1.WordInfo getWords(int index) {
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index) {
+  public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
+      int index) {
     return words_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -305,7 +267,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transcript_);
     }
@@ -328,10 +291,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -341,18 +306,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechRecognitionAlternative other =
-        (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript().equals(other.getTranscript())) return false;
+    if (!getTranscript()
+        .equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
-    if (!getWordsList().equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getConfidence())) return false;
+    if (!getWordsList()
+        .equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -367,7 +334,8 @@ public int hashCode() {
     hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER;
     hash = (53 * hash) + getTranscript().hashCode();
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getConfidence());
     if (getWordsCount() > 0) {
       hash = (37 * hash) + WORDS_FIELD_NUMBER;
       hash = (53 * hash) + getWordsList().hashCode();
@@ -378,127 +346,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionAlternative.newBuilder() @@ -506,17 +464,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -534,9 +492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override @@ -555,8 +513,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionAlternative result = - new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -577,39 +534,38 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative)other); } else { super.mergeFrom(other); return this; @@ -617,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -644,10 +599,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -672,8 +626,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,13 +635,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object transcript_ = ""; /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -697,13 +647,13 @@ public Builder mergeFrom(
      * 
* * string transcript = 1; - * * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transcript_ = s; return s; @@ -712,8 +662,6 @@ public java.lang.String getTranscript() { } } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -722,14 +670,15 @@ public java.lang.String getTranscript() {
      * 
* * string transcript = 1; - * * @return The bytes for transcript. */ - public com.google.protobuf.ByteString getTranscriptBytes() { + public com.google.protobuf.ByteString + getTranscriptBytes() { java.lang.Object ref = transcript_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transcript_ = b; return b; } else { @@ -737,8 +686,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { } } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -747,22 +694,20 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
      * 
* * string transcript = 1; - * * @param value The transcript to set. * @return This builder for chaining. */ - public Builder setTranscript(java.lang.String value) { + public Builder setTranscript( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -771,18 +716,15 @@ public Builder setTranscript(java.lang.String value) {
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -791,25 +733,23 @@ public Builder clearTranscript() {
      * 
* * string transcript = 1; - * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -821,7 +761,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -829,8 +768,6 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -842,19 +779,16 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -866,35 +800,28 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.WordInfo, - com.google.cloud.speech.v1.WordInfo.Builder, - com.google.cloud.speech.v1.WordInfoOrBuilder> - wordsBuilder_; + com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> wordsBuilder_; /** - * - * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -911,8 +838,6 @@ public java.util.List getWordsList() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -929,8 +854,6 @@ public int getWordsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -947,8 +870,6 @@ public com.google.cloud.speech.v1.WordInfo getWords(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -957,7 +878,8 @@ public com.google.cloud.speech.v1.WordInfo getWords(int index) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public Builder setWords(int index, com.google.cloud.speech.v1.WordInfo value) {
+    public Builder setWords(
+        int index, com.google.cloud.speech.v1.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -971,8 +893,6 @@ public Builder setWords(int index, com.google.cloud.speech.v1.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -993,8 +913,6 @@ public Builder setWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1017,8 +935,6 @@ public Builder addWords(com.google.cloud.speech.v1.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1027,7 +943,8 @@ public Builder addWords(com.google.cloud.speech.v1.WordInfo value) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public Builder addWords(int index, com.google.cloud.speech.v1.WordInfo value) {
+    public Builder addWords(
+        int index, com.google.cloud.speech.v1.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1041,8 +958,6 @@ public Builder addWords(int index, com.google.cloud.speech.v1.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1051,7 +966,8 @@ public Builder addWords(int index, com.google.cloud.speech.v1.WordInfo value) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public Builder addWords(com.google.cloud.speech.v1.WordInfo.Builder builderForValue) {
+    public Builder addWords(
+        com.google.cloud.speech.v1.WordInfo.Builder builderForValue) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
         words_.add(builderForValue.build());
@@ -1062,8 +978,6 @@ public Builder addWords(com.google.cloud.speech.v1.WordInfo.Builder builderForVa
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1084,8 +998,6 @@ public Builder addWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1098,7 +1010,8 @@ public Builder addAllWords(
         java.lang.Iterable values) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, words_);
         onChanged();
       } else {
         wordsBuilder_.addAllMessages(values);
@@ -1106,8 +1019,6 @@ public Builder addAllWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1127,8 +1038,6 @@ public Builder clearWords() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1148,8 +1057,6 @@ public Builder removeWords(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1158,12 +1065,11 @@ public Builder removeWords(int index) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1.WordInfo.Builder getWordsBuilder(int index) {
+    public com.google.cloud.speech.v1.WordInfo.Builder getWordsBuilder(
+        int index) {
       return getWordsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1172,16 +1078,14 @@ public com.google.cloud.speech.v1.WordInfo.Builder getWordsBuilder(int index) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index) {
+    public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
+        int index) {
       if (wordsBuilder_ == null) {
-        return words_.get(index);
-      } else {
+        return words_.get(index);  } else {
         return wordsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1190,8 +1094,8 @@ public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index)
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public java.util.List
-        getWordsOrBuilderList() {
+    public java.util.List 
+         getWordsOrBuilderList() {
       if (wordsBuilder_ != null) {
         return wordsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1199,8 +1103,6 @@ public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index)
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1210,12 +1112,10 @@ public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index)
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
     public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder() {
-      return getWordsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1.WordInfo.getDefaultInstance());
+      return getWordsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1.WordInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1224,13 +1124,12 @@ public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder() {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder(int index) {
-      return getWordsFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v1.WordInfo.getDefaultInstance());
+    public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder(
+        int index) {
+      return getWordsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1.WordInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1239,29 +1138,27 @@ public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder(int index) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public java.util.List getWordsBuilderList() {
+    public java.util.List 
+         getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.WordInfo,
-            com.google.cloud.speech.v1.WordInfo.Builder,
-            com.google.cloud.speech.v1.WordInfoOrBuilder>
+        com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> 
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.WordInfo,
-                com.google.cloud.speech.v1.WordInfo.Builder,
-                com.google.cloud.speech.v1.WordInfoOrBuilder>(
-                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder>(
+                words_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1271,12 +1168,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechRecognitionAlternative)
   private static final com.google.cloud.speech.v1.SpeechRecognitionAlternative DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechRecognitionAlternative();
   }
@@ -1285,16 +1182,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SpeechRecognitionAlternative parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SpeechRecognitionAlternative(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SpeechRecognitionAlternative parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SpeechRecognitionAlternative(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1309,4 +1206,6 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
index 058f60aa9..90fecb6d9 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
-public interface SpeechRecognitionAlternativeOrBuilder
-    extends
+public interface SpeechRecognitionAlternativeOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechRecognitionAlternative)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -34,13 +16,10 @@ public interface SpeechRecognitionAlternativeOrBuilder
    * 
* * string transcript = 1; - * * @return The transcript. */ java.lang.String getTranscript(); /** - * - * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -49,14 +28,12 @@ public interface SpeechRecognitionAlternativeOrBuilder
    * 
* * string transcript = 1; - * * @return The bytes for transcript. */ - com.google.protobuf.ByteString getTranscriptBytes(); + com.google.protobuf.ByteString + getTranscriptBytes(); /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -68,14 +45,11 @@ public interface SpeechRecognitionAlternativeOrBuilder
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -84,10 +58,9 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
-  java.util.List getWordsList();
+  java.util.List 
+      getWordsList();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -98,8 +71,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    */
   com.google.cloud.speech.v1.WordInfo getWords(int index);
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -110,8 +81,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    */
   int getWordsCount();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -120,10 +89,9 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
-  java.util.List getWordsOrBuilderList();
+  java.util.List 
+      getWordsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -132,5 +100,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index);
+  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
similarity index 77%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
index cfd3c52dd..5ae5d7147 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
- *
- *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechRecognitionResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -44,15 +26,16 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,54 +55,46 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = - new java.util.ArrayList< - com.google.cloud.speech.v1.SpeechRecognitionAlternative>(); - mutable_bitField0_ |= 0x00000001; - } - alternatives_.add( - input.readMessage( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), - extensionRegistry)); - break; - } - case 16: - { - channelTag_ = input.readInt32(); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); - } - resultEndTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); - } + alternatives_.add( + input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry)); + break; + } + case 16: { - break; + channelTag_ = input.readInt32(); + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - languageCode_ = s; - break; + resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,7 +102,8 @@ private SpeechRecognitionResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -136,27 +112,22 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, - com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; private java.util.List alternatives_; /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -167,13 +138,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getAlternativesList() {
+  public java.util.List getAlternativesList() {
     return alternatives_;
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -184,13 +152,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -205,8 +171,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -221,8 +185,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -241,8 +203,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -250,7 +210,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -261,15 +220,12 @@ public int getChannelTag() { public static final int RESULT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndTime_; /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ @java.lang.Override @@ -277,26 +233,19 @@ public boolean hasResultEndTime() { return resultEndTime_ != null; } /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ @java.lang.Override public com.google.protobuf.Duration getResultEndTime() { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -312,8 +261,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
-   *
-   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -321,7 +268,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -330,15 +276,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -346,15 +291,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -363,7 +309,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -375,7 +320,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -398,13 +344,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < alternatives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, alternatives_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, alternatives_.get(i)); } if (channelTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, channelTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, channelTag_); } if (resultEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResultEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -417,21 +366,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechRecognitionResult other = - (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1.SpeechRecognitionResult other = (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; - if (!getAlternativesList().equals(other.getAlternativesList())) return false; - if (getChannelTag() != other.getChannelTag()) return false; + if (!getAlternativesList() + .equals(other.getAlternativesList())) return false; + if (getChannelTag() + != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime().equals(other.getResultEndTime())) return false; + if (!getResultEndTime() + .equals(other.getResultEndTime())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -461,126 +413,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionResult) com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, - com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionResult.newBuilder() @@ -588,17 +531,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -622,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override @@ -643,8 +586,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionResult result = - new com.google.cloud.speech.v1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1.SpeechRecognitionResult result = new com.google.cloud.speech.v1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -670,39 +612,38 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult) other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult)other); } else { super.mergeFrom(other); return this; @@ -710,8 +651,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionResult other) { - if (other == com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance()) return this; if (alternativesBuilder_ == null) { if (!other.alternatives_.isEmpty()) { if (alternatives_.isEmpty()) { @@ -730,10 +670,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionResult othe alternativesBuilder_ = null; alternatives_ = other.alternatives_; bitField0_ = (bitField0_ & ~0x00000001); - alternativesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAlternativesFieldBuilder() - : null; + alternativesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAlternativesFieldBuilder() : null; } else { alternativesBuilder_.addAllMessages(other.alternatives_); } @@ -768,8 +707,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -778,30 +716,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List alternatives_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = - new java.util.ArrayList( - alternatives_); + alternatives_ = new java.util.ArrayList(alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.SpeechRecognitionAlternative, - com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> - alternativesBuilder_; + com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -811,8 +740,7 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List
-        getAlternativesList() {
+    public java.util.List getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -820,8 +748,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -839,8 +765,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -858,8 +782,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -884,8 +806,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -896,8 +816,7 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index,
-        com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -908,8 +827,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -933,8 +850,6 @@ public Builder addAlternatives(com.google.cloud.speech.v1.SpeechRecognitionAlter
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -959,8 +874,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -982,8 +895,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -994,8 +905,7 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index,
-        com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -1006,8 +916,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1018,11 +926,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAllAlternatives(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternatives_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, alternatives_);
         onChanged();
       } else {
         alternativesBuilder_.addAllMessages(values);
@@ -1030,8 +938,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1052,8 +958,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1074,8 +978,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1090,8 +992,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1101,17 +1001,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder
-        getAlternativesOrBuilder(int index) {
+    public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(
+        int index) {
       if (alternativesBuilder_ == null) {
-        return alternatives_.get(index);
-      } else {
+        return alternatives_.get(index);  } else {
         return alternativesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1121,9 +1018,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List<
-            ? extends com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
-        getAlternativesOrBuilderList() {
+    public java.util.List 
+         getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1131,8 +1027,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1142,14 +1036,11 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder
-        addAlternativesBuilder() {
-      return getAlternativesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
+      return getAlternativesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1161,13 +1052,10 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      */
     public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1177,32 +1065,27 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List
-        getAlternativesBuilderList() {
+    public java.util.List 
+         getAlternativesBuilderList() {
       return getAlternativesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
+        com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> 
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechRecognitionAlternative,
-                com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
-                com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>(
+                alternatives_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         alternatives_ = null;
       }
       return alternativesBuilder_;
     }
 
-    private int channelTag_;
+    private int channelTag_ ;
     /**
-     *
-     *
      * 
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1210,7 +1093,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1218,8 +1100,6 @@ public int getChannelTag() { return channelTag_; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1227,19 +1107,16 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; - * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1247,11 +1124,10 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1259,49 +1135,36 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1323,8 +1186,6 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1332,7 +1193,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1343,8 +1205,6 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1356,9 +1216,7 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-              com.google.protobuf.Duration.newBuilder(resultEndTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1370,8 +1228,6 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1391,8 +1247,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1401,13 +1255,11 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-
+      
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1419,14 +1271,11 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
       if (resultEndTimeBuilder_ != null) {
         return resultEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndTime_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : resultEndTime_;
+        return resultEndTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1435,17 +1284,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getResultEndTimeFieldBuilder() {
       if (resultEndTimeBuilder_ == null) {
-        resultEndTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getResultEndTime(), getParentForChildren(), isClean());
+        resultEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getResultEndTime(),
+                getParentForChildren(),
+                isClean());
         resultEndTime_ = null;
       }
       return resultEndTimeBuilder_;
@@ -1453,8 +1299,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
 
     private java.lang.Object languageCode_ = "";
     /**
-     *
-     *
      * 
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1462,13 +1306,13 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1477,8 +1321,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1486,14 +1328,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1501,8 +1344,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1510,22 +1351,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1533,18 +1372,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1552,23 +1388,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1578,12 +1414,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechRecognitionResult) private static final com.google.cloud.speech.v1.SpeechRecognitionResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechRecognitionResult(); } @@ -1592,16 +1428,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1616,4 +1452,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java similarity index 83% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java index 50085b974..aa2bef7b6 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechRecognitionResultOrBuilder - extends +public interface SpeechRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -35,10 +17,9 @@ public interface SpeechRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List getAlternativesList();
+  java.util.List 
+      getAlternativesList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -50,8 +31,6 @@ public interface SpeechRecognitionResultOrBuilder
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -63,8 +42,6 @@ public interface SpeechRecognitionResultOrBuilder
    */
   int getAlternativesCount();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -74,11 +51,9 @@ public interface SpeechRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List
+  java.util.List 
       getAlternativesOrBuilderList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -92,8 +67,6 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -101,40 +74,31 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ int getChannelTag(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -145,8 +109,6 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -154,13 +116,10 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -168,8 +127,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java new file mode 100644 index 000000000..c8d1551f7 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java @@ -0,0 +1,121 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/resource.proto + +package com.google.cloud.speech.v1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/speech/v1/resource.proto\022" + + "\026google.cloud.speech.v1\032\031google/api/reso" + + "urce.proto\"\374\001\n\013CustomClass\022\014\n\004name\030\001 \001(\t" + + "\022\027\n\017custom_class_id\030\002 \001(\t\022<\n\005items\030\003 \003(\013" + + "2-.google.cloud.speech.v1.CustomClass.Cl" + + "assItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:l\352Ai" + + "\n!speech.googleapis.com/CustomClass\022Dpro" + + "jects/{project}/locations/{location}/cus" + + "tomClasses/{custom_class}\"\362\001\n\tPhraseSet\022" + + "\014\n\004name\030\001 \001(\t\0229\n\007phrases\030\002 \003(\0132(.google." + + "cloud.speech.v1.PhraseSet.Phrase\022\r\n\005boos" + + "t\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boos" + + "t\030\002 \001(\002:e\352Ab\n\037speech.googleapis.com/Phra" + + "seSet\022?projects/{project}/locations/{loc" + + "ation}/phraseSets/{phrase_set}\"\314\001\n\020Speec" + + "hAdaptation\0226\n\013phrase_sets\030\001 \003(\0132!.googl" + + "e.cloud.speech.v1.PhraseSet\022C\n\025phrase_se" + + "t_references\030\002 \003(\tB$\372A!\n\037speech.googleap" + + "is.com/PhraseSet\022;\n\016custom_classes\030\003 \003(\013" + + "2#.google.cloud.speech.v1.CustomClassBz\n" + + "\032com.google.cloud.speech.v1B\023SpeechResou" + + "rceProtoP\001Z * Provides information to the recognizer that specifies how to process the * request. @@ -28,29 +11,30 @@ * * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig} */ -public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamingRecognitionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionConfig) StreamingRecognitionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamingRecognitionConfig.newBuilder() to construct. private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private StreamingRecognitionConfig() {} + private StreamingRecognitionConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamingRecognitionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StreamingRecognitionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,39 +53,36 @@ private StreamingRecognitionConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); } - case 16: - { - singleUtterance_ = input.readBool(); - break; + config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); } - case 24: - { - interimResults_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + singleUtterance_ = input.readBool(); + break; + } + case 24: { + + interimResults_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,42 +90,35 @@ private StreamingRecognitionConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.StreamingRecognitionConfig.class, - com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -152,36 +126,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -191,8 +154,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -215,7 +176,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -226,8 +186,6 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -236,7 +194,6 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -245,7 +202,6 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -257,7 +213,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -277,13 +234,16 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -293,20 +253,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionConfig other = - (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } - if (getSingleUtterance() != other.getSingleUtterance()) return false; - if (getInterimResults() != other.getInterimResults()) return false; + if (getSingleUtterance() + != other.getSingleUtterance()) return false; + if (getInterimResults() + != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -323,113 +285,107 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -437,23 +393,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.class,
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder()
@@ -461,15 +415,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -487,9 +442,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -508,8 +463,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionConfig result =
-          new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -525,39 +479,38 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -565,8 +518,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognitionConfig other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance()) return this;
       if (other.hasConfig()) {
         mergeConfig(other.getConfig());
       }
@@ -595,8 +547,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -608,61 +559,42 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.RecognitionConfig,
-            com.google.cloud.speech.v1.RecognitionConfig.Builder,
-            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -678,18 +610,15 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig( + com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -700,24 +629,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder bu return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -729,16 +652,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -752,76 +671,58 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, - com.google.cloud.speech.v1.RecognitionConfig.Builder, - com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_; + private boolean singleUtterance_ ; /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -844,7 +745,6 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -852,8 +752,6 @@ public boolean getSingleUtterance() { return singleUtterance_; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -876,19 +774,16 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; - * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -911,20 +806,17 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; - * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_; + private boolean interimResults_ ; /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -933,7 +825,6 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -941,8 +832,6 @@ public boolean getInterimResults() { return interimResults_; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -951,19 +840,16 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; - * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -972,18 +858,17 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; - * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -993,12 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.StreamingRecognitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognitionConfig) private static final com.google.cloud.speech.v1.StreamingRecognitionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.StreamingRecognitionConfig(); } @@ -1007,16 +892,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1031,4 +916,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java index 7b3064599..8c5cfecdc 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java @@ -1,75 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionConfigOrBuilder - extends +public interface StreamingRecognitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -92,14 +60,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ boolean getSingleUtterance(); /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -108,7 +73,6 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ boolean getInterimResults(); diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java similarity index 77% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java index 779001ee5..91bf80323 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognitionResult extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -45,15 +27,16 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,64 +56,56 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                alternatives_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1.SpeechRecognitionAlternative>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              alternatives_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              alternatives_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 16:
-            {
-              isFinal_ = input.readBool();
-              break;
-            }
-          case 29:
-            {
-              stability_ = input.readFloat();
-              break;
-            }
-          case 34:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (resultEndTime_ != null) {
-                subBuilder = resultEndTime_.toBuilder();
-              }
-              resultEndTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(resultEndTime_);
-                resultEndTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            alternatives_.add(
+                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry));
+            break;
+          }
+          case 16: {
+
+            isFinal_ = input.readBool();
+            break;
+          }
+          case 29: {
+
+            stability_ = input.readFloat();
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (resultEndTime_ != null) {
+              subBuilder = resultEndTime_.toBuilder();
             }
-          case 40:
-            {
-              channelTag_ = input.readInt32();
-              break;
+            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(resultEndTime_);
+              resultEndTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              languageCode_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 40: {
+
+            channelTag_ = input.readInt32();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            languageCode_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -138,7 +113,8 @@ private StreamingRecognitionResult(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -147,27 +123,22 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognitionResult.class,
-            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
   private java.util.List alternatives_;
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -178,13 +149,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getAlternativesList() {
+  public java.util.List getAlternativesList() {
     return alternatives_;
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -195,13 +163,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -216,8 +182,6 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -232,8 +196,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -252,8 +214,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_;
   /**
-   *
-   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -263,7 +223,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -274,8 +233,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -285,7 +242,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -296,15 +252,12 @@ public float getStability() { public static final int RESULT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndTime_; /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ @java.lang.Override @@ -312,26 +265,19 @@ public boolean hasResultEndTime() { return resultEndTime_ != null; } /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ @java.lang.Override public com.google.protobuf.Duration getResultEndTime() { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -347,8 +293,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -356,7 +300,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -367,8 +310,6 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -376,7 +317,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -385,15 +325,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -401,15 +340,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -418,7 +358,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -430,7 +369,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -459,19 +399,24 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < alternatives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, alternatives_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, alternatives_.get(i)); } if (isFinal_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isFinal_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isFinal_); } if (java.lang.Float.floatToRawIntBits(stability_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, stability_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, stability_); } if (resultEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResultEndTime()); } if (channelTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, channelTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, channelTag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -484,24 +429,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionResult other = - (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1.StreamingRecognitionResult other = (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; - if (!getAlternativesList().equals(other.getAlternativesList())) return false; - if (getIsFinal() != other.getIsFinal()) return false; + if (!getAlternativesList() + .equals(other.getAlternativesList())) return false; + if (getIsFinal() + != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits(other.getStability())) return false; + != java.lang.Float.floatToIntBits( + other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime().equals(other.getResultEndTime())) return false; + if (!getResultEndTime() + .equals(other.getResultEndTime())) return false; } - if (getChannelTag() != other.getChannelTag()) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (getChannelTag() + != other.getChannelTag()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -518,9 +468,11 @@ public int hashCode() { hash = (53 * hash) + getAlternativesList().hashCode(); } hash = (37 * hash) + IS_FINAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFinal()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinal()); hash = (37 * hash) + STABILITY_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getStability()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getStability()); if (hasResultEndTime()) { hash = (37 * hash) + RESULT_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getResultEndTime().hashCode(); @@ -535,104 +487,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1.StreamingRecognitionResult prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A streaming speech recognition result corresponding to a portion of the audio
    * that is currently being processed.
@@ -640,23 +584,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionResult)
       com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionResult.class,
-              com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionResult.newBuilder()
@@ -664,17 +606,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -702,9 +644,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
@@ -723,8 +665,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionResult result =
-          new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1.StreamingRecognitionResult result = new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -752,39 +693,38 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult) other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -792,8 +732,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognitionResult other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance()) return this;
       if (alternativesBuilder_ == null) {
         if (!other.alternatives_.isEmpty()) {
           if (alternatives_.isEmpty()) {
@@ -812,10 +751,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognitionResult o
             alternativesBuilder_ = null;
             alternatives_ = other.alternatives_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            alternativesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAlternativesFieldBuilder()
-                    : null;
+            alternativesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAlternativesFieldBuilder() : null;
           } else {
             alternativesBuilder_.addAllMessages(other.alternatives_);
           }
@@ -856,8 +794,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -866,30 +803,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List alternatives_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ =
-            new java.util.ArrayList(
-                alternatives_);
+        alternatives_ = new java.util.ArrayList(alternatives_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
-        alternativesBuilder_;
+        com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
 
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -899,8 +827,7 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List
-        getAlternativesList() {
+    public java.util.List getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -908,8 +835,6 @@ private void ensureAlternativesIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -927,8 +852,6 @@ public int getAlternativesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -946,8 +869,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -972,8 +893,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -984,8 +903,7 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index,
-        com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -996,8 +914,6 @@ public Builder setAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1021,8 +937,6 @@ public Builder addAlternatives(com.google.cloud.speech.v1.SpeechRecognitionAlter
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1047,8 +961,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1070,8 +982,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1082,8 +992,7 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index,
-        com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -1094,8 +1003,6 @@ public Builder addAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1106,11 +1013,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAllAlternatives(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternatives_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, alternatives_);
         onChanged();
       } else {
         alternativesBuilder_.addAllMessages(values);
@@ -1118,8 +1025,6 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1140,8 +1045,6 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1162,8 +1065,6 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1178,8 +1079,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1189,17 +1088,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder
-        getAlternativesOrBuilder(int index) {
+    public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(
+        int index) {
       if (alternativesBuilder_ == null) {
-        return alternatives_.get(index);
-      } else {
+        return alternatives_.get(index);  } else {
         return alternativesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1209,9 +1105,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List<
-            ? extends com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
-        getAlternativesOrBuilderList() {
+    public java.util.List 
+         getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1219,8 +1114,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
       }
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1230,14 +1123,11 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder
-        addAlternativesBuilder() {
-      return getAlternativesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
+      return getAlternativesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1249,13 +1139,10 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      */
     public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1265,32 +1152,27 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List
-        getAlternativesBuilderList() {
+    public java.util.List 
+         getAlternativesBuilderList() {
       return getAlternativesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
+        com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> 
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.SpeechRecognitionAlternative,
-                com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
-                com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>(
+                alternatives_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         alternatives_ = null;
       }
       return alternativesBuilder_;
     }
 
-    private boolean isFinal_;
+    private boolean isFinal_ ;
     /**
-     *
-     *
      * 
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1300,7 +1182,6 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1308,8 +1189,6 @@ public boolean getIsFinal() { return isFinal_; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1319,19 +1198,16 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; - * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1341,20 +1217,17 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_; + private float stability_ ; /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1364,7 +1237,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1372,8 +1244,6 @@ public float getStability() { return stability_; } /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1383,19 +1253,16 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1405,11 +1272,10 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1417,49 +1283,36 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1481,8 +1334,6 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1490,7 +1341,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1501,8 +1353,6 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1514,9 +1364,7 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-              com.google.protobuf.Duration.newBuilder(resultEndTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1528,8 +1376,6 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1549,8 +1395,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1559,13 +1403,11 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-
+      
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1577,14 +1419,11 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
       if (resultEndTimeBuilder_ != null) {
         return resultEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndTime_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : resultEndTime_;
+        return resultEndTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1593,26 +1432,21 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getResultEndTimeFieldBuilder() {
       if (resultEndTimeBuilder_ == null) {
-        resultEndTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getResultEndTime(), getParentForChildren(), isClean());
+        resultEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getResultEndTime(),
+                getParentForChildren(),
+                isClean());
         resultEndTime_ = null;
       }
       return resultEndTimeBuilder_;
     }
 
-    private int channelTag_;
+    private int channelTag_ ;
     /**
-     *
-     *
      * 
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1620,7 +1454,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1628,8 +1461,6 @@ public int getChannelTag() { return channelTag_; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1637,19 +1468,16 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; - * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1657,11 +1485,10 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1669,8 +1496,6 @@ public Builder clearChannelTag() { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1678,13 +1503,13 @@ public Builder clearChannelTag() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1693,8 +1518,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1702,14 +1525,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1717,8 +1541,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1726,22 +1548,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1749,18 +1569,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1768,23 +1585,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1794,12 +1611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.StreamingRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognitionResult) private static final com.google.cloud.speech.v1.StreamingRecognitionResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.StreamingRecognitionResult(); } @@ -1808,16 +1625,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1832,4 +1649,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java index 21ef917f1..c44aa1077 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionResultOrBuilder - extends +public interface StreamingRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -35,10 +17,9 @@ public interface StreamingRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List getAlternativesList();
+  java.util.List 
+      getAlternativesList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -50,8 +31,6 @@ public interface StreamingRecognitionResultOrBuilder
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -63,8 +42,6 @@ public interface StreamingRecognitionResultOrBuilder
    */
   int getAlternativesCount();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -74,11 +51,9 @@ public interface StreamingRecognitionResultOrBuilder
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List
+  java.util.List 
       getAlternativesOrBuilderList();
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -92,8 +67,6 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
-   *
-   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -103,14 +76,11 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * bool is_final = 2; - * * @return The isFinal. */ boolean getIsFinal(); /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -120,40 +90,31 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * float stability = 3; - * * @return The stability. */ float getStability(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -164,8 +125,6 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -173,14 +132,11 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ int getChannelTag(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -188,13 +144,10 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -202,8 +155,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java similarity index 73% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index 14b5d8f69..0632d9754 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -31,29 +14,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private StreamingRecognizeRequest() {}
+  private StreamingRecognizeRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,39 +56,32 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
-              if (streamingRequestCase_ == 1) {
-                subBuilder =
-                    ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_)
-                        .toBuilder();
-              }
-              streamingRequest_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
-                streamingRequest_ = subBuilder.buildPartial();
-              }
-              streamingRequestCase_ = 1;
-              break;
+          case 10: {
+            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
+            if (streamingRequestCase_ == 1) {
+              subBuilder = ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
             }
-          case 18:
-            {
-              streamingRequest_ = input.readBytes();
-              streamingRequestCase_ = 2;
-              break;
+            streamingRequest_ =
+                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
+              streamingRequest_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            streamingRequestCase_ = 1;
+            break;
+          }
+          case 18: {
+            streamingRequest_ = input.readBytes();
+            streamingRequestCase_ = 2;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -112,40 +89,35 @@ private StreamingRecognizeRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
-            com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
-
   public enum StreamingRequestCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
-
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -161,30 +133,25 @@ public static StreamingRequestCase valueOf(int value) {
 
     public static StreamingRequestCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return STREAMING_CONFIG;
-        case 2:
-          return AUDIO_CONTENT;
-        case 0:
-          return STREAMINGREQUEST_NOT_SET;
-        default:
-          return null;
+        case 1: return STREAMING_CONFIG;
+        case 2: return AUDIO_CONTENT;
+        case 0: return STREAMINGREQUEST_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public StreamingRequestCase getStreamingRequestCase() {
-    return StreamingRequestCase.forNumber(streamingRequestCase_);
+  public StreamingRequestCase
+  getStreamingRequestCase() {
+    return StreamingRequestCase.forNumber(
+        streamingRequestCase_);
   }
 
   public static final int STREAMING_CONFIG_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -192,7 +159,6 @@ public StreamingRequestCase getStreamingRequestCase() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -200,8 +166,6 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 1; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -209,19 +173,16 @@ public boolean hasStreamingConfig() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig() { if (streamingRequestCase_ == 1) { - return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_; + return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance(); } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -231,18 +192,15 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(
    * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder
-      getStreamingConfigOrBuilder() {
+  public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
     if (streamingRequestCase_ == 1) {
-      return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_;
+       return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_;
     }
     return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
   }
 
   public static final int AUDIO_CONTENT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -255,7 +213,6 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -263,8 +220,6 @@ public boolean hasAudioContent() { return streamingRequestCase_ == 2; } /** - * - * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -277,7 +232,6 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ @java.lang.Override @@ -289,7 +243,6 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -301,13 +254,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes( + 2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -319,14 +273,13 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -336,21 +289,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognizeRequest other = - (com.google.cloud.speech.v1.StreamingRecognizeRequest) obj; + com.google.cloud.speech.v1.StreamingRecognizeRequest other = (com.google.cloud.speech.v1.StreamingRecognizeRequest) obj; if (!getStreamingRequestCase().equals(other.getStreamingRequestCase())) return false; switch (streamingRequestCase_) { case 1: - if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig() + .equals(other.getStreamingConfig())) return false; break; case 2: - if (!getAudioContent().equals(other.getAudioContent())) return false; + if (!getAudioContent() + .equals(other.getAudioContent())) return false; break; case 0: default: @@ -384,103 +338,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The top-level message sent by the client for the `StreamingRecognize` method.
    * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -491,23 +438,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
-              com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeRequest.newBuilder()
@@ -515,15 +460,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -533,9 +479,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -554,8 +500,7 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeRequest result =
-          new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -575,39 +520,38 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -615,23 +559,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance()) return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG:
-          {
-            mergeStreamingConfig(other.getStreamingConfig());
-            break;
-          }
-        case AUDIO_CONTENT:
-          {
-            setAudioContent(other.getAudioContent());
-            break;
-          }
-        case STREAMINGREQUEST_NOT_SET:
-          {
-            break;
-          }
+        case STREAMING_CONFIG: {
+          mergeStreamingConfig(other.getStreamingConfig());
+          break;
+        }
+        case AUDIO_CONTENT: {
+          setAudioContent(other.getAudioContent());
+          break;
+        }
+        case STREAMINGREQUEST_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -652,8 +592,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -662,12 +601,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-
-    public StreamingRequestCase getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(streamingRequestCase_);
+    public StreamingRequestCase
+        getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(
+          streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -677,14 +616,10 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionConfig,
-            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
-        streamingConfigBuilder_;
+        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -692,7 +627,6 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -700,8 +634,6 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 1; } /** - * - * *
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -709,7 +641,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override @@ -727,8 +658,6 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig( } } /** - * - * *
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -751,8 +680,6 @@ public Builder setStreamingConfig(com.google.cloud.speech.v1.StreamingRecognitio
       return this;
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -773,8 +700,6 @@ public Builder setStreamingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -783,17 +708,12 @@ public Builder setStreamingConfig(
      *
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public Builder mergeStreamingConfig(
-        com.google.cloud.speech.v1.StreamingRecognitionConfig value) {
+    public Builder mergeStreamingConfig(com.google.cloud.speech.v1.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
-        if (streamingRequestCase_ == 1
-            && streamingRequest_
-                != com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance()) {
-          streamingRequest_ =
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder(
-                      (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (streamingRequestCase_ == 1 &&
+            streamingRequest_ != com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance()) {
+          streamingRequest_ = com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_)
+              .mergeFrom(value).buildPartial();
         } else {
           streamingRequest_ = value;
         }
@@ -809,8 +729,6 @@ public Builder mergeStreamingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -836,8 +754,6 @@ public Builder clearStreamingConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -846,13 +762,10 @@ public Builder clearStreamingConfig() {
      *
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder
-        getStreamingConfigBuilder() {
+    public com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder getStreamingConfigBuilder() {
       return getStreamingConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -862,8 +775,7 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder
-        getStreamingConfigOrBuilder() {
+    public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
       if ((streamingRequestCase_ == 1) && (streamingConfigBuilder_ != null)) {
         return streamingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -874,8 +786,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -885,34 +795,25 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionConfig,
-            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
+        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> 
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ =
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ = com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1.StreamingRecognitionConfig,
-                com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
-                com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return streamingConfigBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -925,15 +826,12 @@ public Builder clearStreamingConfig() {
      * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ public boolean hasAudioContent() { return streamingRequestCase_ == 2; } /** - * - * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -946,7 +844,6 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; - * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -956,8 +853,6 @@ public com.google.protobuf.ByteString getAudioContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -970,22 +865,19 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; - * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** - * - * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -998,7 +890,6 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; - * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -1009,9 +900,9 @@ public Builder clearAudioContent() { } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1021,12 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.StreamingRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognizeRequest) private static final com.google.cloud.speech.v1.StreamingRecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.StreamingRecognizeRequest(); } @@ -1035,16 +926,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1059,4 +950,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java similarity index 79% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index 13fc461c9..28ed92b15 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognizeRequestOrBuilder - extends +public interface StreamingRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -33,13 +15,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -47,13 +26,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(); /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -65,8 +41,6 @@ public interface StreamingRecognizeRequestOrBuilder
   com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -79,13 +53,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** - * - * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -98,11 +69,9 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase - getStreamingRequestCase(); + public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java similarity index 77% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java index 9e1247d71..a4e49a132 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -62,16 +45,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -79,15 +61,16 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -107,63 +90,54 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (error_ != null) {
-                subBuilder = error_.toBuilder();
-              }
-              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(error_);
-                error_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (error_ != null) {
+              subBuilder = error_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1.StreamingRecognitionResult>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(error_);
+              error_ = subBuilder.buildPartial();
             }
-          case 32:
-            {
-              int rawValue = input.readEnum();
 
-              speechEventType_ = rawValue;
-              break;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
+
+            speechEventType_ = rawValue;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -171,7 +145,8 @@ private StreamingRecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -180,35 +155,29 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto
-        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
-            com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No speech event specified.
      * 
@@ -217,8 +186,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { */ SPEECH_EVENT_UNSPECIFIED(0), /** - * - * *
      * This event indicates that the server has detected the end of the user's
      * speech utterance and expects no additional speech. Therefore, the server
@@ -236,8 +203,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -246,8 +211,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPEECH_EVENT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * This event indicates that the server has detected the end of the user's
      * speech utterance and expects no additional speech. Therefore, the server
@@ -262,6 +225,7 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int END_OF_SINGLE_UTTERANCE_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -286,43 +250,39 @@ public static SpeechEventType valueOf(int value) {
      */
     public static SpeechEventType forNumber(int value) {
       switch (value) {
-        case 0:
-          return SPEECH_EVENT_UNSPECIFIED;
-        case 1:
-          return END_OF_SINGLE_UTTERANCE;
-        default:
-          return null;
+        case 0: return SPEECH_EVENT_UNSPECIFIED;
+        case 1: return END_OF_SINGLE_UTTERANCE;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        SpeechEventType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public SpeechEventType findValueByNumber(int number) {
+              return SpeechEventType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public SpeechEventType findValueByNumber(int number) {
-                return SpeechEventType.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.speech.v1.StreamingRecognizeResponse.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.StreamingRecognizeResponse.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final SpeechEventType[] VALUES = values();
@@ -330,7 +290,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static SpeechEventType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -350,15 +311,12 @@ private SpeechEventType(int value) {
   public static final int ERROR_FIELD_NUMBER = 1;
   private com.google.rpc.Status error_;
   /**
-   *
-   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ @java.lang.Override @@ -366,15 +324,12 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return The error. */ @java.lang.Override @@ -382,8 +337,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -399,8 +352,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -415,8 +366,6 @@ public java.util.List get
     return results_;
   }
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -427,13 +376,11 @@ public java.util.List get
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getResultsOrBuilderList() {
     return results_;
   }
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -448,8 +395,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -464,8 +409,6 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult getResults(int inde
     return results_.get(index);
   }
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -484,57 +427,39 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override - public int getSpeechEventTypeValue() { + @java.lang.Override public int getSpeechEventTypeValue() { return speechEventType_; } /** - * - * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { + @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); + return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -542,26 +467,19 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
@@ -575,7 +493,6 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -587,17 +504,15 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (error_ != null) {
       output.writeMessage(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
       output.writeMessage(2, results_.get(i));
     }
-    if (speechEventType_
-        != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType
-            .SPEECH_EVENT_UNSPECIFIED
-            .getNumber()) {
+    if (speechEventType_ != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
       output.writeEnum(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
@@ -613,19 +528,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_
-        != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType
-            .SPEECH_EVENT_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
+    if (speechEventType_ != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -635,23 +551,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.StreamingRecognizeResponse other =
-        (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
-    if (!getResultsList().equals(other.getResultsList())) return false;
+    if (!getResultsList()
+        .equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime()
+          .equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -684,104 +602,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -823,23 +733,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
-              com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeResponse.newBuilder()
@@ -847,17 +755,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -885,9 +793,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto
-          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -906,8 +814,7 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeResponse result =
-          new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -937,39 +844,38 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -977,8 +883,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognizeResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognizeResponse.getDefaultInstance()) return this;
       if (other.hasError()) {
         mergeError(other.getError());
       }
@@ -1000,10 +905,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse o
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -1034,8 +938,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1044,38 +947,30 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-        errorBuilder_;
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -1086,8 +981,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1109,8 +1002,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1118,7 +1009,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1129,8 +1021,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1141,7 +1031,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1153,8 +1044,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1174,8 +1063,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1184,13 +1071,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1202,12 +1087,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1216,40 +1100,32 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionResult,
-            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1267,8 +1143,6 @@ public java.util.List get
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1286,8 +1160,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1305,8 +1177,6 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult getResults(int inde
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1331,8 +1201,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1354,8 +1222,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1379,8 +1245,6 @@ public Builder addResults(com.google.cloud.speech.v1.StreamingRecognitionResult
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1405,8 +1269,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1428,8 +1290,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1451,8 +1311,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1463,11 +1321,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
     public Builder addAllResults(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -1475,8 +1333,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1497,8 +1353,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1519,8 +1373,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1535,8 +1387,6 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder getResultsB
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1549,14 +1399,11 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder getResultsB
     public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);
-      } else {
+        return results_.get(index);  } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1566,8 +1413,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
      *
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1575,8 +1422,6 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1587,12 +1432,10 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1604,13 +1447,10 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
      */
     public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1620,23 +1460,20 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
      *
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionResult,
-            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
+        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1.StreamingRecognitionResult,
-                com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
-                com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1644,105 +1481,73 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
 
     private int speechEventType_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override - public int getSpeechEventTypeValue() { + @java.lang.Override public int getSpeechEventTypeValue() { return speechEventType_; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); + return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType( - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType(com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1750,49 +1555,36 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - totalBilledTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1814,8 +1606,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1823,7 +1613,8 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1834,8 +1625,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1847,9 +1636,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1861,8 +1648,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1882,8 +1667,6 @@ public Builder clearTotalBilledTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1892,13 +1675,11 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-
+      
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1910,14 +1691,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
       if (totalBilledTimeBuilder_ != null) {
         return totalBilledTimeBuilder_.getMessageOrBuilder();
       } else {
-        return totalBilledTime_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : totalBilledTime_;
+        return totalBilledTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
       }
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1926,24 +1704,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(), getParentForChildren(), isClean());
+        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(),
+                getParentForChildren(),
+                isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1953,12 +1728,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.StreamingRecognizeResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognizeResponse)
   private static final com.google.cloud.speech.v1.StreamingRecognizeResponse DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1.StreamingRecognizeResponse();
   }
@@ -1967,16 +1742,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public StreamingRecognizeResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new StreamingRecognizeResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public StreamingRecognizeResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new StreamingRecognizeResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1991,4 +1766,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
similarity index 83%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
index 2c285ed9f..1a3c3b062 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
-public interface StreamingRecognizeResponseOrBuilder
-    extends
+public interface StreamingRecognizeResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -62,8 +38,6 @@ public interface StreamingRecognizeResponseOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -73,10 +47,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -88,8 +61,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1.StreamingRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -101,8 +72,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -112,11 +81,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -126,64 +93,49 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** - * - * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
similarity index 70%
rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
index 45c5f040a..aa9696e23 100644
--- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
+++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
- *
- *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranscriptOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TranscriptOutputConfig() {} + private TranscriptOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,20 +52,19 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,39 +72,34 @@ private TranscriptOutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public enum OutputTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; - private OutputTypeCase(int value) { this.value = value; } @@ -137,28 +115,24 @@ public static OutputTypeCase valueOf(int value) { public static OutputTypeCase forNumber(int value) { switch (value) { - case 1: - return GCS_URI; - case 0: - return OUTPUTTYPE_NOT_SET; - default: - return null; + case 1: return GCS_URI; + case 0: return OUTPUTTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public OutputTypeCase getOutputTypeCase() { - return OutputTypeCase.forNumber(outputTypeCase_); + public OutputTypeCase + getOutputTypeCase() { + return OutputTypeCase.forNumber( + outputTypeCase_); } public static final int GCS_URI_FIELD_NUMBER = 1; /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -166,15 +140,12 @@ public OutputTypeCase getOutputTypeCase() {
    * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ public boolean hasGcsUri() { return outputTypeCase_ == 1; } /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -182,7 +153,6 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -193,7 +163,8 @@ public java.lang.String getGcsUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputTypeCase_ == 1) { outputType_ = s; @@ -202,8 +173,6 @@ public java.lang.String getGcsUri() { } } /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -211,17 +180,18 @@ public java.lang.String getGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The bytes for gcsUri. */ - public com.google.protobuf.ByteString getGcsUriBytes() { + public com.google.protobuf.ByteString + getGcsUriBytes() { java.lang.Object ref = ""; if (outputTypeCase_ == 1) { ref = outputType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputTypeCase_ == 1) { outputType_ = b; } @@ -232,7 +202,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +213,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputTypeCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputType_); } @@ -268,18 +238,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.TranscriptOutputConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.TranscriptOutputConfig other = - (com.google.cloud.speech.v1.TranscriptOutputConfig) obj; + com.google.cloud.speech.v1.TranscriptOutputConfig other = (com.google.cloud.speech.v1.TranscriptOutputConfig) obj; if (!getOutputTypeCase().equals(other.getOutputTypeCase())) return false; switch (outputTypeCase_) { case 1: - if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getGcsUri() + .equals(other.getGcsUri())) return false; break; case 0: default: @@ -309,126 +279,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.TranscriptOutputConfig) com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, - com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder() @@ -436,15 +397,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -454,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override @@ -475,8 +437,7 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1.TranscriptOutputConfig result = - new com.google.cloud.speech.v1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1.TranscriptOutputConfig result = new com.google.cloud.speech.v1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -489,39 +450,38 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig) other); + return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -529,20 +489,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) return this; switch (other.getOutputTypeCase()) { - case GCS_URI: - { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: - { - break; - } + case GCS_URI: { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -563,8 +520,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -573,12 +529,12 @@ public Builder mergeFrom( } return this; } - private int outputTypeCase_ = 0; private java.lang.Object outputType_; - - public OutputTypeCase getOutputTypeCase() { - return OutputTypeCase.forNumber(outputTypeCase_); + public OutputTypeCase + getOutputTypeCase() { + return OutputTypeCase.forNumber( + outputTypeCase_); } public Builder clearOutputType() { @@ -588,9 +544,8 @@ public Builder clearOutputType() { return this; } + /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -598,7 +553,6 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -606,8 +560,6 @@ public boolean hasGcsUri() { return outputTypeCase_ == 1; } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -615,7 +567,6 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ @java.lang.Override @@ -625,7 +576,8 @@ public java.lang.String getGcsUri() { ref = outputType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputTypeCase_ == 1) { outputType_ = s; @@ -636,8 +588,6 @@ public java.lang.String getGcsUri() { } } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -645,18 +595,19 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The bytes for gcsUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsUriBytes() { + public com.google.protobuf.ByteString + getGcsUriBytes() { java.lang.Object ref = ""; if (outputTypeCase_ == 1) { ref = outputType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputTypeCase_ == 1) { outputType_ = b; } @@ -666,8 +617,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -675,22 +624,20 @@ public com.google.protobuf.ByteString getGcsUriBytes() {
      * 
* * string gcs_uri = 1; - * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri(java.lang.String value) { + public Builder setGcsUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -698,7 +645,6 @@ public Builder setGcsUri(java.lang.String value) {
      * 
* * string gcs_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -710,8 +656,6 @@ public Builder clearGcsUri() { return this; } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -719,23 +663,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; - * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -745,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.TranscriptOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.TranscriptOutputConfig) private static final com.google.cloud.speech.v1.TranscriptOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.TranscriptOutputConfig(); } @@ -759,16 +703,16 @@ public static com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -783,4 +727,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java similarity index 63% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java index c5255ae75..5ce9fd833 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface TranscriptOutputConfigOrBuilder - extends +public interface TranscriptOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -33,13 +15,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -47,13 +26,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ java.lang.String getGcsUri(); /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -61,10 +37,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString getGcsUriBytes(); + com.google.protobuf.ByteString + getGcsUriBytes(); public com.google.cloud.speech.v1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java similarity index 70% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java index 59d7d95d0..f77de019b 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `UpdateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.UpdateCustomClassRequest} */ -public final class UpdateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.UpdateCustomClassRequest) UpdateCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCustomClassRequest.newBuilder() to construct. private UpdateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateCustomClassRequest() {} + private UpdateCustomClassRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateCustomClassRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = - input.readMessage( - com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdateCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.UpdateCustomClassRequest.class, - com.google.cloud.speech.v1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1.UpdateCustomClassRequest.Builder.class); } public static final int CUSTOM_CLASS_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.CustomClass customClass_; /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -152,10 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ @java.lang.Override @@ -163,8 +135,6 @@ public boolean hasCustomClass() { return customClass_ != null; } /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -177,21 +147,14 @@ public boolean hasCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1.CustomClass getCustomClass() { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -204,9 +167,7 @@ public com.google.cloud.speech.v1.CustomClass getCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -216,14 +177,11 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -231,14 +189,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -246,8 +201,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -260,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (customClass_ != null) { output.writeMessage(1, getCustomClass()); } @@ -289,10 +242,12 @@ public int getSerializedSize() { size = 0; if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomClass()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCustomClass()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,21 +257,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.UpdateCustomClassRequest other = - (com.google.cloud.speech.v1.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v1.UpdateCustomClassRequest other = (com.google.cloud.speech.v1.UpdateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass().equals(other.getCustomClass())) return false; + if (!getCustomClass() + .equals(other.getCustomClass())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,126 +299,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.UpdateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `UpdateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.UpdateCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.UpdateCustomClassRequest) com.google.cloud.speech.v1.UpdateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.UpdateCustomClassRequest.class, - com.google.cloud.speech.v1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1.UpdateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.UpdateCustomClassRequest.newBuilder() @@ -470,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; } @java.lang.Override @@ -519,8 +467,7 @@ public com.google.cloud.speech.v1.UpdateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1.UpdateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1.UpdateCustomClassRequest result = - new com.google.cloud.speech.v1.UpdateCustomClassRequest(this); + com.google.cloud.speech.v1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1.UpdateCustomClassRequest(this); if (customClassBuilder_ == null) { result.customClass_ = customClass_; } else { @@ -539,39 +486,38 @@ public com.google.cloud.speech.v1.UpdateCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.UpdateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1.UpdateCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1.UpdateCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -579,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.UpdateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1.UpdateCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.UpdateCustomClassRequest.getDefaultInstance()) return this; if (other.hasCustomClass()) { mergeCustomClass(other.getCustomClass()); } @@ -606,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.UpdateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.UpdateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -619,13 +563,8 @@ public Builder mergeFrom( private com.google.cloud.speech.v1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder> - customClassBuilder_; + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> customClassBuilder_; /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -638,18 +577,13 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -662,24 +596,17 @@ public boolean hasCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ public com.google.cloud.speech.v1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } else { return customClassBuilder_.getMessage(); } } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -692,9 +619,7 @@ public com.google.cloud.speech.v1.CustomClass getCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) { if (customClassBuilder_ == null) { @@ -710,8 +635,6 @@ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) { return this; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -724,11 +647,10 @@ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass.Builder builderForValue) { + public Builder setCustomClass( + com.google.cloud.speech.v1.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); onChanged(); @@ -739,8 +661,6 @@ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass.Builder bui return this; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -753,17 +673,13 @@ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass.Builder bui
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1.CustomClass.newBuilder(customClass_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); } else { customClass_ = value; } @@ -775,8 +691,6 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) { return this; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -789,9 +703,7 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -805,8 +717,6 @@ public Builder clearCustomClass() { return this; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -819,18 +729,14 @@ public Builder clearCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -843,22 +749,17 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null - ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? + com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; } } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -871,22 +772,17 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder()
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder> + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, - com.google.cloud.speech.v1.CustomClass.Builder, - com.google.cloud.speech.v1.CustomClassOrBuilder>( - getCustomClass(), getParentForChildren(), isClean()); + customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder>( + getCustomClass(), + getParentForChildren(), + isClean()); customClass_ = null; } return customClassBuilder_; @@ -894,47 +790,34 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -955,15 +838,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -974,8 +856,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -986,7 +866,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -998,8 +878,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1018,8 +896,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1027,13 +903,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1044,14 +918,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1059,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1086,12 +954,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.UpdateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.UpdateCustomClassRequest) private static final com.google.cloud.speech.v1.UpdateCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.UpdateCustomClassRequest(); } @@ -1100,16 +968,16 @@ public static com.google.cloud.speech.v1.UpdateCustomClassRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java index 884d296e1..502a36d40 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface UpdateCustomClassRequestOrBuilder - extends +public interface UpdateCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -38,16 +20,11 @@ public interface UpdateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -60,16 +37,11 @@ public interface UpdateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ com.google.cloud.speech.v1.CustomClass getCustomClass(); /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -82,39 +54,29 @@ public interface UpdateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java similarity index 70% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java index bdd332557..b0510d68c 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** - * - * *
  * Message sent by the client for the `UpdatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.UpdatePhraseSetRequest} */ -public final class UpdatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdatePhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.UpdatePhraseSetRequest) UpdatePhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdatePhraseSetRequest.newBuilder() to construct. private UpdatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdatePhraseSetRequest() {} + private UpdatePhraseSetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdatePhraseSetRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = - input.readMessage( - com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdatePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, - com.google.cloud.speech.v1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1.UpdatePhraseSetRequest.Builder.class); } public static final int PHRASE_SET_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.PhraseSet phraseSet_; /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -152,10 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -163,8 +135,6 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -177,21 +147,14 @@ public boolean hasPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1.PhraseSet getPhraseSet() { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -204,9 +167,7 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -216,14 +177,11 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -231,14 +189,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -246,8 +201,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -260,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (phraseSet_ != null) { output.writeMessage(1, getPhraseSet()); } @@ -289,10 +242,12 @@ public int getSerializedSize() { size = 0; if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPhraseSet()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,21 +257,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.UpdatePhraseSetRequest other = - (com.google.cloud.speech.v1.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v1.UpdatePhraseSetRequest other = (com.google.cloud.speech.v1.UpdatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,126 +299,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.UpdatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `UpdatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.UpdatePhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.UpdatePhraseSetRequest) com.google.cloud.speech.v1.UpdatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, - com.google.cloud.speech.v1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1.UpdatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.UpdatePhraseSetRequest.newBuilder() @@ -470,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -498,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override @@ -519,8 +467,7 @@ public com.google.cloud.speech.v1.UpdatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.UpdatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.UpdatePhraseSetRequest result = - new com.google.cloud.speech.v1.UpdatePhraseSetRequest(this); + com.google.cloud.speech.v1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1.UpdatePhraseSetRequest(this); if (phraseSetBuilder_ == null) { result.phraseSet_ = phraseSet_; } else { @@ -539,39 +486,38 @@ public com.google.cloud.speech.v1.UpdatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.UpdatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.UpdatePhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1.UpdatePhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -579,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.UpdatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1.UpdatePhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1.UpdatePhraseSetRequest.getDefaultInstance()) return this; if (other.hasPhraseSet()) { mergePhraseSet(other.getPhraseSet()); } @@ -606,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -619,13 +563,8 @@ public Builder mergeFrom( private com.google.cloud.speech.v1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder> - phraseSetBuilder_; + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetBuilder_; /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -638,18 +577,13 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -662,24 +596,17 @@ public boolean hasPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ public com.google.cloud.speech.v1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -692,9 +619,7 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -710,8 +635,6 @@ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -724,11 +647,10 @@ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet( + com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); onChanged(); @@ -739,8 +661,6 @@ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet.Builder builder return this; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -753,17 +673,13 @@ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet.Builder builder
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1.PhraseSet.newBuilder(phraseSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); } else { phraseSet_ = value; } @@ -775,8 +691,6 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -789,9 +703,7 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -805,8 +717,6 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -819,18 +729,14 @@ public Builder clearPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -843,22 +749,17 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null - ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? + com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; } } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -871,22 +772,17 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder> + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, - com.google.cloud.speech.v1.PhraseSet.Builder, - com.google.cloud.speech.v1.PhraseSetOrBuilder>( - getPhraseSet(), getParentForChildren(), isClean()); + phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder>( + getPhraseSet(), + getParentForChildren(), + isClean()); phraseSet_ = null; } return phraseSetBuilder_; @@ -894,47 +790,34 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -955,15 +838,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -974,8 +856,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -986,7 +866,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -998,8 +878,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1018,8 +896,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1027,13 +903,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1044,14 +918,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1059,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1086,12 +954,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.UpdatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.UpdatePhraseSetRequest) private static final com.google.cloud.speech.v1.UpdatePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.UpdatePhraseSetRequest(); } @@ -1100,16 +968,16 @@ public static com.google.cloud.speech.v1.UpdatePhraseSetRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1124,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java index f4b31a356..1c70780af 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface UpdatePhraseSetRequestOrBuilder - extends +public interface UpdatePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -38,16 +20,11 @@ public interface UpdatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -60,16 +37,11 @@ public interface UpdatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ com.google.cloud.speech.v1.PhraseSet getPhraseSet(); /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -82,39 +54,29 @@ public interface UpdatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java similarity index 77% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java index 5542c73f0..45597a92d 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** - * - * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ -public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WordInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.WordInfo) WordInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,55 @@ private WordInfo( case 0: done = true; break; - case 10: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - word_ = s; - break; - } - case 37: - { - confidence_ = input.readFloat(); - break; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 40: - { - speakerTag_ = input.readInt32(); - break; + endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + word_ = s; + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + case 40: { + + speakerTag_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -131,33 +109,29 @@ private WordInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, - com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -168,7 +142,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -176,8 +149,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -188,7 +159,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -196,8 +166,6 @@ public com.google.protobuf.Duration getStartTime() { return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -217,8 +185,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration endTime_;
   /**
-   *
-   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -229,7 +195,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -237,8 +202,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -249,7 +212,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -257,8 +219,6 @@ public com.google.protobuf.Duration getEndTime() { return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -278,14 +238,11 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -294,29 +251,29 @@ public java.lang.String getWord() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); word_ = s; return s; } } /** - * - * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The bytes for word. */ @java.lang.Override - public com.google.protobuf.ByteString getWordBytes() { + public com.google.protobuf.ByteString + getWordBytes() { java.lang.Object ref = word_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); word_ = b; return b; } else { @@ -327,8 +284,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -340,7 +295,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -351,8 +305,6 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** - * - * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -362,7 +314,6 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -371,7 +322,6 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,7 +333,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -409,19 +360,23 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(word_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, word_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -431,7 +386,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.WordInfo)) { return super.equals(obj); @@ -440,16 +395,21 @@ public boolean equals(final java.lang.Object obj) { if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getWord().equals(other.getWord())) return false; + if (!getWord() + .equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; - if (getSpeakerTag() != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; + if (getSpeakerTag() + != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,7 +432,8 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -480,126 +441,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.WordInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.WordInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1.WordInfo parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.speech.v1.WordInfo parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.WordInfo) com.google.cloud.speech.v1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, - com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1.WordInfo.newBuilder() @@ -607,15 +560,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -641,9 +595,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto - .internal_static_google_cloud_speech_v1_WordInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override @@ -684,39 +638,38 @@ public com.google.cloud.speech.v1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1.WordInfo) other); + return mergeFrom((com.google.cloud.speech.v1.WordInfo)other); } else { super.mergeFrom(other); return this; @@ -772,13 +725,8 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - startTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -789,15 +737,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -808,7 +753,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -819,8 +763,6 @@ public com.google.protobuf.Duration getStartTime() { } } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -846,8 +788,6 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -859,7 +799,8 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -870,8 +811,6 @@ public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -887,7 +826,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -899,8 +838,6 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -924,8 +861,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -938,13 +873,11 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-
+      
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -960,12 +893,11 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_;
+        return startTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : startTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -978,17 +910,14 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Duration start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getStartTime(), getParentForChildren(), isClean());
+        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getStartTime(),
+                getParentForChildren(),
+                isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -996,13 +925,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Duration endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        endTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> endTimeBuilder_;
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1013,15 +937,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1032,7 +953,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -1043,8 +963,6 @@ public com.google.protobuf.Duration getEndTime() { } } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1070,8 +988,6 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1083,7 +999,8 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1094,8 +1011,6 @@ public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1111,7 +1026,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1123,8 +1038,6 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1148,8 +1061,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1162,13 +1073,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1184,12 +1093,11 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1202,17 +1110,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Duration end_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1220,20 +1125,18 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object word_ = "";
     /**
-     *
-     *
      * 
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); word_ = s; return s; @@ -1242,21 +1145,20 @@ public java.lang.String getWord() { } } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return The bytes for word. */ - public com.google.protobuf.ByteString getWordBytes() { + public com.google.protobuf.ByteString + getWordBytes() { java.lang.Object ref = word_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); word_ = b; return b; } else { @@ -1264,70 +1166,61 @@ public com.google.protobuf.ByteString getWordBytes() { } } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord(java.lang.String value) { + public Builder setWord( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes(com.google.protobuf.ByteString value) { + public Builder setWordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1339,7 +1232,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1347,8 +1239,6 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1360,19 +1250,16 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1384,20 +1271,17 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_; + private int speakerTag_ ; /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1407,7 +1291,6 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -1415,8 +1298,6 @@ public int getSpeakerTag() { return speakerTag_; } /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1426,19 +1307,16 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1448,18 +1326,17 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1469,12 +1346,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.WordInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.WordInfo) private static final com.google.cloud.speech.v1.WordInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.WordInfo(); } @@ -1483,16 +1360,16 @@ public static com.google.cloud.speech.v1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1507,4 +1384,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java similarity index 84% rename from proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java index 45ed38fc6..f8e889216 100644 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface WordInfoOrBuilder - extends +public interface WordInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.WordInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -36,13 +18,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -53,13 +32,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -74,8 +50,6 @@ public interface WordInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -86,13 +60,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -103,13 +74,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -124,33 +92,26 @@ public interface WordInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ java.lang.String getWord(); /** - * - * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The bytes for word. */ - com.google.protobuf.ByteString getWordBytes(); + com.google.protobuf.ByteString + getWordBytes(); /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -162,14 +123,11 @@ public interface WordInfoOrBuilder
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -179,7 +137,6 @@ public interface WordInfoOrBuilder
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto similarity index 100% rename from proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto diff --git a/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto similarity index 100% rename from proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto diff --git a/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto similarity index 100% rename from proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto rename to owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000..18da537a9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.AdaptationSettings; +import com.google.cloud.speech.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationSettings adaptationSettings = + AdaptationSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); + } +} +// [END speech_v1_generated_adaptationclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000..2300cfecb --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_create_setcredentialsprovider1_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.AdaptationSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationSettings adaptationSettings = + AdaptationSettings.newBuilder() + .setTransportChannelProvider( + AdaptationSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); + } +} +// [END speech_v1_generated_adaptationclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000..0f1b86915 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_create_setendpoint_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.AdaptationSettings; +import com.google.cloud.speech.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationSettings adaptationSettings = + AdaptationSettings.newBuilder().setEndpoint(myEndpoint).build(); + AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); + } +} +// [END speech_v1_generated_adaptationclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java new file mode 100644 index 000000000..30822996f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_createcustomclass_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CreateCustomClassRequest; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.LocationName; + +public class AsyncCreateCustomClass { + + public static void main(String[] args) throws Exception { + asyncCreateCustomClass(); + } + + public static void asyncCreateCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CreateCustomClassRequest request = + CreateCustomClassRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCustomClassId("customClassId1871032322") + .setCustomClass(CustomClass.newBuilder().build()) + .build(); + ApiFuture future = + adaptationClient.createCustomClassCallable().futureCall(request); + // Do something. + CustomClass response = future.get(); + } + } +} +// [END speech_v1_generated_adaptationclient_createcustomclass_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java new file mode 100644 index 000000000..f9d090cbe --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_createcustomclass_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CreateCustomClassRequest; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.LocationName; + +public class SyncCreateCustomClass { + + public static void main(String[] args) throws Exception { + syncCreateCustomClass(); + } + + public static void syncCreateCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CreateCustomClassRequest request = + CreateCustomClassRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCustomClassId("customClassId1871032322") + .setCustomClass(CustomClass.newBuilder().build()) + .build(); + CustomClass response = adaptationClient.createCustomClass(request); + } + } +} +// [END speech_v1_generated_adaptationclient_createcustomclass_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java new file mode 100644 index 000000000..c7bd66d09 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_createcustomclass_locationnamecustomclassstring_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.LocationName; + +public class SyncCreateCustomClassLocationnameCustomclassString { + + public static void main(String[] args) throws Exception { + syncCreateCustomClassLocationnameCustomclassString(); + } + + public static void syncCreateCustomClassLocationnameCustomclassString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + CustomClass response = adaptationClient.createCustomClass(parent, customClass, customClassId); + } + } +} +// [END speech_v1_generated_adaptationclient_createcustomclass_locationnamecustomclassstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java new file mode 100644 index 000000000..c60dc243a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_createcustomclass_stringcustomclassstring_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.LocationName; + +public class SyncCreateCustomClassStringCustomclassString { + + public static void main(String[] args) throws Exception { + syncCreateCustomClassStringCustomclassString(); + } + + public static void syncCreateCustomClassStringCustomclassString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + CustomClass response = adaptationClient.createCustomClass(parent, customClass, customClassId); + } + } +} +// [END speech_v1_generated_adaptationclient_createcustomclass_stringcustomclassstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java new file mode 100644 index 000000000..3478c5b41 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_createphraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CreatePhraseSetRequest; +import com.google.cloud.speech.v1.LocationName; +import com.google.cloud.speech.v1.PhraseSet; + +public class AsyncCreatePhraseSet { + + public static void main(String[] args) throws Exception { + asyncCreatePhraseSet(); + } + + public static void asyncCreatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CreatePhraseSetRequest request = + CreatePhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPhraseSetId("phraseSetId959902180") + .setPhraseSet(PhraseSet.newBuilder().build()) + .build(); + ApiFuture future = adaptationClient.createPhraseSetCallable().futureCall(request); + // Do something. + PhraseSet response = future.get(); + } + } +} +// [END speech_v1_generated_adaptationclient_createphraseset_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java new file mode 100644 index 000000000..3409c0f37 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_createphraseset_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CreatePhraseSetRequest; +import com.google.cloud.speech.v1.LocationName; +import com.google.cloud.speech.v1.PhraseSet; + +public class SyncCreatePhraseSet { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSet(); + } + + public static void syncCreatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CreatePhraseSetRequest request = + CreatePhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPhraseSetId("phraseSetId959902180") + .setPhraseSet(PhraseSet.newBuilder().build()) + .build(); + PhraseSet response = adaptationClient.createPhraseSet(request); + } + } +} +// [END speech_v1_generated_adaptationclient_createphraseset_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java new file mode 100644 index 000000000..77c352b8f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_createphraseset_locationnamephrasesetstring_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.LocationName; +import com.google.cloud.speech.v1.PhraseSet; + +public class SyncCreatePhraseSetLocationnamePhrasesetString { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSetLocationnamePhrasesetString(); + } + + public static void syncCreatePhraseSetLocationnamePhrasesetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + PhraseSet response = adaptationClient.createPhraseSet(parent, phraseSet, phraseSetId); + } + } +} +// [END speech_v1_generated_adaptationclient_createphraseset_locationnamephrasesetstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java new file mode 100644 index 000000000..25ae14bbe --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_createphraseset_stringphrasesetstring_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.LocationName; +import com.google.cloud.speech.v1.PhraseSet; + +public class SyncCreatePhraseSetStringPhrasesetString { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSetStringPhrasesetString(); + } + + public static void syncCreatePhraseSetStringPhrasesetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + PhraseSet response = adaptationClient.createPhraseSet(parent, phraseSet, phraseSetId); + } + } +} +// [END speech_v1_generated_adaptationclient_createphraseset_stringphrasesetstring_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java new file mode 100644 index 000000000..dd2e0969b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_deletecustomclass_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClassName; +import com.google.cloud.speech.v1.DeleteCustomClassRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteCustomClass { + + public static void main(String[] args) throws Exception { + asyncDeleteCustomClass(); + } + + public static void asyncDeleteCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + DeleteCustomClassRequest request = + DeleteCustomClassRequest.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .build(); + ApiFuture future = adaptationClient.deleteCustomClassCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END speech_v1_generated_adaptationclient_deletecustomclass_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java new file mode 100644 index 000000000..c98d9b047 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_deletecustomclass_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClassName; +import com.google.cloud.speech.v1.DeleteCustomClassRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomClass { + + public static void main(String[] args) throws Exception { + syncDeleteCustomClass(); + } + + public static void syncDeleteCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + DeleteCustomClassRequest request = + DeleteCustomClassRequest.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .build(); + adaptationClient.deleteCustomClass(request); + } + } +} +// [END speech_v1_generated_adaptationclient_deletecustomclass_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java new file mode 100644 index 000000000..09e3de09a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_deletecustomclass_customclassname_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClassName; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomClassCustomclassname { + + public static void main(String[] args) throws Exception { + syncDeleteCustomClassCustomclassname(); + } + + public static void syncDeleteCustomClassCustomclassname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + adaptationClient.deleteCustomClass(name); + } + } +} +// [END speech_v1_generated_adaptationclient_deletecustomclass_customclassname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java new file mode 100644 index 000000000..3642c68fc --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_deletecustomclass_string_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClassName; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomClassString { + + public static void main(String[] args) throws Exception { + syncDeleteCustomClassString(); + } + + public static void syncDeleteCustomClassString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString(); + adaptationClient.deleteCustomClass(name); + } + } +} +// [END speech_v1_generated_adaptationclient_deletecustomclass_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java new file mode 100644 index 000000000..f9ef90b6a --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_deletephraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.DeletePhraseSetRequest; +import com.google.cloud.speech.v1.PhraseSetName; +import com.google.protobuf.Empty; + +public class AsyncDeletePhraseSet { + + public static void main(String[] args) throws Exception { + asyncDeletePhraseSet(); + } + + public static void asyncDeletePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + DeletePhraseSetRequest request = + DeletePhraseSetRequest.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .build(); + ApiFuture future = adaptationClient.deletePhraseSetCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END speech_v1_generated_adaptationclient_deletephraseset_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java new file mode 100644 index 000000000..9f56b1835 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_deletephraseset_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.DeletePhraseSetRequest; +import com.google.cloud.speech.v1.PhraseSetName; +import com.google.protobuf.Empty; + +public class SyncDeletePhraseSet { + + public static void main(String[] args) throws Exception { + syncDeletePhraseSet(); + } + + public static void syncDeletePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + DeletePhraseSetRequest request = + DeletePhraseSetRequest.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .build(); + adaptationClient.deletePhraseSet(request); + } + } +} +// [END speech_v1_generated_adaptationclient_deletephraseset_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java new file mode 100644 index 000000000..9675f36ac --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_deletephraseset_phrasesetname_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.PhraseSetName; +import com.google.protobuf.Empty; + +public class SyncDeletePhraseSetPhrasesetname { + + public static void main(String[] args) throws Exception { + syncDeletePhraseSetPhrasesetname(); + } + + public static void syncDeletePhraseSetPhrasesetname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + adaptationClient.deletePhraseSet(name); + } + } +} +// [END speech_v1_generated_adaptationclient_deletephraseset_phrasesetname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java new file mode 100644 index 000000000..75d4255a7 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_deletephraseset_string_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.PhraseSetName; +import com.google.protobuf.Empty; + +public class SyncDeletePhraseSetString { + + public static void main(String[] args) throws Exception { + syncDeletePhraseSetString(); + } + + public static void syncDeletePhraseSetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString(); + adaptationClient.deletePhraseSet(name); + } + } +} +// [END speech_v1_generated_adaptationclient_deletephraseset_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java new file mode 100644 index 000000000..bcaf36835 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_getcustomclass_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.CustomClassName; +import com.google.cloud.speech.v1.GetCustomClassRequest; + +public class AsyncGetCustomClass { + + public static void main(String[] args) throws Exception { + asyncGetCustomClass(); + } + + public static void asyncGetCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + GetCustomClassRequest request = + GetCustomClassRequest.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .build(); + ApiFuture future = adaptationClient.getCustomClassCallable().futureCall(request); + // Do something. + CustomClass response = future.get(); + } + } +} +// [END speech_v1_generated_adaptationclient_getcustomclass_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java new file mode 100644 index 000000000..94460f74e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_getcustomclass_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.CustomClassName; +import com.google.cloud.speech.v1.GetCustomClassRequest; + +public class SyncGetCustomClass { + + public static void main(String[] args) throws Exception { + syncGetCustomClass(); + } + + public static void syncGetCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + GetCustomClassRequest request = + GetCustomClassRequest.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .build(); + CustomClass response = adaptationClient.getCustomClass(request); + } + } +} +// [END speech_v1_generated_adaptationclient_getcustomclass_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java new file mode 100644 index 000000000..5b543ef03 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_getcustomclass_customclassname_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.CustomClassName; + +public class SyncGetCustomClassCustomclassname { + + public static void main(String[] args) throws Exception { + syncGetCustomClassCustomclassname(); + } + + public static void syncGetCustomClassCustomclassname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + CustomClass response = adaptationClient.getCustomClass(name); + } + } +} +// [END speech_v1_generated_adaptationclient_getcustomclass_customclassname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java new file mode 100644 index 000000000..2bc7ede85 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_getcustomclass_string_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.CustomClassName; + +public class SyncGetCustomClassString { + + public static void main(String[] args) throws Exception { + syncGetCustomClassString(); + } + + public static void syncGetCustomClassString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString(); + CustomClass response = adaptationClient.getCustomClass(name); + } + } +} +// [END speech_v1_generated_adaptationclient_getcustomclass_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java new file mode 100644 index 000000000..e97863c3e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_getphraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.GetPhraseSetRequest; +import com.google.cloud.speech.v1.PhraseSet; +import com.google.cloud.speech.v1.PhraseSetName; + +public class AsyncGetPhraseSet { + + public static void main(String[] args) throws Exception { + asyncGetPhraseSet(); + } + + public static void asyncGetPhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + GetPhraseSetRequest request = + GetPhraseSetRequest.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .build(); + ApiFuture future = adaptationClient.getPhraseSetCallable().futureCall(request); + // Do something. + PhraseSet response = future.get(); + } + } +} +// [END speech_v1_generated_adaptationclient_getphraseset_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java new file mode 100644 index 000000000..0e64d7c69 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_getphraseset_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.GetPhraseSetRequest; +import com.google.cloud.speech.v1.PhraseSet; +import com.google.cloud.speech.v1.PhraseSetName; + +public class SyncGetPhraseSet { + + public static void main(String[] args) throws Exception { + syncGetPhraseSet(); + } + + public static void syncGetPhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + GetPhraseSetRequest request = + GetPhraseSetRequest.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .build(); + PhraseSet response = adaptationClient.getPhraseSet(request); + } + } +} +// [END speech_v1_generated_adaptationclient_getphraseset_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java new file mode 100644 index 000000000..d47d57012 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_getphraseset_phrasesetname_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.PhraseSet; +import com.google.cloud.speech.v1.PhraseSetName; + +public class SyncGetPhraseSetPhrasesetname { + + public static void main(String[] args) throws Exception { + syncGetPhraseSetPhrasesetname(); + } + + public static void syncGetPhraseSetPhrasesetname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + PhraseSet response = adaptationClient.getPhraseSet(name); + } + } +} +// [END speech_v1_generated_adaptationclient_getphraseset_phrasesetname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java new file mode 100644 index 000000000..ac4a08cc2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_getphraseset_string_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.PhraseSet; +import com.google.cloud.speech.v1.PhraseSetName; + +public class SyncGetPhraseSetString { + + public static void main(String[] args) throws Exception { + syncGetPhraseSetString(); + } + + public static void syncGetPhraseSetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString(); + PhraseSet response = adaptationClient.getPhraseSet(name); + } + } +} +// [END speech_v1_generated_adaptationclient_getphraseset_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java new file mode 100644 index 000000000..3c694cce6 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listcustomclasses_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.ListCustomClassesRequest; +import com.google.cloud.speech.v1.LocationName; + +public class AsyncListCustomClasses { + + public static void main(String[] args) throws Exception { + asyncListCustomClasses(); + } + + public static void asyncListCustomClasses() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListCustomClassesRequest request = + ListCustomClassesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + adaptationClient.listCustomClassesPagedCallable().futureCall(request); + // Do something. + for (CustomClass element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1_generated_adaptationclient_listcustomclasses_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java new file mode 100644 index 000000000..fd2e3c850 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listcustomclasses_paged_async] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.ListCustomClassesRequest; +import com.google.cloud.speech.v1.ListCustomClassesResponse; +import com.google.cloud.speech.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListCustomClassesPaged { + + public static void main(String[] args) throws Exception { + asyncListCustomClassesPaged(); + } + + public static void asyncListCustomClassesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListCustomClassesRequest request = + ListCustomClassesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListCustomClassesResponse response = + adaptationClient.listCustomClassesCallable().call(request); + for (CustomClass element : response.getCustomClassesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END speech_v1_generated_adaptationclient_listcustomclasses_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java new file mode 100644 index 000000000..3c4d12892 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listcustomclasses_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.ListCustomClassesRequest; +import com.google.cloud.speech.v1.LocationName; + +public class SyncListCustomClasses { + + public static void main(String[] args) throws Exception { + syncListCustomClasses(); + } + + public static void syncListCustomClasses() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListCustomClassesRequest request = + ListCustomClassesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (CustomClass element : adaptationClient.listCustomClasses(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1_generated_adaptationclient_listcustomclasses_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java new file mode 100644 index 000000000..d17876bf6 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listcustomclasses_locationname_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.LocationName; + +public class SyncListCustomClassesLocationname { + + public static void main(String[] args) throws Exception { + syncListCustomClassesLocationname(); + } + + public static void syncListCustomClassesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1_generated_adaptationclient_listcustomclasses_locationname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java new file mode 100644 index 000000000..786bf34d6 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listcustomclasses_string_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.LocationName; + +public class SyncListCustomClassesString { + + public static void main(String[] args) throws Exception { + syncListCustomClassesString(); + } + + public static void syncListCustomClassesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1_generated_adaptationclient_listcustomclasses_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java new file mode 100644 index 000000000..f9d8d48a2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listphraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.ListPhraseSetRequest; +import com.google.cloud.speech.v1.LocationName; +import com.google.cloud.speech.v1.PhraseSet; + +public class AsyncListPhraseSet { + + public static void main(String[] args) throws Exception { + asyncListPhraseSet(); + } + + public static void asyncListPhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListPhraseSetRequest request = + ListPhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + adaptationClient.listPhraseSetPagedCallable().futureCall(request); + // Do something. + for (PhraseSet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1_generated_adaptationclient_listphraseset_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java new file mode 100644 index 000000000..1aa353fdf --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listphraseset_paged_async] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.ListPhraseSetRequest; +import com.google.cloud.speech.v1.ListPhraseSetResponse; +import com.google.cloud.speech.v1.LocationName; +import com.google.cloud.speech.v1.PhraseSet; +import com.google.common.base.Strings; + +public class AsyncListPhraseSetPaged { + + public static void main(String[] args) throws Exception { + asyncListPhraseSetPaged(); + } + + public static void asyncListPhraseSetPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListPhraseSetRequest request = + ListPhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListPhraseSetResponse response = adaptationClient.listPhraseSetCallable().call(request); + for (PhraseSet element : response.getPhraseSetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END speech_v1_generated_adaptationclient_listphraseset_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java new file mode 100644 index 000000000..ad30818cb --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listphraseset_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.ListPhraseSetRequest; +import com.google.cloud.speech.v1.LocationName; +import com.google.cloud.speech.v1.PhraseSet; + +public class SyncListPhraseSet { + + public static void main(String[] args) throws Exception { + syncListPhraseSet(); + } + + public static void syncListPhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListPhraseSetRequest request = + ListPhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (PhraseSet element : adaptationClient.listPhraseSet(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1_generated_adaptationclient_listphraseset_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java new file mode 100644 index 000000000..8ebced751 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listphraseset_locationname_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.LocationName; +import com.google.cloud.speech.v1.PhraseSet; + +public class SyncListPhraseSetLocationname { + + public static void main(String[] args) throws Exception { + syncListPhraseSetLocationname(); + } + + public static void syncListPhraseSetLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1_generated_adaptationclient_listphraseset_locationname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java new file mode 100644 index 000000000..0a6757793 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_listphraseset_string_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.LocationName; +import com.google.cloud.speech.v1.PhraseSet; + +public class SyncListPhraseSetString { + + public static void main(String[] args) throws Exception { + syncListPhraseSetString(); + } + + public static void syncListPhraseSetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1_generated_adaptationclient_listphraseset_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java new file mode 100644 index 000000000..b758b5ff1 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_updatecustomclass_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.UpdateCustomClassRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCustomClass { + + public static void main(String[] args) throws Exception { + asyncUpdateCustomClass(); + } + + public static void asyncUpdateCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + UpdateCustomClassRequest request = + UpdateCustomClassRequest.newBuilder() + .setCustomClass(CustomClass.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + adaptationClient.updateCustomClassCallable().futureCall(request); + // Do something. + CustomClass response = future.get(); + } + } +} +// [END speech_v1_generated_adaptationclient_updatecustomclass_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java new file mode 100644 index 000000000..dfb766bd2 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_updatecustomclass_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.cloud.speech.v1.UpdateCustomClassRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomClass { + + public static void main(String[] args) throws Exception { + syncUpdateCustomClass(); + } + + public static void syncUpdateCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + UpdateCustomClassRequest request = + UpdateCustomClassRequest.newBuilder() + .setCustomClass(CustomClass.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CustomClass response = adaptationClient.updateCustomClass(request); + } + } +} +// [END speech_v1_generated_adaptationclient_updatecustomclass_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java new file mode 100644 index 000000000..b60d79d41 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_updatecustomclass_customclassfieldmask_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.CustomClass; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomClassCustomclassFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCustomClassCustomclassFieldmask(); + } + + public static void syncUpdateCustomClassCustomclassFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CustomClass customClass = CustomClass.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CustomClass response = adaptationClient.updateCustomClass(customClass, updateMask); + } + } +} +// [END speech_v1_generated_adaptationclient_updatecustomclass_customclassfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java new file mode 100644 index 000000000..d1bcf662f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_updatephraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.PhraseSet; +import com.google.cloud.speech.v1.UpdatePhraseSetRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePhraseSet { + + public static void main(String[] args) throws Exception { + asyncUpdatePhraseSet(); + } + + public static void asyncUpdatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + UpdatePhraseSetRequest request = + UpdatePhraseSetRequest.newBuilder() + .setPhraseSet(PhraseSet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = adaptationClient.updatePhraseSetCallable().futureCall(request); + // Do something. + PhraseSet response = future.get(); + } + } +} +// [END speech_v1_generated_adaptationclient_updatephraseset_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java new file mode 100644 index 000000000..66e5d7ffe --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_updatephraseset_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.PhraseSet; +import com.google.cloud.speech.v1.UpdatePhraseSetRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePhraseSet { + + public static void main(String[] args) throws Exception { + syncUpdatePhraseSet(); + } + + public static void syncUpdatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + UpdatePhraseSetRequest request = + UpdatePhraseSetRequest.newBuilder() + .setPhraseSet(PhraseSet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + PhraseSet response = adaptationClient.updatePhraseSet(request); + } + } +} +// [END speech_v1_generated_adaptationclient_updatephraseset_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java new file mode 100644 index 000000000..f15db63de --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationclient_updatephraseset_phrasesetfieldmask_sync] +import com.google.cloud.speech.v1.AdaptationClient; +import com.google.cloud.speech.v1.PhraseSet; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePhraseSetPhrasesetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdatePhraseSetPhrasesetFieldmask(); + } + + public static void syncUpdatePhraseSetPhrasesetFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + PhraseSet response = adaptationClient.updatePhraseSet(phraseSet, updateMask); + } + } +} +// [END speech_v1_generated_adaptationclient_updatephraseset_phrasesetfieldmask_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java new file mode 100644 index 000000000..2822e5873 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_adaptationsettings_createphraseset_sync] +import com.google.cloud.speech.v1.AdaptationSettings; +import java.time.Duration; + +public class SyncCreatePhraseSet { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSet(); + } + + public static void syncCreatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationSettings.Builder adaptationSettingsBuilder = AdaptationSettings.newBuilder(); + adaptationSettingsBuilder + .createPhraseSetSettings() + .setRetrySettings( + adaptationSettingsBuilder + .createPhraseSetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AdaptationSettings adaptationSettings = adaptationSettingsBuilder.build(); + } +} +// [END speech_v1_generated_adaptationsettings_createphraseset_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000..594fba98e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.speech.v1.SpeechClient; +import com.google.cloud.speech.v1.SpeechSettings; +import com.google.cloud.speech.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechSettings speechSettings = + SpeechSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SpeechClient speechClient = SpeechClient.create(speechSettings); + } +} +// [END speech_v1_generated_speechclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000..f4163009e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_create_setcredentialsprovider1_sync] +import com.google.cloud.speech.v1.SpeechClient; +import com.google.cloud.speech.v1.SpeechSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechSettings speechSettings = + SpeechSettings.newBuilder() + .setTransportChannelProvider( + SpeechSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + SpeechClient speechClient = SpeechClient.create(speechSettings); + } +} +// [END speech_v1_generated_speechclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000..39c177cfe --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,37 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_create_setendpoint_sync] +import com.google.cloud.speech.v1.SpeechClient; +import com.google.cloud.speech.v1.SpeechSettings; +import com.google.cloud.speech.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechSettings speechSettings = SpeechSettings.newBuilder().setEndpoint(myEndpoint).build(); + SpeechClient speechClient = SpeechClient.create(speechSettings); + } +} +// [END speech_v1_generated_speechclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java new file mode 100644 index 000000000..98babdc9d --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_longrunningrecognize_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.LongRunningRecognizeRequest; +import com.google.cloud.speech.v1.RecognitionAudio; +import com.google.cloud.speech.v1.RecognitionConfig; +import com.google.cloud.speech.v1.SpeechClient; +import com.google.cloud.speech.v1.TranscriptOutputConfig; +import com.google.longrunning.Operation; + +public class AsyncLongRunningRecognize { + + public static void main(String[] args) throws Exception { + asyncLongRunningRecognize(); + } + + public static void asyncLongRunningRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + LongRunningRecognizeRequest request = + LongRunningRecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) + .build(); + ApiFuture future = speechClient.longRunningRecognizeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END speech_v1_generated_speechclient_longrunningrecognize_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java new file mode 100644 index 000000000..b8979c467 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_longrunningrecognize_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.speech.v1.LongRunningRecognizeMetadata; +import com.google.cloud.speech.v1.LongRunningRecognizeRequest; +import com.google.cloud.speech.v1.LongRunningRecognizeResponse; +import com.google.cloud.speech.v1.RecognitionAudio; +import com.google.cloud.speech.v1.RecognitionConfig; +import com.google.cloud.speech.v1.SpeechClient; +import com.google.cloud.speech.v1.TranscriptOutputConfig; + +public class AsyncLongRunningRecognizeLRO { + + public static void main(String[] args) throws Exception { + asyncLongRunningRecognizeLRO(); + } + + public static void asyncLongRunningRecognizeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + LongRunningRecognizeRequest request = + LongRunningRecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) + .build(); + OperationFuture future = + speechClient.longRunningRecognizeOperationCallable().futureCall(request); + // Do something. + LongRunningRecognizeResponse response = future.get(); + } + } +} +// [END speech_v1_generated_speechclient_longrunningrecognize_lro_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java new file mode 100644 index 000000000..6cfb4326e --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_longrunningrecognize_sync] +import com.google.cloud.speech.v1.LongRunningRecognizeRequest; +import com.google.cloud.speech.v1.LongRunningRecognizeResponse; +import com.google.cloud.speech.v1.RecognitionAudio; +import com.google.cloud.speech.v1.RecognitionConfig; +import com.google.cloud.speech.v1.SpeechClient; +import com.google.cloud.speech.v1.TranscriptOutputConfig; + +public class SyncLongRunningRecognize { + + public static void main(String[] args) throws Exception { + syncLongRunningRecognize(); + } + + public static void syncLongRunningRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + LongRunningRecognizeRequest request = + LongRunningRecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) + .build(); + LongRunningRecognizeResponse response = speechClient.longRunningRecognizeAsync(request).get(); + } + } +} +// [END speech_v1_generated_speechclient_longrunningrecognize_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java new file mode 100644 index 000000000..34b76edde --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] +import com.google.cloud.speech.v1.LongRunningRecognizeResponse; +import com.google.cloud.speech.v1.RecognitionAudio; +import com.google.cloud.speech.v1.RecognitionConfig; +import com.google.cloud.speech.v1.SpeechClient; + +public class SyncLongRunningRecognizeRecognitionconfigRecognitionaudio { + + public static void main(String[] args) throws Exception { + syncLongRunningRecognizeRecognitionconfigRecognitionaudio(); + } + + public static void syncLongRunningRecognizeRecognitionconfigRecognitionaudio() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + LongRunningRecognizeResponse response = + speechClient.longRunningRecognizeAsync(config, audio).get(); + } + } +} +// [END speech_v1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java new file mode 100644 index 000000000..f46fdbf07 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_recognize_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1.RecognitionAudio; +import com.google.cloud.speech.v1.RecognitionConfig; +import com.google.cloud.speech.v1.RecognizeRequest; +import com.google.cloud.speech.v1.RecognizeResponse; +import com.google.cloud.speech.v1.SpeechClient; + +public class AsyncRecognize { + + public static void main(String[] args) throws Exception { + asyncRecognize(); + } + + public static void asyncRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + RecognizeRequest request = + RecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .build(); + ApiFuture future = speechClient.recognizeCallable().futureCall(request); + // Do something. + RecognizeResponse response = future.get(); + } + } +} +// [END speech_v1_generated_speechclient_recognize_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java new file mode 100644 index 000000000..0b292ea22 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_recognize_sync] +import com.google.cloud.speech.v1.RecognitionAudio; +import com.google.cloud.speech.v1.RecognitionConfig; +import com.google.cloud.speech.v1.RecognizeRequest; +import com.google.cloud.speech.v1.RecognizeResponse; +import com.google.cloud.speech.v1.SpeechClient; + +public class SyncRecognize { + + public static void main(String[] args) throws Exception { + syncRecognize(); + } + + public static void syncRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + RecognizeRequest request = + RecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .build(); + RecognizeResponse response = speechClient.recognize(request); + } + } +} +// [END speech_v1_generated_speechclient_recognize_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java new file mode 100644 index 000000000..0fd7928d9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_recognize_recognitionconfigrecognitionaudio_sync] +import com.google.cloud.speech.v1.RecognitionAudio; +import com.google.cloud.speech.v1.RecognitionConfig; +import com.google.cloud.speech.v1.RecognizeResponse; +import com.google.cloud.speech.v1.SpeechClient; + +public class SyncRecognizeRecognitionconfigRecognitionaudio { + + public static void main(String[] args) throws Exception { + syncRecognizeRecognitionconfigRecognitionaudio(); + } + + public static void syncRecognizeRecognitionconfigRecognitionaudio() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + RecognizeResponse response = speechClient.recognize(config, audio); + } + } +} +// [END speech_v1_generated_speechclient_recognize_recognitionconfigrecognitionaudio_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java new file mode 100644 index 000000000..d2ac554e0 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechclient_streamingrecognize_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.speech.v1.SpeechClient; +import com.google.cloud.speech.v1.StreamingRecognizeRequest; +import com.google.cloud.speech.v1.StreamingRecognizeResponse; + +public class AsyncStreamingRecognize { + + public static void main(String[] args) throws Exception { + asyncStreamingRecognize(); + } + + public static void asyncStreamingRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + BidiStream bidiStream = + speechClient.streamingRecognizeCallable().call(); + StreamingRecognizeRequest request = StreamingRecognizeRequest.newBuilder().build(); + bidiStream.send(request); + for (StreamingRecognizeResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END speech_v1_generated_speechclient_streamingrecognize_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java new file mode 100644 index 000000000..479121da3 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.samples; + +// [START speech_v1_generated_speechsettings_recognize_sync] +import com.google.cloud.speech.v1.SpeechSettings; +import java.time.Duration; + +public class SyncRecognize { + + public static void main(String[] args) throws Exception { + syncRecognize(); + } + + public static void syncRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechSettings.Builder speechSettingsBuilder = SpeechSettings.newBuilder(); + speechSettingsBuilder + .recognizeSettings() + .setRetrySettings( + speechSettingsBuilder + .recognizeSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SpeechSettings speechSettings = speechSettingsBuilder.build(); + } +} +// [END speech_v1_generated_speechsettings_recognize_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java new file mode 100644 index 000000000..841517611 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.stub.samples; + +// [START speech_v1_generated_adaptationstubsettings_createphraseset_sync] +import com.google.cloud.speech.v1.stub.AdaptationStubSettings; +import java.time.Duration; + +public class SyncCreatePhraseSet { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSet(); + } + + public static void syncCreatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationStubSettings.Builder adaptationSettingsBuilder = AdaptationStubSettings.newBuilder(); + adaptationSettingsBuilder + .createPhraseSetSettings() + .setRetrySettings( + adaptationSettingsBuilder + .createPhraseSetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AdaptationStubSettings adaptationSettings = adaptationSettingsBuilder.build(); + } +} +// [END speech_v1_generated_adaptationstubsettings_createphraseset_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java new file mode 100644 index 000000000..15f526f49 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1.stub.samples; + +// [START speech_v1_generated_speechstubsettings_recognize_sync] +import com.google.cloud.speech.v1.stub.SpeechStubSettings; +import java.time.Duration; + +public class SyncRecognize { + + public static void main(String[] args) throws Exception { + syncRecognize(); + } + + public static void syncRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechStubSettings.Builder speechSettingsBuilder = SpeechStubSettings.newBuilder(); + speechSettingsBuilder + .recognizeSettings() + .setRetrySettings( + speechSettingsBuilder + .recognizeSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SpeechStubSettings speechSettings = speechSettingsBuilder.build(); + } +} +// [END speech_v1_generated_speechstubsettings_recognize_sync] diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java similarity index 97% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java index 399a54edb..d1406f4b0 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java @@ -60,13 +60,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -101,6 +101,20 @@ * AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); * }
* + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AdaptationSettings adaptationSettings =
+ *     AdaptationSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             AdaptationSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -1377,10 +1391,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListPhraseSetPagedResponse extends AbstractPagedListResponse< - ListPhraseSetRequest, - ListPhraseSetResponse, - PhraseSet, - ListPhraseSetPage, + ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { public static ApiFuture createAsync( @@ -1430,10 +1441,7 @@ public ApiFuture createPageAsync( public static class ListPhraseSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListPhraseSetRequest, - ListPhraseSetResponse, - PhraseSet, - ListPhraseSetPage, + ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { private ListPhraseSetFixedSizeCollection(List pages, int collectionSize) { @@ -1453,10 +1461,7 @@ protected ListPhraseSetFixedSizeCollection createCollection( public static class ListCustomClassesPagedResponse extends AbstractPagedListResponse< - ListCustomClassesRequest, - ListCustomClassesResponse, - CustomClass, - ListCustomClassesPage, + ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1506,10 +1511,7 @@ public ApiFuture createPageAsync( public static class ListCustomClassesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCustomClassesRequest, - ListCustomClassesResponse, - CustomClass, - ListCustomClassesPage, + ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java similarity index 91% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index bf73ab474..e2dd2ccb4 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java @@ -24,10 +24,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.speech.v1p1beta1.stub.AdaptationStubSettings; @@ -43,9 +45,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -150,11 +152,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return AdaptationStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return AdaptationStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AdaptationStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return AdaptationStubSettings.defaultTransportChannelProvider(); } @@ -164,11 +173,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return AdaptationStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -206,6 +221,11 @@ private static Builder createDefault() { return new Builder(AdaptationStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(AdaptationStubSettings.newHttpJsonBuilder()); + } + public AdaptationStubSettings.Builder getStubSettingsBuilder() { return ((AdaptationStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java similarity index 90% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java index ecedade14..406f97873 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java @@ -18,6 +18,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.OperationCallable; @@ -25,7 +26,6 @@ import com.google.cloud.speech.v1p1beta1.stub.SpeechStub; import com.google.cloud.speech.v1p1beta1.stub.SpeechStubSettings; import com.google.longrunning.Operation; -import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -54,13 +54,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -94,6 +94,20 @@ * SpeechClient speechClient = SpeechClient.create(speechSettings); * }
* + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * SpeechSettings speechSettings =
+ *     SpeechSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             SpeechSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * SpeechClient speechClient = SpeechClient.create(speechSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi @@ -101,7 +115,8 @@ public class SpeechClient implements BackgroundResource { private final SpeechSettings settings; private final SpeechStub stub; - private final OperationsClient operationsClient; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; /** Constructs an instance of SpeechClient with default settings. */ public static final SpeechClient create() throws IOException { @@ -131,13 +146,17 @@ public static final SpeechClient create(SpeechStub stub) { protected SpeechClient(SpeechSettings settings) throws IOException { this.settings = settings; this.stub = ((SpeechStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } protected SpeechClient(SpeechStub stub) { this.settings = null; this.stub = stub; - this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); } public final SpeechSettings getSettings() { @@ -152,10 +171,18 @@ public SpeechStub getStub() { * Returns the OperationsClient that can be used to query the status of a long-running operation * returned by another API method call. */ - public final OperationsClient getOperationsClient() { + public final com.google.longrunning.OperationsClient getOperationsClient() { return operationsClient; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Performs synchronous speech recognition: receive results after all audio has been sent and diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java similarity index 88% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index 2b79ad643..3d3153a97 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java @@ -21,11 +21,13 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.speech.v1p1beta1.stub.SpeechStubSettings; @@ -41,9 +43,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -118,11 +120,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return SpeechStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return SpeechStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return SpeechStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return SpeechStubSettings.defaultTransportChannelProvider(); } @@ -132,11 +141,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return SpeechStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -174,6 +189,11 @@ private static Builder createDefault() { return new Builder(SpeechStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(SpeechStubSettings.newHttpJsonBuilder()); + } + public SpeechStubSettings.Builder getStubSettingsBuilder() { return ((SpeechStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java similarity index 91% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java index 17cfa42fb..631825f9d 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -71,9 +74,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -216,8 +219,7 @@ public ApiFuture getFuturePagedResponse( ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse> LIST_CUSTOM_CLASSES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCustomClassesRequest, - ListCustomClassesResponse, + ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -292,6 +294,11 @@ public AdaptationStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAdaptationStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAdaptationStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -324,18 +331,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(AdaptationStubSettings.class)) @@ -343,11 +357,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AdaptationStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AdaptationStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -490,6 +523,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createPhraseSetSettings() diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java similarity index 99% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java index 8875ab91a..526e244c2 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java @@ -46,6 +46,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java similarity index 100% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java new file mode 100644 index 000000000..85c896189 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Adaptation service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAdaptationCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java new file mode 100644 index 000000000..1aae35000 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java @@ -0,0 +1,695 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.stub; + +import static com.google.cloud.speech.v1p1beta1.AdaptationClient.ListCustomClassesPagedResponse; +import static com.google.cloud.speech.v1p1beta1.AdaptationClient.ListPhraseSetPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest; +import com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest; +import com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.GetCustomClassRequest; +import com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest; +import com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse; +import com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse; +import com.google.cloud.speech.v1p1beta1.PhraseSet; +import com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest; +import com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Adaptation service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAdaptationStub extends AdaptationStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createPhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/CreatePhraseSet") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=projects/*/locations/*}/phraseSets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PhraseSet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getPhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/GetPhraseSet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{name=projects/*/locations/*/phraseSets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PhraseSet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listPhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/ListPhraseSet") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=projects/*/locations/*}/phraseSets", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListPhraseSetResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updatePhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/UpdatePhraseSet") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{phraseSet.name=projects/*/locations/*/phraseSets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "phraseSet.name", request.getPhraseSet().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("phraseSet", request.getPhraseSet())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PhraseSet.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deletePhraseSetMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/DeletePhraseSet") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{name=projects/*/locations/*/phraseSets/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createCustomClassMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/CreateCustomClass") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=projects/*/locations/*}/customClasses", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomClass.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getCustomClassMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/GetCustomClass") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{name=projects/*/locations/*/customClasses/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomClass.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCustomClassesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/ListCustomClasses") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{parent=projects/*/locations/*}/customClasses", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCustomClassesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCustomClassMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/UpdateCustomClass") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{customClass.name=projects/*/locations/*/customClasses/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "customClass.name", request.getCustomClass().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("customClass", request.getCustomClass())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomClass.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCustomClassMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Adaptation/DeleteCustomClass") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/{name=projects/*/locations/*/customClasses/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createPhraseSetCallable; + private final UnaryCallable getPhraseSetCallable; + private final UnaryCallable listPhraseSetCallable; + private final UnaryCallable + listPhraseSetPagedCallable; + private final UnaryCallable updatePhraseSetCallable; + private final UnaryCallable deletePhraseSetCallable; + private final UnaryCallable createCustomClassCallable; + private final UnaryCallable getCustomClassCallable; + private final UnaryCallable + listCustomClassesCallable; + private final UnaryCallable + listCustomClassesPagedCallable; + private final UnaryCallable updateCustomClassCallable; + private final UnaryCallable deleteCustomClassCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAdaptationStub create(AdaptationStubSettings settings) + throws IOException { + return new HttpJsonAdaptationStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAdaptationStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAdaptationStub( + AdaptationStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAdaptationStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAdaptationStub( + AdaptationStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAdaptationStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonAdaptationStub(AdaptationStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonAdaptationCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAdaptationStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonAdaptationStub( + AdaptationStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createPhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createPhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getPhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getPhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listPhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listPhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updatePhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updatePhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deletePhraseSetTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deletePhraseSetMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings createCustomClassTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCustomClassMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getCustomClassTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCustomClassMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + listCustomClassesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCustomClassesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateCustomClassTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCustomClassMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteCustomClassTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCustomClassMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createPhraseSetCallable = + callableFactory.createUnaryCallable( + createPhraseSetTransportSettings, settings.createPhraseSetSettings(), clientContext); + this.getPhraseSetCallable = + callableFactory.createUnaryCallable( + getPhraseSetTransportSettings, settings.getPhraseSetSettings(), clientContext); + this.listPhraseSetCallable = + callableFactory.createUnaryCallable( + listPhraseSetTransportSettings, settings.listPhraseSetSettings(), clientContext); + this.listPhraseSetPagedCallable = + callableFactory.createPagedCallable( + listPhraseSetTransportSettings, settings.listPhraseSetSettings(), clientContext); + this.updatePhraseSetCallable = + callableFactory.createUnaryCallable( + updatePhraseSetTransportSettings, settings.updatePhraseSetSettings(), clientContext); + this.deletePhraseSetCallable = + callableFactory.createUnaryCallable( + deletePhraseSetTransportSettings, settings.deletePhraseSetSettings(), clientContext); + this.createCustomClassCallable = + callableFactory.createUnaryCallable( + createCustomClassTransportSettings, + settings.createCustomClassSettings(), + clientContext); + this.getCustomClassCallable = + callableFactory.createUnaryCallable( + getCustomClassTransportSettings, settings.getCustomClassSettings(), clientContext); + this.listCustomClassesCallable = + callableFactory.createUnaryCallable( + listCustomClassesTransportSettings, + settings.listCustomClassesSettings(), + clientContext); + this.listCustomClassesPagedCallable = + callableFactory.createPagedCallable( + listCustomClassesTransportSettings, + settings.listCustomClassesSettings(), + clientContext); + this.updateCustomClassCallable = + callableFactory.createUnaryCallable( + updateCustomClassTransportSettings, + settings.updateCustomClassSettings(), + clientContext); + this.deleteCustomClassCallable = + callableFactory.createUnaryCallable( + deleteCustomClassTransportSettings, + settings.deleteCustomClassSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createPhraseSetMethodDescriptor); + methodDescriptors.add(getPhraseSetMethodDescriptor); + methodDescriptors.add(listPhraseSetMethodDescriptor); + methodDescriptors.add(updatePhraseSetMethodDescriptor); + methodDescriptors.add(deletePhraseSetMethodDescriptor); + methodDescriptors.add(createCustomClassMethodDescriptor); + methodDescriptors.add(getCustomClassMethodDescriptor); + methodDescriptors.add(listCustomClassesMethodDescriptor); + methodDescriptors.add(updateCustomClassMethodDescriptor); + methodDescriptors.add(deleteCustomClassMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createPhraseSetCallable() { + return createPhraseSetCallable; + } + + @Override + public UnaryCallable getPhraseSetCallable() { + return getPhraseSetCallable; + } + + @Override + public UnaryCallable listPhraseSetCallable() { + return listPhraseSetCallable; + } + + @Override + public UnaryCallable + listPhraseSetPagedCallable() { + return listPhraseSetPagedCallable; + } + + @Override + public UnaryCallable updatePhraseSetCallable() { + return updatePhraseSetCallable; + } + + @Override + public UnaryCallable deletePhraseSetCallable() { + return deletePhraseSetCallable; + } + + @Override + public UnaryCallable createCustomClassCallable() { + return createCustomClassCallable; + } + + @Override + public UnaryCallable getCustomClassCallable() { + return getCustomClassCallable; + } + + @Override + public UnaryCallable + listCustomClassesCallable() { + return listCustomClassesCallable; + } + + @Override + public UnaryCallable + listCustomClassesPagedCallable() { + return listCustomClassesPagedCallable; + } + + @Override + public UnaryCallable updateCustomClassCallable() { + return updateCustomClassCallable; + } + + @Override + public UnaryCallable deleteCustomClassCallable() { + return deleteCustomClassCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java new file mode 100644 index 000000000..008215d4f --- /dev/null +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Speech service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSpeechCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java new file mode 100644 index 000000000..b2e330646 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java @@ -0,0 +1,279 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata; +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest; +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse; +import com.google.cloud.speech.v1p1beta1.RecognizeRequest; +import com.google.cloud.speech.v1p1beta1.RecognizeResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Speech service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonSpeechStub extends SpeechStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(LongRunningRecognizeResponse.getDescriptor()) + .add(LongRunningRecognizeMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + recognizeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Speech/Recognize") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/speech:recognize", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RecognizeResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + longRunningRecognizeMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.speech.v1p1beta1.Speech/LongRunningRecognize") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1p1beta1/speech:longrunningrecognize", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("*", request.toBuilder().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (LongRunningRecognizeRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable recognizeCallable; + private final UnaryCallable longRunningRecognizeCallable; + private final OperationCallable< + LongRunningRecognizeRequest, LongRunningRecognizeResponse, LongRunningRecognizeMetadata> + longRunningRecognizeOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonSpeechStub create(SpeechStubSettings settings) throws IOException { + return new HttpJsonSpeechStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonSpeechStub create(ClientContext clientContext) throws IOException { + return new HttpJsonSpeechStub(SpeechStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonSpeechStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonSpeechStub( + SpeechStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonSpeechStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonSpeechStub(SpeechStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonSpeechCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonSpeechStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonSpeechStub( + SpeechStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create(clientContext, callableFactory, typeRegistry); + + HttpJsonCallSettings recognizeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(recognizeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + longRunningRecognizeTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(longRunningRecognizeMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.recognizeCallable = + callableFactory.createUnaryCallable( + recognizeTransportSettings, settings.recognizeSettings(), clientContext); + this.longRunningRecognizeCallable = + callableFactory.createUnaryCallable( + longRunningRecognizeTransportSettings, + settings.longRunningRecognizeSettings(), + clientContext); + this.longRunningRecognizeOperationCallable = + callableFactory.createOperationCallable( + longRunningRecognizeTransportSettings, + settings.longRunningRecognizeOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(recognizeMethodDescriptor); + methodDescriptors.add(longRunningRecognizeMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable recognizeCallable() { + return recognizeCallable; + } + + @Override + public UnaryCallable longRunningRecognizeCallable() { + return longRunningRecognizeCallable; + } + + @Override + public OperationCallable< + LongRunningRecognizeRequest, LongRunningRecognizeResponse, LongRunningRecognizeMetadata> + longRunningRecognizeOperationCallable() { + return longRunningRecognizeOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java similarity index 95% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java index 2c1bb7994..2adbabc73 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java @@ -43,7 +43,11 @@ public abstract class SpeechStub implements BackgroundResource { public OperationsStub getOperationsStub() { - throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; } public UnaryCallable recognizeCallable() { diff --git a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java similarity index 87% rename from google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java index f96b4178e..7f1121465 100644 --- a/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java @@ -25,6 +25,9 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; @@ -60,9 +63,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -131,6 +134,11 @@ public SpeechStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcSpeechStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonSpeechStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -163,29 +171,54 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(SpeechStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(SpeechStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return SpeechStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -306,6 +339,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .recognizeSettings() diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java new file mode 100644 index 000000000..0b485e3a8 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java @@ -0,0 +1,940 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1; + +import static com.google.cloud.speech.v1p1beta1.AdaptationClient.ListCustomClassesPagedResponse; +import static com.google.cloud.speech.v1p1beta1.AdaptationClient.ListPhraseSetPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.speech.v1p1beta1.stub.HttpJsonAdaptationStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AdaptationClientHttpJsonTest { + private static MockHttpService mockService; + private static AdaptationClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAdaptationStub.getMethodDescriptors(), AdaptationSettings.getDefaultEndpoint()); + AdaptationSettings settings = + AdaptationSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AdaptationSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AdaptationClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createPhraseSetTest() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + + PhraseSet actualResponse = client.createPhraseSet(parent, phraseSet, phraseSetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createPhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + client.createPhraseSet(parent, phraseSet, phraseSetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createPhraseSetTest2() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + + PhraseSet actualResponse = client.createPhraseSet(parent, phraseSet, phraseSetId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createPhraseSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + client.createPhraseSet(parent, phraseSet, phraseSetId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPhraseSetTest() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + + PhraseSet actualResponse = client.getPhraseSet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + client.getPhraseSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getPhraseSetTest2() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-458/locations/location-458/phraseSets/phraseSet-458"; + + PhraseSet actualResponse = client.getPhraseSet(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getPhraseSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-458/locations/location-458/phraseSets/phraseSet-458"; + client.getPhraseSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPhraseSetTest() throws Exception { + PhraseSet responsesElement = PhraseSet.newBuilder().build(); + ListPhraseSetResponse expectedResponse = + ListPhraseSetResponse.newBuilder() + .setNextPageToken("") + .addAllPhraseSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListPhraseSetPagedResponse pagedListResponse = client.listPhraseSet(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPhraseSetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listPhraseSet(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listPhraseSetTest2() throws Exception { + PhraseSet responsesElement = PhraseSet.newBuilder().build(); + ListPhraseSetResponse expectedResponse = + ListPhraseSetResponse.newBuilder() + .setNextPageToken("") + .addAllPhraseSets(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListPhraseSetPagedResponse pagedListResponse = client.listPhraseSet(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPhraseSetsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listPhraseSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listPhraseSet(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updatePhraseSetTest() throws Exception { + PhraseSet expectedResponse = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + mockService.addResponse(expectedResponse); + + PhraseSet phraseSet = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + PhraseSet actualResponse = client.updatePhraseSet(phraseSet, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updatePhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PhraseSet phraseSet = + PhraseSet.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .addAllPhrases(new ArrayList()) + .setBoost(93922211) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updatePhraseSet(phraseSet, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePhraseSetTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + + client.deletePhraseSet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deletePhraseSetExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + client.deletePhraseSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deletePhraseSetTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-458/locations/location-458/phraseSets/phraseSet-458"; + + client.deletePhraseSet(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deletePhraseSetExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-458/locations/location-458/phraseSets/phraseSet-458"; + client.deletePhraseSet(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomClassTest() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + + CustomClass actualResponse = client.createCustomClass(parent, customClass, customClassId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCustomClassExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + client.createCustomClass(parent, customClass, customClassId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomClassTest2() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + + CustomClass actualResponse = client.createCustomClass(parent, customClass, customClassId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCustomClassExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + client.createCustomClass(parent, customClass, customClassId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomClassTest() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + + CustomClass actualResponse = client.getCustomClass(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCustomClassExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + client.getCustomClass(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomClassTest2() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4379/locations/location-4379/customClasses/customClasse-4379"; + + CustomClass actualResponse = client.getCustomClass(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getCustomClassExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4379/locations/location-4379/customClasses/customClasse-4379"; + client.getCustomClass(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomClassesTest() throws Exception { + CustomClass responsesElement = CustomClass.newBuilder().build(); + ListCustomClassesResponse expectedResponse = + ListCustomClassesResponse.newBuilder() + .setNextPageToken("") + .addAllCustomClasses(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCustomClassesPagedResponse pagedListResponse = client.listCustomClasses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomClassesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCustomClassesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCustomClasses(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomClassesTest2() throws Exception { + CustomClass responsesElement = CustomClass.newBuilder().build(); + ListCustomClassesResponse expectedResponse = + ListCustomClassesResponse.newBuilder() + .setNextPageToken("") + .addAllCustomClasses(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCustomClassesPagedResponse pagedListResponse = client.listCustomClasses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomClassesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCustomClassesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listCustomClasses(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomClassTest() throws Exception { + CustomClass expectedResponse = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CustomClass customClass = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomClass actualResponse = client.updateCustomClass(customClass, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCustomClassExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomClass customClass = + CustomClass.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .setCustomClassId("customClassId1871032322") + .addAllItems(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomClass(customClass, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCustomClassTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + + client.deleteCustomClass(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCustomClassExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + client.deleteCustomClass(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCustomClassTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4379/locations/location-4379/customClasses/customClasse-4379"; + + client.deleteCustomClass(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteCustomClassExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4379/locations/location-4379/customClasses/customClasse-4379"; + client.deleteCustomClass(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java new file mode 100644 index 000000000..ec6318911 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java @@ -0,0 +1,186 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.speech.v1p1beta1.stub.HttpJsonSpeechStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Duration; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class SpeechClientHttpJsonTest { + private static MockHttpService mockService; + private static SpeechClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonSpeechStub.getMethodDescriptors(), SpeechSettings.getDefaultEndpoint()); + SpeechSettings settings = + SpeechSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + SpeechSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = SpeechClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void recognizeTest() throws Exception { + RecognizeResponse expectedResponse = + RecognizeResponse.newBuilder() + .addAllResults(new ArrayList()) + .setTotalBilledTime(Duration.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + + RecognizeResponse actualResponse = client.recognize(config, audio); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void recognizeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + client.recognize(config, audio); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void longRunningRecognizeTest() throws Exception { + LongRunningRecognizeResponse expectedResponse = + LongRunningRecognizeResponse.newBuilder() + .addAllResults(new ArrayList()) + .setTotalBilledTime(Duration.newBuilder().build()) + .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) + .setOutputError(Status.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("longRunningRecognizeTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + + LongRunningRecognizeResponse actualResponse = + client.longRunningRecognizeAsync(config, audio).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void longRunningRecognizeExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + client.longRunningRecognizeAsync(config, audio).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void streamingRecognizeUnsupportedMethodTest() throws Exception { + // The streamingRecognize() method is not supported in REST transport. + //This empty test is generated for technical reasons. + } +} diff --git a/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java b/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java similarity index 100% rename from google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java rename to owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java diff --git a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java new file mode 100644 index 000000000..e41d203e7 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java @@ -0,0 +1,1085 @@ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service that implements Google Cloud Speech Adaptation API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdaptationGrpc { + + private AdaptationGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + AdaptationGrpc.getCreatePhraseSetMethod = getCreatePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { + io.grpc.MethodDescriptor getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + AdaptationGrpc.getGetPhraseSetMethod = getGetPhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListPhraseSetMethod() { + io.grpc.MethodDescriptor getListPhraseSetMethod; + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + AdaptationGrpc.getListPhraseSetMethod = getListPhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) + .build(); + } + } + } + return getListPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + AdaptationGrpc.getUpdatePhraseSetMethod = getUpdatePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) + .build(); + } + } + } + return getUpdatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + AdaptationGrpc.getDeletePhraseSetMethod = getDeletePhraseSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { + io.grpc.MethodDescriptor getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + AdaptationGrpc.getCreateCustomClassMethod = getCreateCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetCustomClassMethod() { + io.grpc.MethodDescriptor getGetCustomClassMethod; + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + AdaptationGrpc.getGetCustomClassMethod = getGetCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListCustomClassesMethod() { + io.grpc.MethodDescriptor getListCustomClassesMethod; + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + AdaptationGrpc.getListCustomClassesMethod = getListCustomClassesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + AdaptationGrpc.getUpdateCustomClassMethod = getUpdateCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) + .build(); + } + } + } + return getUpdateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + AdaptationGrpc.getDeleteCustomClassMethod = getDeleteCustomClassMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AdaptationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + }; + return AdaptationStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdaptationBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + }; + return AdaptationBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AdaptationFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + }; + return AdaptationFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static abstract class AdaptationImplBase implements io.grpc.BindableService { + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetMethod(), responseObserver); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_GET_PHRASE_SET))) + .addMethod( + getListPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( + this, METHODID_LIST_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CUSTOM_CLASS))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { + private AdaptationStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private AdaptationBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.protobuf.Empty deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.protobuf.Empty deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationFutureStub extends io.grpc.stub.AbstractFutureStub { + private AdaptationFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + + /** + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * List phrase sets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Create a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Get a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * List custom classes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + *
+     * Update a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_PHRASE_SET = 0; + private static final int METHODID_GET_PHRASE_SET = 1; + private static final int METHODID_LIST_PHRASE_SET = 2; + private static final int METHODID_UPDATE_PHRASE_SET = 3; + private static final int METHODID_DELETE_PHRASE_SET = 4; + private static final int METHODID_CREATE_CUSTOM_CLASS = 5; + private static final int METHODID_GET_CUSTOM_CLASS = 6; + private static final int METHODID_LIST_CUSTOM_CLASSES = 7; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; + private static final int METHODID_DELETE_CUSTOM_CLASS = 9; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AdaptationImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PHRASE_SET: + serviceImpl.listPhraseSet((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdaptationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Adaptation"); + } + } + + private static final class AdaptationFileDescriptorSupplier + extends AdaptationBaseDescriptorSupplier { + AdaptationFileDescriptorSupplier() {} + } + + private static final class AdaptationMethodDescriptorSupplier + extends AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdaptationMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdaptationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getListPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java new file mode 100644 index 000000000..5879fdc44 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java @@ -0,0 +1,479 @@ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRecognizeMethod() { + io.grpc.MethodDescriptor getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = getRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static SpeechFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static abstract class SpeechImplBase implements io.grpc.BindableService { + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); + } + + /** + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingRecognize( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse>( + this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>( + this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver streamingRecognize( + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize((com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver) responseObserver); + default: + throw new AssertionError(); + } + } + } + + private static abstract class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier + extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier + extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java similarity index 69% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java index 6e9aa68ce..8abd54116 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `CreateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ -public final class CreateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) CreateCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateCustomClassRequest.newBuilder() to construct. private CreateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateCustomClassRequest() { parent_ = ""; customClassId_ = ""; @@ -44,15 +26,16 @@ private CreateCustomClassRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreateCustomClassRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - customClassId_ = s; - break; + customClassId_ = s; + break; + } + case 26: { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); } - case 26: - { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } - - break; + customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,33 +93,29 @@ private CreateCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -152,10 +126,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -164,15 +135,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -183,18 +153,17 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -205,8 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -215,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ @java.lang.Override @@ -224,15 +190,14 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -241,15 +206,16 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -260,16 +226,11 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { public static final int CUSTOM_CLASS_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ @java.lang.Override @@ -277,34 +238,23 @@ public boolean hasCustomClass() { return customClass_ != null; } /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -312,7 +262,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -350,7 +300,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomClass()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCustomClass()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,19 +311,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = - (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getCustomClassId() + .equals(other.getCustomClassId())) return false; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass().equals(other.getCustomClass())) return false; + if (!getCustomClass() + .equals(other.getCustomClass())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -399,127 +352,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `CreateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) com.google.cloud.speech.v1p1beta1.CreateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.newBuilder() @@ -527,15 +470,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -553,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override @@ -574,8 +518,7 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = - new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); result.parent_ = parent_; result.customClassId_ = customClassId_; if (customClassBuilder_ == null) { @@ -591,39 +534,38 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -631,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -663,8 +604,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -676,8 +616,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -688,16 +626,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -706,8 +642,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -718,17 +652,16 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -736,8 +669,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -748,25 +679,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -777,21 +704,16 @@ public Builder setParent(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -802,19 +724,17 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -822,8 +742,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object customClassId_ = ""; /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -832,13 +750,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -847,8 +765,6 @@ public java.lang.String getCustomClassId() { } } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -857,14 +773,15 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -872,8 +789,6 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -882,22 +797,20 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId(java.lang.String value) { + public Builder setCustomClassId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -906,18 +819,15 @@ public Builder setCustomClassId(java.lang.String value) {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -926,16 +836,16 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; @@ -943,58 +853,39 @@ public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> - customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } else { return customClassBuilder_.getMessage(); } } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { @@ -1010,15 +901,11 @@ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass valu return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass( com.google.cloud.speech.v1p1beta1.CustomClass.Builder builderForValue) { @@ -1032,23 +919,17 @@ public Builder setCustomClass( return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); } else { customClass_ = value; } @@ -1060,15 +941,11 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -1082,71 +959,55 @@ public Builder clearCustomClass() { return this; } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } } /** - * - * *
      * Required. The custom class to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( - getCustomClass(), getParentForChildren(), isClean()); + customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( + getCustomClass(), + getParentForChildren(), + isClean()); customClass_ = null; } return customClassBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1156,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) private static final com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(); } @@ -1170,16 +1031,16 @@ public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1194,4 +1055,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java index 0562cbcf6..a042d1917 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface CreateCustomClassRequestOrBuilder - extends +public interface CreateCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -36,16 +18,11 @@ public interface CreateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -56,17 +33,13 @@ public interface CreateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -75,13 +48,10 @@ public interface CreateCustomClassRequestOrBuilder
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The customClassId. */ java.lang.String getCustomClassId(); /** - * - * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -90,49 +60,35 @@ public interface CreateCustomClassRequestOrBuilder
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString getCustomClassIdBytes(); + com.google.protobuf.ByteString + getCustomClassIdBytes(); /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(); /** - * - * *
    * Required. The custom class to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java similarity index 69% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java index a8217d17d..c4450fceb 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `CreatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ -public final class CreatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreatePhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) CreatePhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreatePhraseSetRequest.newBuilder() to construct. private CreatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreatePhraseSetRequest() { parent_ = ""; phraseSetId_ = ""; @@ -44,15 +26,16 @@ private CreatePhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,43 +54,38 @@ private CreatePhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - phraseSetId_ = s; - break; + phraseSetId_ = s; + break; + } + case 26: { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); } - case 26: - { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } - - break; + phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,33 +93,29 @@ private CreatePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -152,10 +126,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -164,15 +135,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -183,18 +153,17 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -205,8 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object phraseSetId_; /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -215,7 +182,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ @java.lang.Override @@ -224,15 +190,14 @@ public java.lang.String getPhraseSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; } } /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -241,15 +206,16 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for phraseSetId. */ @java.lang.Override - public com.google.protobuf.ByteString getPhraseSetIdBytes() { + public com.google.protobuf.ByteString + getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -260,16 +226,11 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() { public static final int PHRASE_SET_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -277,34 +238,23 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -312,7 +262,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -324,7 +273,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -350,7 +300,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phraseSetId_); } if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getPhraseSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -360,19 +311,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (!getPhraseSetId() + .equals(other.getPhraseSetId())) return false; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -399,127 +352,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `CreatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.newBuilder() @@ -527,15 +470,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -553,9 +497,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override @@ -574,8 +518,7 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); result.parent_ = parent_; result.phraseSetId_ = phraseSetId_; if (phraseSetBuilder_ == null) { @@ -591,39 +534,38 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -631,8 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -663,8 +604,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -676,8 +616,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -688,16 +626,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -706,8 +642,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -718,17 +652,16 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -736,8 +669,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -748,25 +679,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -777,21 +704,16 @@ public Builder setParent(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -802,19 +724,17 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -822,8 +742,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object phraseSetId_ = ""; /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -832,13 +750,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ public java.lang.String getPhraseSetId() { java.lang.Object ref = phraseSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; @@ -847,8 +765,6 @@ public java.lang.String getPhraseSetId() { } } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -857,14 +773,15 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for phraseSetId. */ - public com.google.protobuf.ByteString getPhraseSetIdBytes() { + public com.google.protobuf.ByteString + getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -872,8 +789,6 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() { } } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -882,22 +797,20 @@ public com.google.protobuf.ByteString getPhraseSetIdBytes() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId(java.lang.String value) { + public Builder setPhraseSetId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phraseSetId_ = value; onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -906,18 +819,15 @@ public Builder setPhraseSetId(java.lang.String value) {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearPhraseSetId() { - + phraseSetId_ = getDefaultInstance().getPhraseSetId(); onChanged(); return this; } /** - * - * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -926,16 +836,16 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { + public Builder setPhraseSetIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phraseSetId_ = value; onChanged(); return this; @@ -943,58 +853,39 @@ public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> - phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -1010,15 +901,11 @@ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet( com.google.cloud.speech.v1p1beta1.PhraseSet.Builder builderForValue) { @@ -1032,23 +919,17 @@ public Builder setPhraseSet( return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); } else { phraseSet_ = value; } @@ -1060,15 +941,11 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -1082,71 +959,55 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } } /** - * - * *
      * Required. The phrase set to create.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( - getPhraseSet(), getParentForChildren(), isClean()); + phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( + getPhraseSet(), + getParentForChildren(), + isClean()); phraseSet_ = null; } return phraseSetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1156,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(); } @@ -1170,16 +1031,16 @@ public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1194,4 +1055,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java index 4b4c85e4a..e21aaa6f9 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface CreatePhraseSetRequestOrBuilder - extends +public interface CreatePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -36,16 +18,11 @@ public interface CreatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -56,17 +33,13 @@ public interface CreatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -75,13 +48,10 @@ public interface CreatePhraseSetRequestOrBuilder
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The phraseSetId. */ java.lang.String getPhraseSetId(); /** - * - * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -90,49 +60,35 @@ public interface CreatePhraseSetRequestOrBuilder
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for phraseSetId. */ - com.google.protobuf.ByteString getPhraseSetIdBytes(); + com.google.protobuf.ByteString + getPhraseSetIdBytes(); /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(); /** - * - * *
    * Required. The phrase set to create.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java similarity index 74% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java index d726e419b..5ffa435fe 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
  */
-public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CustomClass extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass)
     CustomClassOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -47,15 +29,16 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,41 +58,34 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            name_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              customClassId_ = s;
-              break;
-            }
-          case 26:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                items_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              items_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
-                      extensionRegistry));
-              break;
+            customClassId_ = s;
+            break;
+          }
+          case 26: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              items_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            items_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -117,7 +93,8 @@ private CustomClass(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -126,86 +103,75 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.CustomClass.class,
-            com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder
-      extends
+  public interface ClassItemOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); } /** - * - * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ClassItem extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -224,20 +190,19 @@ private ClassItem( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + value_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -245,39 +210,34 @@ private ClassItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -286,29 +246,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * The class item's value.
      * 
* * string value = 1; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -317,7 +277,6 @@ public com.google.protobuf.ByteString getValueBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,7 +288,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -353,15 +313,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = - (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -381,94 +341,87 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -478,32 +431,27 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.newBuilder() @@ -511,15 +459,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -529,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override @@ -550,8 +499,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = - new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -561,41 +509,38 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)other); } else { super.mergeFrom(other); return this; @@ -603,8 +548,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -628,8 +572,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -641,20 +584,18 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -663,21 +604,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -685,66 +625,58 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The class item's value.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -757,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) private static final com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(); } @@ -771,16 +703,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -795,19 +727,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -816,29 +746,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -849,15 +779,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The customClassId. */ @java.lang.Override @@ -866,30 +793,30 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -900,8 +827,6 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** - * - * *
    * A collection of class items.
    * 
@@ -913,8 +838,6 @@ public java.util.List g return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -922,13 +845,11 @@ public java.util.List g * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** - * - * *
    * A collection of class items.
    * 
@@ -940,8 +861,6 @@ public int getItemsCount() { return items_.size(); } /** - * - * *
    * A collection of class items.
    * 
@@ -953,8 +872,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde return items_.get(index); } /** - * - * *
    * A collection of class items.
    * 
@@ -968,7 +885,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -980,7 +896,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1006,7 +923,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1016,17 +934,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass other = - (com.google.cloud.speech.v1p1beta1.CustomClass) obj; + com.google.cloud.speech.v1p1beta1.CustomClass other = (com.google.cloud.speech.v1p1beta1.CustomClass) obj; - if (!getName().equals(other.getName())) return false; - if (!getCustomClassId().equals(other.getCustomClassId())) return false; - if (!getItemsList().equals(other.getItemsList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getCustomClassId() + .equals(other.getCustomClassId())) return false; + if (!getItemsList() + .equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1051,104 +971,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.CustomClass parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.CustomClass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CustomClass prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A set of words or phrases that represents a common concept likely to appear
    * in your audio, for example a list of passenger ship names. CustomClass items
@@ -1157,23 +1070,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass)
       com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.CustomClass.class,
-              com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder()
@@ -1181,17 +1092,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1209,9 +1120,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
     }
 
     @java.lang.Override
@@ -1230,8 +1141,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1p1beta1.CustomClass result =
-          new com.google.cloud.speech.v1p1beta1.CustomClass(this);
+      com.google.cloud.speech.v1p1beta1.CustomClass result = new com.google.cloud.speech.v1p1beta1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1252,39 +1162,38 @@ public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1319,10 +1228,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getItemsFieldBuilder()
-                    : null;
+            itemsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getItemsFieldBuilder() : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1356,25 +1264,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1383,21 +1288,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1405,61 +1309,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the custom class.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1467,21 +1364,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object customClassId_ = ""; /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -1490,22 +1385,21 @@ public java.lang.String getCustomClassId() { } } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString getCustomClassIdBytes() { + public com.google.protobuf.ByteString + getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); customClassId_ = b; return b; } else { @@ -1513,90 +1407,75 @@ public com.google.protobuf.ByteString getCustomClassIdBytes() { } } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId(java.lang.String value) { + public Builder setCustomClassId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** - * - * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; - * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - items_ = - new java.util.ArrayList( - items_); + items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> - itemsBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> itemsBuilder_; /** - * - * *
      * A collection of class items.
      * 
@@ -1611,8 +1490,6 @@ public java.util.List g } } /** - * - * *
      * A collection of class items.
      * 
@@ -1627,8 +1504,6 @@ public int getItemsCount() { } } /** - * - * *
      * A collection of class items.
      * 
@@ -1643,8 +1518,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde } } /** - * - * *
      * A collection of class items.
      * 
@@ -1666,8 +1539,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1675,8 +1546,7 @@ public Builder setItems( * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ public Builder setItems( - int index, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder builderForValue) { + int index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); @@ -1687,8 +1557,6 @@ public Builder setItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1709,8 +1577,6 @@ public Builder addItems(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1732,8 +1598,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1752,8 +1616,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1761,8 +1623,7 @@ public Builder addItems( * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ public Builder addItems( - int index, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder builderForValue) { + int index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); @@ -1773,8 +1634,6 @@ public Builder addItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1782,11 +1641,11 @@ public Builder addItems( * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ public Builder addAllItems( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -1794,8 +1653,6 @@ public Builder addAllItems( return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1813,8 +1670,6 @@ public Builder clearItems() { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1832,8 +1687,6 @@ public Builder removeItems(int index) { return this; } /** - * - * *
      * A collection of class items.
      * 
@@ -1845,8 +1698,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB return getItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * A collection of class items.
      * 
@@ -1856,23 +1707,19 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { - return items_.get(index); - } else { + return items_.get(index); } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - public java.util.List< - ? extends com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -1880,8 +1727,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } } /** - * - * *
      * A collection of class items.
      * 
@@ -1889,12 +1734,10 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder() - .addBuilder(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
@@ -1903,43 +1746,37 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsB */ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsBuilder( int index) { - return getItemsFieldBuilder() - .addBuilder( - index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); } /** - * - * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( - items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); items_ = null; } return itemsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1949,12 +1786,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.CustomClass) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.CustomClass) private static final com.google.cloud.speech.v1p1beta1.CustomClass DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.CustomClass(); } @@ -1963,16 +1800,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1987,4 +1824,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java index 494362336..5a2383a9c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java @@ -1,93 +1,64 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface CustomClassOrBuilder - extends +public interface CustomClassOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the custom class.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The customClassId. */ java.lang.String getCustomClassId(); /** - * - * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; - * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString getCustomClassIdBytes(); + com.google.protobuf.ByteString + getCustomClassIdBytes(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List getItemsList(); + java.util.List + getItemsList(); /** - * - * *
    * A collection of class items.
    * 
@@ -96,8 +67,6 @@ public interface CustomClassOrBuilder */ com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int index); /** - * - * *
    * A collection of class items.
    * 
@@ -106,24 +75,21 @@ public interface CustomClassOrBuilder */ int getItemsCount(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** - * - * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( + int index); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java index ae7c77afe..8ee08778b 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `DeleteCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ -public final class DeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) DeleteCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteCustomClassRequest.newBuilder() to construct. private DeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteCustomClassRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private DeleteCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -128,10 +106,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -140,15 +115,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -159,18 +133,17 @@ public java.lang.String getName() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -179,7 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -215,15 +188,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = - (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -243,127 +216,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `DeleteCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.newBuilder() @@ -371,15 +334,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override @@ -410,8 +374,7 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = - new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -421,39 +384,38 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -461,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -486,8 +447,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -499,8 +459,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -511,16 +469,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -529,8 +485,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -541,17 +495,16 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -559,8 +512,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -571,25 +522,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -600,21 +547,16 @@ public Builder setName(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -625,26 +567,24 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -654,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) private static final com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(); } @@ -668,16 +608,16 @@ public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -692,4 +632,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java index 21121096e..477f46c0e 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface DeleteCustomClassRequestOrBuilder - extends +public interface DeleteCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -36,16 +18,11 @@ public interface DeleteCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -56,11 +33,9 @@ public interface DeleteCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java similarity index 66% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java index 757ab546e..998916bf5 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `DeletePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ -public final class DeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeletePhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) DeletePhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeletePhraseSetRequest.newBuilder() to construct. private DeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeletePhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeletePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeletePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeletePhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private DeletePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `DeletePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeletePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000..246c425ca --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface DeletePhraseSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java similarity index 66% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java index 189afa6c7..9d6b0d790 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `GetCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ -public final class GetCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) GetCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetCustomClassRequest.newBuilder() to construct. private GetCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetCustomClassRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,42 +73,35 @@ private GetCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -135,32 +110,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,7 +153,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,15 +178,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = - (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `GetCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) com.google.cloud.speech.v1p1beta1.GetCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.newBuilder() @@ -361,15 +324,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = - new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.GetCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.GetCustomClassRequest) private static final com.google.cloud.speech.v1p1beta1.GetCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000..721b97fda --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface GetCustomClassRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java index b9057852d..e479df042 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `GetPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ -public final class GetPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetPhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) GetPhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetPhraseSetRequest.newBuilder() to construct. private GetPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetPhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetPhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetPhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -128,10 +106,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -140,15 +115,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -159,18 +133,17 @@ public java.lang.String getName() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -179,7 +152,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,7 +163,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -215,15 +188,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -243,127 +216,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `GetPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) com.google.cloud.speech.v1p1beta1.GetPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.newBuilder() @@ -371,15 +334,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +353,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override @@ -410,8 +374,7 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -421,39 +384,38 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -461,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -486,8 +447,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -499,8 +459,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -511,16 +469,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -529,8 +485,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -541,17 +495,16 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -559,8 +512,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -571,25 +522,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -600,21 +547,16 @@ public Builder setName(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -625,26 +567,24 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -654,12 +594,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(); } @@ -668,16 +608,16 @@ public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -692,4 +632,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java index fb9fa55ec..b5ad6ae00 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface GetPhraseSetRequestOrBuilder - extends +public interface GetPhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -36,16 +18,11 @@ public interface GetPhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ java.lang.String getName(); /** - * - * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -56,11 +33,9 @@ public interface GetPhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java similarity index 73% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java index af0dbcbd0..6a67c3edf 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ -public final class ListCustomClassesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCustomClassesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) ListCustomClassesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCustomClassesRequest.newBuilder() to construct. private ListCustomClassesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCustomClassesRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListCustomClassesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCustomClassesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCustomClassesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListCustomClassesRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,33 +85,29 @@ private ListCustomClassesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -141,10 +118,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,15 +127,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -172,18 +145,17 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -204,7 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -215,8 +184,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -225,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -234,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -251,15 +216,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -268,7 +234,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -303,7 +269,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -316,17 +283,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = - (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -350,127 +319,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) com.google.cloud.speech.v1p1beta1.ListCustomClassesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.newBuilder() @@ -478,15 +437,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -500,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override @@ -521,8 +481,7 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = - new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -534,39 +493,38 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)other); } else { super.mergeFrom(other); return this; @@ -574,8 +532,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -606,8 +563,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -619,8 +575,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -631,16 +585,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -649,8 +601,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -661,17 +611,16 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -679,8 +628,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -691,25 +638,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -720,21 +663,16 @@ public Builder setParent(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -745,28 +683,24 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -775,7 +709,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -783,8 +716,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -793,19 +724,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -814,11 +742,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -826,8 +753,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -836,13 +761,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -851,8 +776,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -861,14 +784,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -876,8 +800,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -886,22 +808,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -910,18 +830,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -930,23 +847,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -956,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) private static final com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(); } @@ -970,16 +887,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java index de9020900..e83c2e601 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListCustomClassesRequestOrBuilder - extends +public interface ListCustomClassesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -36,16 +18,11 @@ public interface ListCustomClassesRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -56,17 +33,13 @@ public interface ListCustomClassesRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -75,14 +48,11 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -91,13 +61,10 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -106,8 +73,8 @@ public interface ListCustomClassesRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java index de3512d70..ebef3078c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message returned to the client by the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ -public final class ListCustomClassesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListCustomClassesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) ListCustomClassesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListCustomClassesResponse.newBuilder() to construct. private ListCustomClassesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListCustomClassesResponse() { customClasses_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListCustomClassesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListCustomClassesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListCustomClassesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListCustomClassesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - customClasses_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - customClasses_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + customClasses_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListCustomClassesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -114,27 +94,22 @@ private ListCustomClassesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1; private java.util.List customClasses_; /** - * - * *
    * The custom classes.
    * 
@@ -146,8 +121,6 @@ public java.util.List getCustomCl return customClasses_; } /** - * - * *
    * The custom classes.
    * 
@@ -155,13 +128,11 @@ public java.util.List getCustomCl * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCustomClassesOrBuilderList() { return customClasses_; } /** - * - * *
    * The custom classes.
    * 
@@ -173,8 +144,6 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** - * - * *
    * The custom classes.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) return customClasses_.get(index); } /** - * - * *
    * The custom classes.
    * 
@@ -203,15 +170,12 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -220,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -252,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < customClasses_.size(); i++) { output.writeMessage(1, customClasses_.get(i)); } @@ -281,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < customClasses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customClasses_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, customClasses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -294,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = - (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; - if (!getCustomClassesList().equals(other.getCustomClassesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getCustomClassesList() + .equals(other.getCustomClassesList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message returned to the client by the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.cloud.speech.v1p1beta1.ListCustomClassesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.newBuilder() @@ -455,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getCustomClassesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override @@ -502,8 +458,7 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = - new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); int from_bitField0_ = bitField0_; if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -523,39 +478,38 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)other); } else { super.mergeFrom(other); return this; @@ -563,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other) { - if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.getDefaultInstance()) return this; if (customClassesBuilder_ == null) { if (!other.customClasses_.isEmpty()) { if (customClasses_.isEmpty()) { @@ -583,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListCustomClassesResp customClassesBuilder_ = null; customClasses_ = other.customClasses_; bitField0_ = (bitField0_ & ~0x00000001); - customClassesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCustomClassesFieldBuilder() - : null; + customClassesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCustomClassesFieldBuilder() : null; } else { customClassesBuilder_.addAllMessages(other.customClasses_); } @@ -615,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List customClasses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - customClasses_ = - new java.util.ArrayList(customClasses_); + customClasses_ = new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> - customClassesBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassesBuilder_; /** - * - * *
      * The custom classes.
      * 
@@ -662,8 +605,6 @@ public java.util.List getCustomCl } } /** - * - * *
      * The custom classes.
      * 
@@ -678,8 +619,6 @@ public int getCustomClassesCount() { } } /** - * - * *
      * The custom classes.
      * 
@@ -694,8 +633,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) } } /** - * - * *
      * The custom classes.
      * 
@@ -717,8 +654,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -737,8 +672,6 @@ public Builder setCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -759,8 +692,6 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** - * - * *
      * The custom classes.
      * 
@@ -782,8 +713,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -802,8 +731,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -822,8 +749,6 @@ public Builder addCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -834,7 +759,8 @@ public Builder addAllCustomClasses( java.lang.Iterable values) { if (customClassesBuilder_ == null) { ensureCustomClassesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customClasses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, customClasses_); onChanged(); } else { customClassesBuilder_.addAllMessages(values); @@ -842,8 +768,6 @@ public Builder addAllCustomClasses( return this; } /** - * - * *
      * The custom classes.
      * 
@@ -861,8 +785,6 @@ public Builder clearCustomClasses() { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -880,8 +802,6 @@ public Builder removeCustomClasses(int index) { return this; } /** - * - * *
      * The custom classes.
      * 
@@ -893,8 +813,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui return getCustomClassesFieldBuilder().getBuilder(index); } /** - * - * *
      * The custom classes.
      * 
@@ -904,22 +822,19 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder( int index) { if (customClassesBuilder_ == null) { - return customClasses_.get(index); - } else { + return customClasses_.get(index); } else { return customClassesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesOrBuilderList() { + public java.util.List + getCustomClassesOrBuilderList() { if (customClassesBuilder_ != null) { return customClassesBuilder_.getMessageOrBuilderList(); } else { @@ -927,8 +842,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } } /** - * - * *
      * The custom classes.
      * 
@@ -936,12 +849,10 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBuilder() { - return getCustomClassesFieldBuilder() - .addBuilder(com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder().addBuilder( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()); } /** - * - * *
      * The custom classes.
      * 
@@ -950,34 +861,26 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBuilder( int index) { - return getCustomClassesFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()); } /** - * - * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesBuilderList() { + public java.util.List + getCustomClassesBuilderList() { return getCustomClassesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> getCustomClassesFieldBuilder() { if (customClassesBuilder_ == null) { - customClassesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( + customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( customClasses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -989,21 +892,19 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1012,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1035,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1109,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) private static final com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(); } @@ -1123,16 +1016,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1147,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java index ba426471d..bb845e981 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListCustomClassesResponseOrBuilder - extends +public interface ListCustomClassesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List getCustomClassesList(); + java.util.List + getCustomClassesList(); /** - * - * *
    * The custom classes.
    * 
@@ -44,8 +25,6 @@ public interface ListCustomClassesResponseOrBuilder */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index); /** - * - * *
    * The custom classes.
    * 
@@ -54,51 +33,43 @@ public interface ListCustomClassesResponseOrBuilder */ int getCustomClassesCount(); /** - * - * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** - * - * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index); + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java similarity index 73% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java index 4201268c4..57facef81 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ -public final class ListPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) ListPhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPhraseSetRequest.newBuilder() to construct. private ListPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPhraseSetRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListPhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListPhraseSetRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,33 +85,29 @@ private ListPhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -141,10 +118,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -153,15 +127,14 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -172,18 +145,17 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -194,8 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -204,7 +174,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -215,8 +184,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -225,7 +192,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -234,15 +200,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -251,15 +216,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -268,7 +234,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,7 +245,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -303,7 +269,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -316,17 +283,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -350,127 +319,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) com.google.cloud.speech.v1p1beta1.ListPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.newBuilder() @@ -478,15 +437,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -500,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override @@ -521,8 +481,7 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -534,39 +493,38 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -574,8 +532,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -606,8 +563,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -619,8 +575,6 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -631,16 +585,14 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -649,8 +601,6 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -661,17 +611,16 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -679,8 +628,6 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -691,25 +638,21 @@ public com.google.protobuf.ByteString getParentBytes() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -720,21 +663,16 @@ public Builder setParent(java.lang.String value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -745,28 +683,24 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -775,7 +709,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -783,8 +716,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -793,19 +724,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -814,11 +742,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -826,8 +753,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -836,13 +761,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -851,8 +776,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -861,14 +784,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -876,8 +800,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -886,22 +808,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -910,18 +830,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -930,23 +847,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -956,12 +873,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(); } @@ -970,16 +887,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -994,4 +911,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java index 51f535258..1f93fa365 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListPhraseSetRequestOrBuilder - extends +public interface ListPhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -36,16 +18,11 @@ public interface ListPhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -56,17 +33,13 @@ public interface ListPhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -75,14 +48,11 @@ public interface ListPhraseSetRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -91,13 +61,10 @@ public interface ListPhraseSetRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -106,8 +73,8 @@ public interface ListPhraseSetRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java similarity index 73% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java index 224b4ffad..5a8f05764 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message returned to the client by the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ -public final class ListPhraseSetResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListPhraseSetResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) ListPhraseSetResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListPhraseSetResponse.newBuilder() to construct. private ListPhraseSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListPhraseSetResponse() { phraseSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListPhraseSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListPhraseSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListPhraseSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListPhraseSetResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phraseSets_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + phraseSets_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListPhraseSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -114,27 +94,22 @@ private ListPhraseSetResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** - * - * *
    * The phrase set.
    * 
@@ -146,8 +121,6 @@ public java.util.List getPhraseSets return phraseSets_; } /** - * - * *
    * The phrase set.
    * 
@@ -155,13 +128,11 @@ public java.util.List getPhraseSets * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** - * - * *
    * The phrase set.
    * 
@@ -173,8 +144,6 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** - * - * *
    * The phrase set.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** - * - * *
    * The phrase set.
    * 
@@ -195,22 +162,20 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,30 +184,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -251,7 +216,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,7 +227,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < phraseSets_.size(); i++) { output.writeMessage(1, phraseSets_.get(i)); } @@ -280,7 +245,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < phraseSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, phraseSets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, phraseSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,16 +259,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = - (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; - if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getPhraseSetsList() + .equals(other.getPhraseSetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message returned to the client by the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.cloud.speech.v1p1beta1.ListPhraseSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.newBuilder() @@ -454,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override @@ -501,8 +458,7 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = - new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -522,39 +478,38 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)other); } else { super.mergeFrom(other); return this; @@ -562,8 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other) { - if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.getDefaultInstance()) return this; if (phraseSetsBuilder_ == null) { if (!other.phraseSets_.isEmpty()) { if (phraseSets_.isEmpty()) { @@ -582,10 +536,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse phraseSetsBuilder_ = null; phraseSets_ = other.phraseSets_; bitField0_ = (bitField0_ & ~0x00000001); - phraseSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPhraseSetsFieldBuilder() - : null; + phraseSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPhraseSetsFieldBuilder() : null; } else { phraseSetsBuilder_.addAllMessages(other.phraseSets_); } @@ -614,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -624,29 +576,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = - new java.util.ArrayList(phraseSets_); + phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> - phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; /** - * - * *
      * The phrase set.
      * 
@@ -661,8 +605,6 @@ public java.util.List getPhraseSets } } /** - * - * *
      * The phrase set.
      * 
@@ -677,8 +619,6 @@ public int getPhraseSetsCount() { } } /** - * - * *
      * The phrase set.
      * 
@@ -693,15 +633,14 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { } } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public Builder setPhraseSets(int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) { + public Builder setPhraseSets( + int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,8 +654,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase return this; } /** - * - * *
      * The phrase set.
      * 
@@ -735,8 +672,6 @@ public Builder setPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -757,15 +692,14 @@ public Builder addPhraseSets(com.google.cloud.speech.v1p1beta1.PhraseSet value) return this; } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets(int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) { + public Builder addPhraseSets( + int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -779,8 +713,6 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase return this; } /** - * - * *
      * The phrase set.
      * 
@@ -799,8 +731,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -819,8 +749,6 @@ public Builder addPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -831,7 +759,8 @@ public Builder addAllPhraseSets( java.lang.Iterable values) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phraseSets_); onChanged(); } else { phraseSetsBuilder_.addAllMessages(values); @@ -839,8 +768,6 @@ public Builder addAllPhraseSets( return this; } /** - * - * *
      * The phrase set.
      * 
@@ -858,8 +785,6 @@ public Builder clearPhraseSets() { return this; } /** - * - * *
      * The phrase set.
      * 
@@ -877,44 +802,39 @@ public Builder removePhraseSets(int index) { return this; } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder( + int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); - } else { + return phraseSets_.get(index); } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -922,8 +842,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild } } /** - * - * *
      * The phrase set.
      * 
@@ -931,48 +849,42 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder() - .addBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()); + return getPhraseSetsFieldBuilder().addBuilder( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()); } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(int index) { - return getPhraseSetsFieldBuilder() - .addBuilder(index, com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder( + int index) { + return getPhraseSetsFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()); } /** - * - * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsBuilderList() { + public java.util.List + getPhraseSetsBuilderList() { return getPhraseSetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( - phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( + phraseSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phraseSets_ = null; } return phraseSetsBuilder_; @@ -980,21 +892,19 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1003,22 +913,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1026,71 +935,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1100,12 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) private static final com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(); } @@ -1114,16 +1016,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1138,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java index 319d29f4f..7a24d1b77 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListPhraseSetResponseOrBuilder - extends +public interface ListPhraseSetResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List getPhraseSetsList(); + java.util.List + getPhraseSetsList(); /** - * - * *
    * The phrase set.
    * 
@@ -44,8 +25,6 @@ public interface ListPhraseSetResponseOrBuilder */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index); /** - * - * *
    * The phrase set.
    * 
@@ -54,51 +33,43 @@ public interface ListPhraseSetResponseOrBuilder */ int getPhraseSetsCount(); /** - * - * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** - * - * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( + int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java similarity index 68% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index ba63fc96d..5dc34a20e 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,72 +55,63 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              progressPercent_ = input.readInt32();
-              break;
+          case 8: {
+
+            progressPercent_ = input.readInt32();
+            break;
+          }
+          case 18: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (startTime_ != null) {
+              subBuilder = startTime_.toBuilder();
             }
-          case 18:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (startTime_ != null) {
-                subBuilder = startTime_.toBuilder();
-              }
-              startTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(startTime_);
-                startTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(startTime_);
+              startTime_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (lastUpdateTime_ != null) {
+              subBuilder = lastUpdateTime_.toBuilder();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (lastUpdateTime_ != null) {
-                subBuilder = lastUpdateTime_.toBuilder();
-              }
-              lastUpdateTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(lastUpdateTime_);
-                lastUpdateTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(lastUpdateTime_);
+              lastUpdateTime_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              uri_ = s;
-              break;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            uri_ = s;
+            break;
+          }
+          case 42: {
+            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
             }
-          case 42:
-            {
-              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -145,40 +119,35 @@ private LongRunningRecognizeMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
-   *
-   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -189,14 +158,11 @@ public int getProgressPercent() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -204,14 +170,11 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ @java.lang.Override @@ -219,8 +182,6 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** - * - * *
    * Time when the request was received.
    * 
@@ -235,14 +196,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp lastUpdateTime_; /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -250,25 +208,18 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } /** - * - * *
    * Time of the most recent processing update.
    * 
@@ -283,15 +234,12 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ @java.lang.Override @@ -300,30 +248,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -334,16 +282,11 @@ public com.google.protobuf.ByteString getUriBytes() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -351,43 +294,30 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -399,7 +329,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -425,19 +356,23 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, progressPercent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getStartTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -447,27 +382,31 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = - (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() != other.getProgressPercent()) return false; + if (getProgressPercent() + != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime() + .equals(other.getLastUpdateTime())) return false; } - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -502,104 +441,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes the progress of a long-running `LongRunningRecognize` call. It is
    * included in the `metadata` field of the `Operation` returned by the
@@ -608,23 +539,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.newBuilder()
@@ -632,15 +561,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -670,14 +600,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.getDefaultInstance();
     }
 
@@ -692,8 +621,7 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result =
-          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -719,39 +647,38 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -759,9 +686,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other) {
-      if (other
-          == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.getDefaultInstance()) return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -797,9 +722,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -809,17 +732,14 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_;
+    private int progressPercent_ ;
     /**
-     *
-     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -827,38 +747,32 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** - * - * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; - * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -866,33 +780,24 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - startTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -903,8 +808,6 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** - * - * *
      * Time when the request was received.
      * 
@@ -925,15 +828,14 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -944,8 +846,6 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -956,7 +856,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -968,8 +868,6 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -988,8 +886,6 @@ public Builder clearStartTime() { return this; } /** - * - * *
      * Time when the request was received.
      * 
@@ -997,13 +893,11 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when the request was received.
      * 
@@ -1014,12 +908,11 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** - * - * *
      * Time when the request was received.
      * 
@@ -1027,17 +920,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStartTime(), getParentForChildren(), isClean()); + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); startTime_ = null; } return startTimeBuilder_; @@ -1045,47 +935,34 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1106,15 +983,14 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -1125,8 +1001,6 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderFo return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1137,9 +1011,7 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); } else { lastUpdateTime_ = value; } @@ -1151,8 +1023,6 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1171,8 +1041,6 @@ public Builder clearLastUpdateTime() { return this; } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1180,13 +1048,11 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1197,14 +1063,11 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : lastUpdateTime_; + return lastUpdateTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; } } /** - * - * *
      * Time of the most recent processing update.
      * 
@@ -1212,17 +1075,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), getParentForChildren(), isClean()); + lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), + getParentForChildren(), + isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; @@ -1230,21 +1090,19 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { private java.lang.Object uri_ = ""; /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -1253,22 +1111,21 @@ public java.lang.String getUri() { } } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); uri_ = b; return b; } else { @@ -1276,64 +1133,57 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** - * - * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -1341,58 +1191,39 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1408,15 +1239,11 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setOutputConfig( com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder builderForValue) { @@ -1430,24 +1257,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder mergeOutputConfig( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1459,15 +1279,11 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1481,73 +1297,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1557,32 +1355,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata - getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1594,8 +1390,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 0016ab958..2e4b54cbc 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,69 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeMetadataOrBuilder - extends +public interface LongRunningRecognizeMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; - * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** - * - * *
    * Time when the request was received.
    * 
@@ -73,32 +46,24 @@ public interface LongRunningRecognizeMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** - * - * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; - * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** - * - * *
    * Time of the most recent processing update.
    * 
@@ -108,70 +73,51 @@ public interface LongRunningRecognizeMetadataOrBuilder com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java similarity index 60% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index 37f2a6aad..74993a44d 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private LongRunningRecognizeRequest() {}
+  private LongRunningRecognizeRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,64 +53,52 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-              if (config_ != null) {
-                subBuilder = config_.toBuilder();
-              }
-              config_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(config_);
-                config_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+            if (config_ != null) {
+              subBuilder = config_.toBuilder();
+            }
+            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(config_);
+              config_ = subBuilder.buildPartial();
             }
-          case 18:
-            {
-              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
-              if (audio_ != null) {
-                subBuilder = audio_.toBuilder();
-              }
-              audio_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(audio_);
-                audio_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
+            if (audio_ != null) {
+              subBuilder = audio_.toBuilder();
+            }
+            audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(audio_);
+              audio_ = subBuilder.buildPartial();
             }
-          case 34:
-            {
-              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
+            }
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -134,42 +106,35 @@ private LongRunningRecognizeRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
-   *
-   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -177,36 +142,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -216,16 +170,11 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ @java.lang.Override @@ -233,34 +182,23 @@ public boolean hasAudio() { return audio_ != null; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -270,16 +208,11 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -287,43 +220,30 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,7 +255,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -355,13 +276,16 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -371,25 +295,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = - (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -420,104 +346,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The top-level message sent by the client for the `LongRunningRecognize`
    * method.
@@ -525,23 +443,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.newBuilder()
@@ -549,15 +465,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -583,14 +500,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance();
     }
 
@@ -605,8 +521,7 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result =
-          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -630,39 +545,38 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartia
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -670,9 +584,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other) {
-      if (other
-          == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance()) return this;
       if (other.hasConfig()) {
         mergeConfig(other.getConfig());
       }
@@ -701,9 +613,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -715,61 +625,42 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -785,16 +676,12 @@ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig val return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig( com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder builderForValue) { @@ -808,24 +695,18 @@ public Builder setConfig( return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -837,16 +718,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -860,67 +737,51 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -928,58 +789,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> - audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } else { return audioBuilder_.getMessage(); } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -995,15 +837,11 @@ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio( com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder builderForValue) { @@ -1017,23 +855,17 @@ public Builder setAudio( return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); } else { audio_ = value; } @@ -1045,15 +877,11 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -1067,64 +895,48 @@ public Builder clearAudio() { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), getParentForChildren(), isClean()); + audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), + getParentForChildren(), + isClean()); audio_ = null; } return audioBuilder_; @@ -1132,58 +944,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1199,15 +992,11 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setOutputConfig( com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder builderForValue) { @@ -1221,24 +1010,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeOutputConfig( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1250,15 +1032,11 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1272,73 +1050,55 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1348,13 +1108,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(); } @@ -1363,16 +1122,16 @@ public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1387,4 +1146,6 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index 02d21f70f..5a5a7bb3a 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java @@ -1,151 +1,93 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeRequestOrBuilder - extends +public interface LongRunningRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ boolean hasAudio(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java similarity index 73% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java index bd0db99e0..ef5d878c5 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -31,31 +14,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LongRunningRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,73 +58,61 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
+            }
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-              if (outputConfig_ != null) {
-                subBuilder = outputConfig_.toBuilder();
-              }
-              outputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputConfig_);
-                outputConfig_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 50: {
+            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+            if (outputConfig_ != null) {
+              subBuilder = outputConfig_.toBuilder();
+            }
+            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputConfig_);
+              outputConfig_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (outputError_ != null) {
-                subBuilder = outputError_.toBuilder();
-              }
-              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(outputError_);
-                outputError_ = subBuilder.buildPartial();
-              }
 
-              break;
+            break;
+          }
+          case 58: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (outputError_ != null) {
+              subBuilder = outputError_.toBuilder();
+            }
+            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(outputError_);
+              outputError_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -149,7 +120,8 @@ private LongRunningRecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -158,27 +130,22 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -187,13 +154,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getResultsList() {
+  public java.util.List getResultsList() {
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -202,14 +166,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+  public java.util.List 
       getResultsOrBuilderList() {
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -222,8 +183,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -236,8 +195,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
     return results_.get(index);
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -254,14 +211,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
   public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Duration totalBilledTime_;
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -269,25 +223,18 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -302,14 +249,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -317,25 +261,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Original output config if present in the request.
    * 
@@ -343,22 +280,18 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig( * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ @java.lang.Override @@ -366,14 +299,11 @@ public boolean hasOutputError() { return outputError_ != null; } /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ @java.lang.Override @@ -381,8 +311,6 @@ public com.google.rpc.Status getOutputError() { return outputError_ == null ? com.google.rpc.Status.getDefaultInstance() : outputError_; } /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
@@ -395,7 +323,6 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -407,7 +334,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } @@ -430,16 +358,20 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -449,26 +381,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = - (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime() + .equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig().equals(other.getOutputConfig())) return false; + if (!getOutputConfig() + .equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError().equals(other.getOutputError())) return false; + if (!getOutputError() + .equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -503,104 +438,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -611,23 +538,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.newBuilder()
@@ -635,17 +560,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -677,14 +602,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.getDefaultInstance();
     }
 
@@ -699,8 +623,7 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result =
-          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -734,39 +657,38 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildParti
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -774,9 +696,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other) {
-      if (other
-          == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.getDefaultInstance()) return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -795,10 +715,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeR
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -832,9 +751,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -843,30 +760,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -874,8 +782,7 @@ private void ensureResultsIsMutable() {
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsList() {
+    public java.util.List getResultsList() {
       if (resultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(results_);
       } else {
@@ -883,8 +790,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -900,8 +805,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -917,8 +820,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -941,8 +842,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -951,8 +850,7 @@ public Builder setResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder setResults(
-        int index,
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.set(index, builderForValue.build());
@@ -963,8 +861,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -986,8 +882,6 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1010,8 +904,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1031,8 +923,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1041,8 +931,7 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder addResults(
-        int index,
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.add(index, builderForValue.build());
@@ -1053,8 +942,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1063,11 +950,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder addAllResults(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -1075,8 +962,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1095,8 +980,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1115,8 +998,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1129,8 +1010,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder getResu
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1141,14 +1020,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder getResu
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);
-      } else {
+        return results_.get(index);  } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1156,9 +1032,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List<
-            ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1166,8 +1041,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1176,13 +1049,10 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1192,14 +1062,10 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
      */
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index,
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1207,23 +1073,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1231,47 +1094,34 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        totalBilledTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1292,15 +1142,14 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1311,8 +1160,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1323,9 +1170,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); } else { totalBilledTime_ = value; } @@ -1337,8 +1182,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1357,8 +1200,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1366,13 +1207,11 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1383,14 +1222,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { if (totalBilledTimeBuilder_ != null) { return totalBilledTimeBuilder_.getMessageOrBuilder(); } else { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1398,17 +1234,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), getParentForChildren(), isClean()); + totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), + getParentForChildren(), + isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; @@ -1416,47 +1249,34 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1477,8 +1297,6 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1497,22 +1315,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public Builder mergeOutputConfig( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1524,8 +1337,6 @@ public Builder mergeOutputConfig( return this; } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1544,42 +1355,33 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder - getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder - getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Original output config if present in the request.
      * 
@@ -1587,17 +1389,14 @@ public Builder clearOutputConfig() { * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1605,31 +1404,24 @@ public Builder clearOutputConfig() { private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1640,8 +1432,6 @@ public com.google.rpc.Status getOutputError() { } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1662,15 +1452,14 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError( + com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1681,8 +1470,6 @@ public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1693,7 +1480,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1705,8 +1492,6 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1725,8 +1510,6 @@ public Builder clearOutputError() { return this; } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1734,13 +1517,11 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1751,12 +1532,11 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { if (outputErrorBuilder_ != null) { return outputErrorBuilder_.getMessageOrBuilder(); } else { - return outputError_ == null ? com.google.rpc.Status.getDefaultInstance() : outputError_; + return outputError_ == null ? + com.google.rpc.Status.getDefaultInstance() : outputError_; } } /** - * - * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1764,22 +1544,21 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - getOutputError(), getParentForChildren(), isClean()); + outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getOutputError(), + getParentForChildren(), + isClean()); outputError_ = null; } return outputErrorBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1789,32 +1568,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse - getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1826,8 +1603,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java index e5af48096..f6b5867ce 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeResponseOrBuilder - extends +public interface LongRunningRecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -33,10 +15,9 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -46,8 +27,6 @@ public interface LongRunningRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -57,8 +36,6 @@ public interface LongRunningRecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,11 +43,9 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -78,35 +53,28 @@ public interface LongRunningRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -116,32 +84,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; - * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** - * - * *
    * Original output config if present in the request.
    * 
@@ -151,32 +111,24 @@ public interface LongRunningRecognizeResponseOrBuilder com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; - * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** - * - * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java similarity index 77% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java index ecdcf17bb..4e71340fc 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
  */
-public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class PhraseSet extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet)
     PhraseSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -45,15 +27,16 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,38 +56,33 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              name_ = s;
-              break;
-            }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                phrases_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              phrases_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
-                      extensionRegistry));
-              break;
-            }
-          case 37:
-            {
-              boost_ = input.readFloat();
-              break;
+            name_ = s;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              phrases_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            phrases_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(), extensionRegistry));
+            break;
+          }
+          case 37: {
+
+            boost_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -112,7 +90,8 @@ private PhraseSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -121,55 +100,44 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.PhraseSet.class,
-            com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder
-      extends
+  public interface PhraseOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ java.lang.String getValue(); /** - * - * *
      * The phrase itself.
      * 
* * string value = 1; - * * @return The bytes for value. */ - com.google.protobuf.ByteString getValueBytes(); + com.google.protobuf.ByteString + getValueBytes(); /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -183,14 +151,11 @@ public interface PhraseOrBuilder
      * 
* * float boost = 2; - * * @return The boost. */ float getBoost(); } /** - * - * *
    * A phrases containing words and phrase "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -219,31 +184,31 @@ public interface PhraseOrBuilder
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
-      implements
+  public static final class Phrase extends
+      com.google.protobuf.GeneratedMessageV3 implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       PhraseOrBuilder {
-    private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
-
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(
+        UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet
+    getUnknownFields() {
       return this.unknownFields;
     }
-
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -262,25 +227,24 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
 
-                value_ = s;
-                break;
-              }
-            case 21:
-              {
-                boost_ = input.readFloat();
-                break;
-              }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+              value_ = s;
+              break;
+            }
+            case 21: {
+
+              boost_ = input.readFloat();
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -288,39 +252,34 @@ private Phrase(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(
+            e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
-     *
-     *
      * 
      * The phrase itself.
      * 
* * string value = 1; - * * @return The value. */ @java.lang.Override @@ -329,29 +288,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** - * - * *
      * The phrase itself.
      * 
* * string value = 1; - * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -362,8 +321,6 @@ public com.google.protobuf.ByteString getValueBytes() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** - * - * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -377,7 +334,6 @@ public com.google.protobuf.ByteString getValueBytes() {
      * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -386,7 +342,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -398,7 +353,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -418,7 +374,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -428,17 +385,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = - (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; - if (!getValue().equals(other.getValue())) return false; + if (!getValue() + .equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -453,100 +411,95 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -556,8 +509,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A phrases containing words and phrase "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -586,24 +537,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
      */
-    public static final class Builder
-        extends com.google.protobuf.GeneratedMessageV3.Builder
-        implements
+    public static final class Builder extends
+        com.google.protobuf.GeneratedMessageV3.Builder implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
         com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.newBuilder()
@@ -611,15 +559,16 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(
+          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
-
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+        if (com.google.protobuf.GeneratedMessageV3
+                .alwaysUseFieldBuilders) {
+        }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -631,9 +580,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
@@ -652,8 +601,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result =
-            new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result = new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -664,41 +612,38 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
-
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.setField(field, value);
       }
-
       @java.lang.Override
-      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(
+          com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
-
       @java.lang.Override
-      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(
+          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
-
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index,
-          java.lang.Object value) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) other);
+          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -706,8 +651,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other) {
-        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()) return this;
         if (!other.getValue().isEmpty()) {
           value_ = other.value_;
           onChanged();
@@ -734,8 +678,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -747,20 +690,18 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
-       *
-       *
        * 
        * The phrase itself.
        * 
* * string value = 1; - * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -769,21 +710,20 @@ public java.lang.String getValue() { } } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return The bytes for value. */ - public com.google.protobuf.ByteString getValueBytes() { + public com.google.protobuf.ByteString + getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); value_ = b; return b; } else { @@ -791,70 +731,61 @@ public com.google.protobuf.ByteString getValueBytes() { } } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue(java.lang.String value) { + public Builder setValue( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** - * - * *
        * The phrase itself.
        * 
* * string value = 1; - * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes(com.google.protobuf.ByteString value) { + public Builder setValueBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_; + private float boost_ ; /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -868,7 +799,6 @@ public Builder setValueBytes(com.google.protobuf.ByteString value) {
        * 
* * float boost = 2; - * * @return The boost. */ @java.lang.Override @@ -876,8 +806,6 @@ public float getBoost() { return boost_; } /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -891,19 +819,16 @@ public float getBoost() {
        * 
* * float boost = 2; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -917,16 +842,14 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -939,12 +862,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.PhraseSet.Phrase) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.PhraseSet.Phrase) private static final com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(); } @@ -953,16 +876,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -977,19 +900,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -998,29 +919,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1031,8 +952,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** - * - * *
    * A list of word and phrases.
    * 
@@ -1044,8 +963,6 @@ public java.util.List getPhr return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1053,13 +970,11 @@ public java.util.List getPhr * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ @java.lang.Override - public java.util.List + public java.util.List getPhrasesOrBuilderList() { return phrases_; } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1071,8 +986,6 @@ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1084,8 +997,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) return phrases_.get(index); } /** - * - * *
    * A list of word and phrases.
    * 
@@ -1101,8 +1012,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1116,7 +1025,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1125,7 +1033,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1137,7 +1044,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1160,10 +1068,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < phrases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, phrases_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, phrases_.get(i)); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1173,18 +1083,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet other = - (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet other = (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; - if (!getName().equals(other.getName())) return false; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1203,110 +1115,104 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1314,23 +1220,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet)
       com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.class,
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder()
@@ -1338,17 +1242,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1366,9 +1270,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
@@ -1387,8 +1291,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
-      com.google.cloud.speech.v1p1beta1.PhraseSet result =
-          new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
+      com.google.cloud.speech.v1p1beta1.PhraseSet result = new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (phrasesBuilder_ == null) {
@@ -1409,39 +1312,38 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1472,10 +1374,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getPhrasesFieldBuilder()
-                    : null;
+            phrasesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getPhrasesFieldBuilder() : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1512,25 +1413,22 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1539,21 +1437,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1561,86 +1458,72 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The resource name of the phrase set.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phrases_ = - new java.util.ArrayList(phrases_); + phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> - phrasesBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; /** - * - * *
      * A list of word and phrases.
      * 
@@ -1655,8 +1538,6 @@ public java.util.List getPhr } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1671,8 +1552,6 @@ public int getPhrasesCount() { } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1687,15 +1566,14 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) } } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public Builder setPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase value) { + public Builder setPhrases( + int index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1709,8 +1587,6 @@ public Builder setPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1729,8 +1605,6 @@ public Builder setPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1751,15 +1625,14 @@ public Builder addPhrases(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase val return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public Builder addPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase value) { + public Builder addPhrases( + int index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1773,8 +1646,6 @@ public Builder addPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1793,8 +1664,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1813,8 +1682,6 @@ public Builder addPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1825,7 +1692,8 @@ public Builder addAllPhrases( java.lang.Iterable values) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phrases_); onChanged(); } else { phrasesBuilder_.addAllMessages(values); @@ -1833,8 +1701,6 @@ public Builder addAllPhrases( return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1852,8 +1718,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1871,20 +1735,17 @@ public Builder removePhrases(int index) { return this; } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder getPhrasesBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder getPhrasesBuilder( + int index) { return getPhrasesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1894,22 +1755,19 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder getPhrasesBuil public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( int index) { if (phrasesBuilder_ == null) { - return phrases_.get(index); - } else { + return phrases_.get(index); } else { return phrasesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesOrBuilderList() { + public java.util.List + getPhrasesOrBuilderList() { if (phrasesBuilder_ != null) { return phrasesBuilder_.getMessageOrBuilderList(); } else { @@ -1917,8 +1775,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB } } /** - * - * *
      * A list of word and phrases.
      * 
@@ -1926,58 +1782,49 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder() - .addBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder().addBuilder( + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { - return getPhrasesFieldBuilder() - .addBuilder( - index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder( + int index) { + return getPhrasesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** - * - * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( - phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( + phrases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_; + private float boost_ ; /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1991,7 +1838,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuil
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -1999,8 +1845,6 @@ public float getBoost() { return boost_; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -2014,19 +1858,16 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -2040,18 +1881,17 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2061,12 +1901,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.PhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.PhraseSet) private static final com.google.cloud.speech.v1p1beta1.PhraseSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.PhraseSet(); } @@ -2075,16 +1915,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2099,4 +1939,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java similarity index 74% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java index 55f1127b4..1ed61ed52 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java @@ -1,66 +1,42 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface PhraseSetOrBuilder - extends +public interface PhraseSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the phrase set.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of word and phrases.
    * 
@@ -69,8 +45,6 @@ public interface PhraseSetOrBuilder */ com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index); /** - * - * *
    * A list of word and phrases.
    * 
@@ -79,30 +53,25 @@ public interface PhraseSetOrBuilder */ int getPhrasesCount(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** - * - * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( + int index); /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -116,7 +85,6 @@ public interface PhraseSetOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index 4f6bb351f..fe2a09446 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -30,29 +13,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
  */
-public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognitionAudio extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private RecognitionAudio() {}
+  private RecognitionAudio() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,26 +55,24 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              audioSource_ = input.readBytes();
-              audioSourceCase_ = 1;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              audioSourceCase_ = 2;
-              audioSource_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 10: {
+            audioSource_ = input.readBytes();
+            audioSourceCase_ = 1;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
+            audioSourceCase_ = 2;
+            audioSource_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -98,40 +80,35 @@ private RecognitionAudio(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
-
   public enum AudioSourceCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
-
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -147,30 +124,25 @@ public static AudioSourceCase valueOf(int value) {
 
     public static AudioSourceCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return CONTENT;
-        case 2:
-          return URI;
-        case 0:
-          return AUDIOSOURCE_NOT_SET;
-        default:
-          return null;
+        case 1: return CONTENT;
+        case 2: return URI;
+        case 0: return AUDIOSOURCE_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public AudioSourceCase getAudioSourceCase() {
-    return AudioSourceCase.forNumber(audioSourceCase_);
+  public AudioSourceCase
+  getAudioSourceCase() {
+    return AudioSourceCase.forNumber(
+        audioSourceCase_);
   }
 
   public static final int CONTENT_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -178,7 +150,6 @@ public AudioSourceCase getAudioSourceCase() {
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ @java.lang.Override @@ -186,8 +157,6 @@ public boolean hasContent() { return audioSourceCase_ == 1; } /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -195,7 +164,6 @@ public boolean hasContent() {
    * 
* * bytes content = 1; - * * @return The content. */ @java.lang.Override @@ -208,8 +176,6 @@ public com.google.protobuf.ByteString getContent() { public static final int URI_FIELD_NUMBER = 2; /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -221,15 +187,12 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * string uri = 2; - * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 2; } /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -241,7 +204,6 @@ public boolean hasUri() {
    * 
* * string uri = 2; - * * @return The uri. */ public java.lang.String getUri() { @@ -252,7 +214,8 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -261,8 +224,6 @@ public java.lang.String getUri() { } } /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -274,17 +235,18 @@ public java.lang.String getUri() {
    * 
* * string uri = 2; - * * @return The bytes for uri. */ - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -295,7 +257,6 @@ public com.google.protobuf.ByteString getUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,9 +268,11 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (audioSourceCase_ == 1) { - output.writeBytes(1, (com.google.protobuf.ByteString) audioSource_); + output.writeBytes( + 1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audioSource_); @@ -324,9 +287,9 @@ public int getSerializedSize() { size = 0; if (audioSourceCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 1, (com.google.protobuf.ByteString) audioSource_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audioSource_); @@ -339,21 +302,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionAudio)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionAudio other = - (com.google.cloud.speech.v1p1beta1.RecognitionAudio) obj; + com.google.cloud.speech.v1p1beta1.RecognitionAudio other = (com.google.cloud.speech.v1p1beta1.RecognitionAudio) obj; if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false; switch (audioSourceCase_) { case 1: - if (!getContent().equals(other.getContent())) return false; + if (!getContent() + .equals(other.getContent())) return false; break; case 2: - if (!getUri().equals(other.getUri())) return false; + if (!getUri() + .equals(other.getUri())) return false; break; case 0: default: @@ -387,103 +351,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionAudio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Contains audio data in the encoding specified in the `RecognitionConfig`.
    * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -493,23 +450,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
       com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
-              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder()
@@ -517,15 +472,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -535,9 +491,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
@@ -556,8 +512,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionAudio result =
-          new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionAudio result = new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -573,39 +528,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -613,25 +567,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionAudio other) {
-      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT:
-          {
-            setContent(other.getContent());
-            break;
-          }
-        case URI:
-          {
-            audioSourceCase_ = 2;
-            audioSource_ = other.audioSource_;
-            onChanged();
-            break;
-          }
-        case AUDIOSOURCE_NOT_SET:
-          {
-            break;
-          }
+        case CONTENT: {
+          setContent(other.getContent());
+          break;
+        }
+        case URI: {
+          audioSourceCase_ = 2;
+          audioSource_ = other.audioSource_;
+          onChanged();
+          break;
+        }
+        case AUDIOSOURCE_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -652,8 +602,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -662,12 +611,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-
-    public AudioSourceCase getAudioSourceCase() {
-      return AudioSourceCase.forNumber(audioSourceCase_);
+    public AudioSourceCase
+        getAudioSourceCase() {
+      return AudioSourceCase.forNumber(
+          audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -677,9 +626,8 @@ public Builder clearAudioSource() {
       return this;
     }
 
+
     /**
-     *
-     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -687,15 +635,12 @@ public Builder clearAudioSource() {
      * 
* * bytes content = 1; - * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 1; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -703,7 +648,6 @@ public boolean hasContent() {
      * 
* * bytes content = 1; - * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -713,8 +657,6 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -722,22 +664,19 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; - * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -745,7 +684,6 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; - * * @return This builder for chaining. */ public Builder clearContent() { @@ -758,8 +696,6 @@ public Builder clearContent() { } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -771,7 +707,6 @@ public Builder clearContent() {
      * 
* * string uri = 2; - * * @return Whether the uri field is set. */ @java.lang.Override @@ -779,8 +714,6 @@ public boolean hasUri() { return audioSourceCase_ == 2; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -792,7 +725,6 @@ public boolean hasUri() {
      * 
* * string uri = 2; - * * @return The uri. */ @java.lang.Override @@ -802,7 +734,8 @@ public java.lang.String getUri() { ref = audioSource_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -813,8 +746,6 @@ public java.lang.String getUri() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -826,18 +757,19 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; - * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getUriBytes() { + public com.google.protobuf.ByteString + getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -847,8 +779,6 @@ public com.google.protobuf.ByteString getUriBytes() { } } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -860,22 +790,20 @@ public com.google.protobuf.ByteString getUriBytes() {
      * 
* * string uri = 2; - * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri(java.lang.String value) { + public Builder setUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -887,7 +815,6 @@ public Builder setUri(java.lang.String value) {
      * 
* * string uri = 2; - * * @return This builder for chaining. */ public Builder clearUri() { @@ -899,8 +826,6 @@ public Builder clearUri() { return this; } /** - * - * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -912,23 +837,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; - * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -938,12 +863,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognitionAudio) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionAudio) private static final com.google.cloud.speech.v1p1beta1.RecognitionAudio DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognitionAudio(); } @@ -952,16 +877,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -976,4 +901,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java similarity index 79% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 37850c3d9..6127a94e2 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionAudioOrBuilder - extends +public interface RecognitionAudioOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -33,13 +15,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * bytes content = 1; - * * @return Whether the content field is set. */ boolean hasContent(); /** - * - * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -47,14 +26,11 @@ public interface RecognitionAudioOrBuilder
    * 
* * bytes content = 1; - * * @return The content. */ com.google.protobuf.ByteString getContent(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -66,13 +42,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return Whether the uri field is set. */ boolean hasUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -84,13 +57,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return The uri. */ java.lang.String getUri(); /** - * - * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -102,10 +72,10 @@ public interface RecognitionAudioOrBuilder
    * 
* * string uri = 2; - * * @return The bytes for uri. */ - com.google.protobuf.ByteString getUriBytes(); + com.google.protobuf.ByteString + getUriBytes(); public com.google.cloud.speech.v1p1beta1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java similarity index 82% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index 58f87cab1..7acf02511 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
  */
-public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognitionConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -48,15 +30,16 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,209 +59,182 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              encoding_ = rawValue;
-              break;
-            }
-          case 16:
-            {
-              sampleRateHertz_ = input.readInt32();
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            encoding_ = rawValue;
+            break;
+          }
+          case 16: {
 
-              languageCode_ = s;
-              break;
-            }
-          case 32:
-            {
-              maxAlternatives_ = input.readInt32();
-              break;
-            }
-          case 40:
-            {
-              profanityFilter_ = input.readBool();
-              break;
-            }
-          case 50:
-            {
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                speechContexts_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              speechContexts_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
-              break;
-            }
-          case 56:
-            {
-              audioChannelCount_ = input.readInt32();
-              break;
-            }
-          case 64:
-            {
-              enableWordTimeOffsets_ = input.readBool();
-              break;
-            }
-          case 74:
-            {
-              com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
-              if (metadata_ != null) {
-                subBuilder = metadata_.toBuilder();
-              }
-              metadata_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(metadata_);
-                metadata_ = subBuilder.buildPartial();
-              }
-
-              break;
+            sampleRateHertz_ = input.readInt32();
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            languageCode_ = s;
+            break;
+          }
+          case 32: {
+
+            maxAlternatives_ = input.readInt32();
+            break;
+          }
+          case 40: {
+
+            profanityFilter_ = input.readBool();
+            break;
+          }
+          case 50: {
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              speechContexts_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          case 88:
-            {
-              enableAutomaticPunctuation_ = input.readBool();
-              break;
+            speechContexts_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
+            break;
+          }
+          case 56: {
+
+            audioChannelCount_ = input.readInt32();
+            break;
+          }
+          case 64: {
+
+            enableWordTimeOffsets_ = input.readBool();
+            break;
+          }
+          case 74: {
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
+            if (metadata_ != null) {
+              subBuilder = metadata_.toBuilder();
             }
-          case 96:
-            {
-              enableSeparateRecognitionPerChannel_ = input.readBool();
-              break;
+            metadata_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(metadata_);
+              metadata_ = subBuilder.buildPartial();
             }
-          case 106:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              model_ = s;
-              break;
+            break;
+          }
+          case 88: {
+
+            enableAutomaticPunctuation_ = input.readBool();
+            break;
+          }
+          case 96: {
+
+            enableSeparateRecognitionPerChannel_ = input.readBool();
+            break;
+          }
+          case 106: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            model_ = s;
+            break;
+          }
+          case 112: {
+
+            useEnhanced_ = input.readBool();
+            break;
+          }
+          case 120: {
+
+            enableWordConfidence_ = input.readBool();
+            break;
+          }
+          case 128: {
+
+            enableSpeakerDiarization_ = input.readBool();
+            break;
+          }
+          case 136: {
+
+            diarizationSpeakerCount_ = input.readInt32();
+            break;
+          }
+          case 146: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 112:
-            {
-              useEnhanced_ = input.readBool();
-              break;
+            alternativeLanguageCodes_.add(s);
+            break;
+          }
+          case 154: {
+            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
+            if (diarizationConfig_ != null) {
+              subBuilder = diarizationConfig_.toBuilder();
             }
-          case 120:
-            {
-              enableWordConfidence_ = input.readBool();
-              break;
+            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(diarizationConfig_);
+              diarizationConfig_ = subBuilder.buildPartial();
             }
-          case 128:
-            {
-              enableSpeakerDiarization_ = input.readBool();
-              break;
+
+            break;
+          }
+          case 162: {
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
+            if (adaptation_ != null) {
+              subBuilder = adaptation_.toBuilder();
             }
-          case 136:
-            {
-              diarizationSpeakerCount_ = input.readInt32();
-              break;
+            adaptation_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(adaptation_);
+              adaptation_ = subBuilder.buildPartial();
             }
-          case 146:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              alternativeLanguageCodes_.add(s);
-              break;
+
+            break;
+          }
+          case 178: {
+            com.google.protobuf.BoolValue.Builder subBuilder = null;
+            if (enableSpokenPunctuation_ != null) {
+              subBuilder = enableSpokenPunctuation_.toBuilder();
             }
-          case 154:
-            {
-              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
-              if (diarizationConfig_ != null) {
-                subBuilder = diarizationConfig_.toBuilder();
-              }
-              diarizationConfig_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(diarizationConfig_);
-                diarizationConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(enableSpokenPunctuation_);
+              enableSpokenPunctuation_ = subBuilder.buildPartial();
             }
-          case 162:
-            {
-              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
-              if (adaptation_ != null) {
-                subBuilder = adaptation_.toBuilder();
-              }
-              adaptation_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(adaptation_);
-                adaptation_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 186: {
+            com.google.protobuf.BoolValue.Builder subBuilder = null;
+            if (enableSpokenEmojis_ != null) {
+              subBuilder = enableSpokenEmojis_.toBuilder();
             }
-          case 178:
-            {
-              com.google.protobuf.BoolValue.Builder subBuilder = null;
-              if (enableSpokenPunctuation_ != null) {
-                subBuilder = enableSpokenPunctuation_.toBuilder();
-              }
-              enableSpokenPunctuation_ =
-                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(enableSpokenPunctuation_);
-                enableSpokenPunctuation_ = subBuilder.buildPartial();
-              }
-
-              break;
+            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(enableSpokenEmojis_);
+              enableSpokenEmojis_ = subBuilder.buildPartial();
             }
-          case 186:
-            {
-              com.google.protobuf.BoolValue.Builder subBuilder = null;
-              if (enableSpokenEmojis_ != null) {
-                subBuilder = enableSpokenEmojis_.toBuilder();
-              }
-              enableSpokenEmojis_ =
-                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(enableSpokenEmojis_);
-                enableSpokenEmojis_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 194: {
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
+            if (transcriptNormalization_ != null) {
+              subBuilder = transcriptNormalization_.toBuilder();
             }
-          case 194:
-            {
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
-              if (transcriptNormalization_ != null) {
-                subBuilder = transcriptNormalization_.toBuilder();
-              }
-              transcriptNormalization_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(transcriptNormalization_);
-                transcriptNormalization_ = subBuilder.buildPartial();
-              }
-
-              break;
+            transcriptNormalization_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(transcriptNormalization_);
+              transcriptNormalization_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -286,7 +242,8 @@ private RecognitionConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -298,25 +255,20 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -342,10 +294,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding}
    */
-  public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AudioEncoding
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -354,8 +305,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ ENCODING_UNSPECIFIED(0), /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -364,8 +313,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ LINEAR16(1), /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -379,8 +326,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     FLAC(2),
     /**
-     *
-     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -389,8 +334,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ MULAW(3), /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -399,8 +342,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR(4), /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -409,8 +350,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ AMR_WB(5), /** - * - * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -421,8 +360,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     OGG_OPUS(6),
     /**
-     *
-     *
      * 
      * Although the use of lossy encodings is not recommended, if a very low
      * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -443,8 +380,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     SPEEX_WITH_HEADER_BYTE(7),
     /**
-     *
-     *
      * 
      * MP3 audio. MP3 encoding is a Beta feature and only available in
      * v1p1beta1. Support all standard MP3 bitrates (which range from 32-320
@@ -456,8 +391,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     MP3(8),
     /**
-     *
-     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -471,8 +404,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Not specified.
      * 
@@ -481,8 +412,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -491,8 +420,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int LINEAR16_VALUE = 1; /** - * - * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -506,8 +433,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int FLAC_VALUE = 2;
     /**
-     *
-     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -516,8 +441,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int MULAW_VALUE = 3; /** - * - * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -526,8 +449,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AMR_VALUE = 4; /** - * - * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -536,8 +457,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AMR_WB_VALUE = 5; /** - * - * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -548,8 +467,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int OGG_OPUS_VALUE = 6;
     /**
-     *
-     *
      * 
      * Although the use of lossy encodings is not recommended, if a very low
      * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -570,8 +487,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SPEEX_WITH_HEADER_BYTE_VALUE = 7;
     /**
-     *
-     *
      * 
      * MP3 audio. MP3 encoding is a Beta feature and only available in
      * v1p1beta1. Support all standard MP3 bitrates (which range from 32-320
@@ -583,8 +498,6 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int MP3_VALUE = 8;
     /**
-     *
-     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -595,6 +508,7 @@ public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -619,65 +533,56 @@ public static AudioEncoding valueOf(int value) {
      */
     public static AudioEncoding forNumber(int value) {
       switch (value) {
-        case 0:
-          return ENCODING_UNSPECIFIED;
-        case 1:
-          return LINEAR16;
-        case 2:
-          return FLAC;
-        case 3:
-          return MULAW;
-        case 4:
-          return AMR;
-        case 5:
-          return AMR_WB;
-        case 6:
-          return OGG_OPUS;
-        case 7:
-          return SPEEX_WITH_HEADER_BYTE;
-        case 8:
-          return MP3;
-        case 9:
-          return WEBM_OPUS;
-        default:
-          return null;
+        case 0: return ENCODING_UNSPECIFIED;
+        case 1: return LINEAR16;
+        case 2: return FLAC;
+        case 3: return MULAW;
+        case 4: return AMR;
+        case 5: return AMR_WB;
+        case 6: return OGG_OPUS;
+        case 7: return SPEEX_WITH_HEADER_BYTE;
+        case 8: return MP3;
+        case 9: return WEBM_OPUS;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        AudioEncoding> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public AudioEncoding findValueByNumber(int number) {
+              return AudioEncoding.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public AudioEncoding findValueByNumber(int number) {
-            return AudioEncoding.forNumber(number);
-          }
-        };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AudioEncoding[] VALUES = values();
 
-    public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AudioEncoding valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -697,8 +602,6 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
-   *
-   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -706,16 +609,12 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -723,24 +622,17 @@ public int getEncodingValue() {
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -752,7 +644,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -763,8 +654,6 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -778,7 +667,6 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -789,8 +677,6 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -801,7 +687,6 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -812,8 +697,6 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -824,7 +707,6 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ @java.lang.Override @@ -833,15 +715,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -852,15 +733,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -871,8 +753,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -889,15 +769,13 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
    * 
* * repeated string alternative_language_codes = 18; - * * @return A list containing the alternativeLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getAlternativeLanguageCodesList() { return alternativeLanguageCodes_; } /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -914,15 +792,12 @@ public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList()
    * 
* * repeated string alternative_language_codes = 18; - * * @return The count of alternativeLanguageCodes. */ public int getAlternativeLanguageCodesCount() { return alternativeLanguageCodes_.size(); } /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -939,7 +814,6 @@ public int getAlternativeLanguageCodesCount() {
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ @@ -947,8 +821,6 @@ public java.lang.String getAlternativeLanguageCodes(int index) { return alternativeLanguageCodes_.get(index); } /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -965,19 +837,17 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -988,7 +858,6 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -999,8 +868,6 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -1009,7 +876,6 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -1020,8 +886,6 @@ public boolean getProfanityFilter() { public static final int ADAPTATION_FIELD_NUMBER = 20; private com.google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation_; /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -1031,7 +895,6 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -1039,8 +902,6 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -1050,18 +911,13 @@ public boolean hasAdaptation() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return The adaptation. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation() { - return adaptation_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() - : adaptation_; + return adaptation_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_; } /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -1080,8 +936,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
   public static final int TRANSCRIPT_NORMALIZATION_FIELD_NUMBER = 24;
   private com.google.cloud.speech.v1p1beta1.TranscriptNormalization transcriptNormalization_;
   /**
-   *
-   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -1089,9 +943,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; * @return Whether the transcriptNormalization field is set. */ @java.lang.Override @@ -1099,8 +951,6 @@ public boolean hasTranscriptNormalization() { return transcriptNormalization_ != null; } /** - * - * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -1108,20 +958,14 @@ public boolean hasTranscriptNormalization() {
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; * @return The transcriptNormalization. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNormalization() { - return transcriptNormalization_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() - : transcriptNormalization_; + return transcriptNormalization_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; } /** - * - * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -1129,20 +973,16 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNo
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder - getTranscriptNormalizationOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder() { return getTranscriptNormalization(); } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6; private java.util.List speechContexts_; /** - * - * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1158,8 +998,6 @@ public java.util.List getSpeech
     return speechContexts_;
   }
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1171,13 +1009,11 @@ public java.util.List getSpeech
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getSpeechContextsOrBuilderList() {
     return speechContexts_;
   }
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1193,8 +1029,6 @@ public int getSpeechContextsCount() {
     return speechContexts_.size();
   }
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1210,8 +1044,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext getSpeechContexts(int ind
     return speechContexts_.get(index);
   }
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1231,8 +1063,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -1241,7 +1071,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1252,8 +1081,6 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -1261,7 +1088,6 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -1272,8 +1098,6 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1282,7 +1106,6 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1293,8 +1116,6 @@ public boolean getEnableAutomaticPunctuation() { public static final int ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER = 22; private com.google.protobuf.BoolValue enableSpokenPunctuation_; /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1306,7 +1127,6 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1314,8 +1134,6 @@ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuation_ != null; } /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1327,18 +1145,13 @@ public boolean hasEnableSpokenPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return The enableSpokenPunctuation. */ @java.lang.Override public com.google.protobuf.BoolValue getEnableSpokenPunctuation() { - return enableSpokenPunctuation_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableSpokenPunctuation_; + return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_; } /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1359,8 +1172,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
-   *
-   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1370,7 +1181,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1378,8 +1188,6 @@ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojis_ != null; } /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1389,18 +1197,13 @@ public boolean hasEnableSpokenEmojis() {
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return The enableSpokenEmojis. */ @java.lang.Override public com.google.protobuf.BoolValue getEnableSpokenEmojis() { - return enableSpokenEmojis_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableSpokenEmojis_; + return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_; } /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1419,8 +1222,6 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 16;
   private boolean enableSpeakerDiarization_;
   /**
-   *
-   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -1429,22 +1230,18 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @return The enableSpeakerDiarization. */ @java.lang.Override - @java.lang.Deprecated - public boolean getEnableSpeakerDiarization() { + @java.lang.Deprecated public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } public static final int DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER = 17; private int diarizationSpeakerCount_; /** - * - * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -1452,22 +1249,18 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @return The diarizationSpeakerCount. */ @java.lang.Override - @java.lang.Deprecated - public int getDiarizationSpeakerCount() { + @java.lang.Deprecated public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; } public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 19; private com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarizationConfig_; /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1480,7 +1273,6 @@ public int getDiarizationSpeakerCount() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -1488,8 +1280,6 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1502,18 +1292,13 @@ public boolean hasDiarizationConfig() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return The diarizationConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarizationConfig() { - return diarizationConfig_ == null - ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() - : diarizationConfig_; + return diarizationConfig_ == null ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; } /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1528,22 +1313,18 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarization
    * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
-      getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
   /**
-   *
-   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1551,25 +1332,18 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Metadata regarding this request.
    * 
@@ -1584,8 +1358,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1641,7 +1413,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
    * 
* * string model = 13; - * * @return The model. */ @java.lang.Override @@ -1650,15 +1421,14 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1714,15 +1484,16 @@ public java.lang.String getModel() {
    * 
* * string model = 13; - * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -1733,8 +1504,6 @@ public com.google.protobuf.ByteString getModelBytes() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** - * - * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1746,7 +1515,6 @@ public com.google.protobuf.ByteString getModelBytes() {
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -1755,7 +1523,6 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1767,10 +1534,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (encoding_ - != com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (encoding_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED.getNumber()) { output.writeEnum(1, encoding_); } if (sampleRateHertz_ != 0) { @@ -1819,8 +1585,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeInt32(17, diarizationSpeakerCount_); } for (int i = 0; i < alternativeLanguageCodes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString( - output, 18, alternativeLanguageCodes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString(output, 18, alternativeLanguageCodes_.getRaw(i)); } if (diarizationConfig_ != null) { output.writeMessage(19, getDiarizationConfig()); @@ -1846,58 +1611,67 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encoding_ - != com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encoding_); + if (encoding_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, encoding_); } if (sampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sampleRateHertz_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, sampleRateHertz_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } if (maxAlternatives_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxAlternatives_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, maxAlternatives_); } if (profanityFilter_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, profanityFilter_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, profanityFilter_); } for (int i = 0; i < speechContexts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, speechContexts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, speechContexts_.get(i)); } if (audioChannelCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, audioChannelCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(7, audioChannelCount_); } if (enableWordTimeOffsets_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableWordTimeOffsets_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, enableWordTimeOffsets_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getMetadata()); } if (enableAutomaticPunctuation_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(11, enableAutomaticPunctuation_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, enableAutomaticPunctuation_); } if (enableSeparateRecognitionPerChannel_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 12, enableSeparateRecognitionPerChannel_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, enableSeparateRecognitionPerChannel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, model_); } if (useEnhanced_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, useEnhanced_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(14, useEnhanced_); } if (enableWordConfidence_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, enableWordConfidence_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(15, enableWordConfidence_); } if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(16, enableSpeakerDiarization_); } if (diarizationSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, diarizationSpeakerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(17, diarizationSpeakerCount_); } { int dataSize = 0; @@ -1908,23 +1682,24 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 22, getEnableSpokenPunctuation()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getEnableSpokenEmojis()); } if (transcriptNormalization_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 24, getTranscriptNormalization()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(24, getTranscriptNormalization()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1934,56 +1709,74 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionConfig other = - (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.RecognitionConfig other = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) - return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) - return false; - if (getMaxAlternatives() != other.getMaxAlternatives()) return false; - if (getProfanityFilter() != other.getProfanityFilter()) return false; + if (getSampleRateHertz() + != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() + != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() + != other.getEnableSeparateRecognitionPerChannel()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList() + .equals(other.getAlternativeLanguageCodesList())) return false; + if (getMaxAlternatives() + != other.getMaxAlternatives()) return false; + if (getProfanityFilter() + != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation().equals(other.getAdaptation())) return false; + if (!getAdaptation() + .equals(other.getAdaptation())) return false; } if (hasTranscriptNormalization() != other.hasTranscriptNormalization()) return false; if (hasTranscriptNormalization()) { - if (!getTranscriptNormalization().equals(other.getTranscriptNormalization())) return false; - } - if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; + if (!getTranscriptNormalization() + .equals(other.getTranscriptNormalization())) return false; + } + if (!getSpeechContextsList() + .equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() + != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() + != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() + != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation() + .equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis() + .equals(other.getEnableSpokenEmojis())) return false; } - if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; - if (getDiarizationSpeakerCount() != other.getDiarizationSpeakerCount()) return false; + if (getEnableSpeakerDiarization() + != other.getEnableSpeakerDiarization()) return false; + if (getDiarizationSpeakerCount() + != other.getDiarizationSpeakerCount()) return false; if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig() + .equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } - if (!getModel().equals(other.getModel())) return false; - if (getUseEnhanced() != other.getUseEnhanced()) return false; + if (!getModel() + .equals(other.getModel())) return false; + if (getUseEnhanced() + != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2002,9 +1795,8 @@ public int hashCode() { hash = (37 * hash) + AUDIO_CHANNEL_COUNT_FIELD_NUMBER; hash = (53 * hash) + getAudioChannelCount(); hash = (37 * hash) + ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getEnableSeparateRecognitionPerChannel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSeparateRecognitionPerChannel()); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); if (getAlternativeLanguageCodesCount() > 0) { @@ -2014,7 +1806,8 @@ public int hashCode() { hash = (37 * hash) + MAX_ALTERNATIVES_FIELD_NUMBER; hash = (53 * hash) + getMaxAlternatives(); hash = (37 * hash) + PROFANITY_FILTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProfanityFilter()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getProfanityFilter()); if (hasAdaptation()) { hash = (37 * hash) + ADAPTATION_FIELD_NUMBER; hash = (53 * hash) + getAdaptation().hashCode(); @@ -2028,11 +1821,14 @@ public int hashCode() { hash = (53 * hash) + getSpeechContextsList().hashCode(); } hash = (37 * hash) + ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWordTimeOffsets()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableWordTimeOffsets()); hash = (37 * hash) + ENABLE_WORD_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWordConfidence()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableWordConfidence()); hash = (37 * hash) + ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAutomaticPunctuation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableAutomaticPunctuation()); if (hasEnableSpokenPunctuation()) { hash = (37 * hash) + ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER; hash = (53 * hash) + getEnableSpokenPunctuation().hashCode(); @@ -2042,7 +1838,8 @@ public int hashCode() { hash = (53 * hash) + getEnableSpokenEmojis().hashCode(); } hash = (37 * hash) + ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpeakerDiarization()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSpeakerDiarization()); hash = (37 * hash) + DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER; hash = (53 * hash) + getDiarizationSpeakerCount(); if (hasDiarizationConfig()) { @@ -2056,110 +1853,104 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -2167,23 +1958,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
       com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder()
@@ -2191,17 +1980,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2281,9 +2070,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -2302,8 +2091,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionConfig result =
-          new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionConfig result = new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -2371,39 +2159,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2411,8 +2198,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig other) {
-      if (other == com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) return this;
       if (other.encoding_ != 0) {
         setEncodingValue(other.getEncodingValue());
       }
@@ -2469,10 +2255,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig oth
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getSpeechContextsFieldBuilder()
-                    : null;
+            speechContextsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getSpeechContextsFieldBuilder() : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2531,8 +2316,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2541,13 +2325,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
-     *
-     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2555,16 +2336,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override - public int getEncodingValue() { + @java.lang.Override public int getEncodingValue() { return encoding_; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2572,19 +2349,16 @@ public int getEncodingValue() {
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2592,21 +2366,15 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2614,23 +2382,19 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding( - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { + public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2638,20 +2402,17 @@ public Builder setEncoding(
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_; + private int sampleRateHertz_ ; /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2663,7 +2424,6 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ @java.lang.Override @@ -2671,8 +2431,6 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2684,19 +2442,16 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; - * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** - * - * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2708,20 +2463,17 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; - * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_; + private int audioChannelCount_ ; /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2735,7 +2487,6 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ @java.lang.Override @@ -2743,8 +2494,6 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2758,19 +2507,16 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; - * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** - * - * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2784,20 +2530,17 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; - * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_; + private boolean enableSeparateRecognitionPerChannel_ ; /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2808,7 +2551,6 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2816,8 +2558,6 @@ public boolean getEnableSeparateRecognitionPerChannel() { return enableSeparateRecognitionPerChannel_; } /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2828,19 +2568,16 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** - * - * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2851,11 +2588,10 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2863,8 +2599,6 @@ public Builder clearEnableSeparateRecognitionPerChannel() { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2875,13 +2609,13 @@ public Builder clearEnableSeparateRecognitionPerChannel() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -2890,8 +2624,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2902,14 +2634,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -2917,8 +2650,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2929,22 +2660,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2955,18 +2684,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2977,34 +2703,29 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = - new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3021,15 +2742,13 @@ private void ensureAlternativeLanguageCodesIsMutable() {
      * 
* * repeated string alternative_language_codes = 18; - * * @return A list containing the alternativeLanguageCodes. */ - public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList() { + public com.google.protobuf.ProtocolStringList + getAlternativeLanguageCodesList() { return alternativeLanguageCodes_.getUnmodifiableView(); } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3046,15 +2765,12 @@ public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList()
      * 
* * repeated string alternative_language_codes = 18; - * * @return The count of alternativeLanguageCodes. */ public int getAlternativeLanguageCodesCount() { return alternativeLanguageCodes_.size(); } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3071,7 +2787,6 @@ public int getAlternativeLanguageCodesCount() {
      * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ @@ -3079,8 +2794,6 @@ public java.lang.String getAlternativeLanguageCodes(int index) { return alternativeLanguageCodes_.get(index); } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3097,16 +2810,14 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3123,23 +2834,21 @@ public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index
      * 
* * repeated string alternative_language_codes = 18; - * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3156,22 +2865,20 @@ public Builder setAlternativeLanguageCodes(int index, java.lang.String value) {
      * 
* * repeated string alternative_language_codes = 18; - * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes(java.lang.String value) { + public Builder addAlternativeLanguageCodes( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3188,19 +2895,18 @@ public Builder addAlternativeLanguageCodes(java.lang.String value) {
      * 
* * repeated string alternative_language_codes = 18; - * * @param values The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllAlternativeLanguageCodes(java.lang.Iterable values) { + public Builder addAllAlternativeLanguageCodes( + java.lang.Iterable values) { ensureAlternativeLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternativeLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, alternativeLanguageCodes_); onChanged(); return this; } /** - * - * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3217,7 +2923,6 @@ public Builder addAllAlternativeLanguageCodes(java.lang.Iterable
      *
      * repeated string alternative_language_codes = 18;
-     *
      * @return This builder for chaining.
      */
     public Builder clearAlternativeLanguageCodes() {
@@ -3227,8 +2932,6 @@ public Builder clearAlternativeLanguageCodes() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -3245,25 +2948,23 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; - * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_; + private int maxAlternatives_ ; /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3274,7 +2975,6 @@ public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString v
      * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ @java.lang.Override @@ -3282,8 +2982,6 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3294,19 +2992,16 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; - * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3317,20 +3012,17 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; - * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_; + private boolean profanityFilter_ ; /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3339,7 +3031,6 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ @java.lang.Override @@ -3347,8 +3038,6 @@ public boolean getProfanityFilter() { return profanityFilter_; } /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3357,19 +3046,16 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; - * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** - * - * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3378,11 +3064,10 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; - * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -3390,13 +3075,8 @@ public Builder clearProfanityFilter() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptation, - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder, - com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder> - adaptationBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptation, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder> adaptationBuilder_; /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3406,15 +3086,12 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3424,21 +3101,16 @@ public boolean hasAdaptation() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return The adaptation. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation() { if (adaptationBuilder_ == null) { - return adaptation_ == null - ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() - : adaptation_; + return adaptation_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_; } else { return adaptationBuilder_.getMessage(); } } /** - * - * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3463,8 +3135,6 @@ public Builder setAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptation
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3487,8 +3157,6 @@ public Builder setAdaptation(
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3503,9 +3171,7 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptatio
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -3517,8 +3183,6 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptatio
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3541,8 +3205,6 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3554,13 +3216,11 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder getAdaptationBuilder() {
-
+      
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3575,14 +3235,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
       if (adaptationBuilder_ != null) {
         return adaptationBuilder_.getMessageOrBuilder();
       } else {
-        return adaptation_ == null
-            ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()
-            : adaptation_;
+        return adaptation_ == null ?
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_;
       }
     }
     /**
-     *
-     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3594,17 +3251,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder>
+        com.google.cloud.speech.v1p1beta1.SpeechAdaptation, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder> 
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.SpeechAdaptation,
-                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder,
-                com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder>(
-                getAdaptation(), getParentForChildren(), isClean());
+        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder>(
+                getAdaptation(),
+                getParentForChildren(),
+                isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
@@ -3612,13 +3266,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
 
     private com.google.cloud.speech.v1p1beta1.TranscriptNormalization transcriptNormalization_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization,
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder,
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>
-        transcriptNormalizationBuilder_;
+        com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> transcriptNormalizationBuilder_;
     /**
-     *
-     *
      * 
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3626,17 +3275,13 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; * @return Whether the transcriptNormalization field is set. */ public boolean hasTranscriptNormalization() { return transcriptNormalizationBuilder_ != null || transcriptNormalization_ != null; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3644,23 +3289,17 @@ public boolean hasTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; * @return The transcriptNormalization. */ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNormalization() { if (transcriptNormalizationBuilder_ == null) { - return transcriptNormalization_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() - : transcriptNormalization_; + return transcriptNormalization_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; } else { return transcriptNormalizationBuilder_.getMessage(); } } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3668,11 +3307,9 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNo
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ - public Builder setTranscriptNormalization( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { + public Builder setTranscriptNormalization(com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { if (transcriptNormalizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3685,9 +3322,7 @@ public Builder setTranscriptNormalization( return this; } - /** - * - * + /** *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3695,8 +3330,7 @@ public Builder setTranscriptNormalization(
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ public Builder setTranscriptNormalization( com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder builderForValue) { @@ -3710,8 +3344,6 @@ public Builder setTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3719,18 +3351,13 @@ public Builder setTranscriptNormalization(
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ - public Builder mergeTranscriptNormalization( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { + public Builder mergeTranscriptNormalization(com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { if (transcriptNormalizationBuilder_ == null) { if (transcriptNormalization_ != null) { transcriptNormalization_ = - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder( - transcriptNormalization_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder(transcriptNormalization_).mergeFrom(value).buildPartial(); } else { transcriptNormalization_ = value; } @@ -3742,8 +3369,6 @@ public Builder mergeTranscriptNormalization( return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3751,8 +3376,7 @@ public Builder mergeTranscriptNormalization(
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ public Builder clearTranscriptNormalization() { if (transcriptNormalizationBuilder_ == null) { @@ -3766,8 +3390,6 @@ public Builder clearTranscriptNormalization() { return this; } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3775,18 +3397,14 @@ public Builder clearTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder - getTranscriptNormalizationBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder getTranscriptNormalizationBuilder() { + onChanged(); return getTranscriptNormalizationFieldBuilder().getBuilder(); } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3794,22 +3412,17 @@ public Builder clearTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder - getTranscriptNormalizationOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder() { if (transcriptNormalizationBuilder_ != null) { return transcriptNormalizationBuilder_.getMessageOrBuilder(); } else { - return transcriptNormalization_ == null - ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() - : transcriptNormalization_; + return transcriptNormalization_ == null ? + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; } } /** - * - * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3817,47 +3430,35 @@ public Builder clearTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> getTranscriptNormalizationFieldBuilder() { if (transcriptNormalizationBuilder_ == null) { - transcriptNormalizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( - getTranscriptNormalization(), getParentForChildren(), isClean()); + transcriptNormalizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( + getTranscriptNormalization(), + getParentForChildren(), + isClean()); transcriptNormalization_ = null; } return transcriptNormalizationBuilder_; } private java.util.List speechContexts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureSpeechContextsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - speechContexts_ = - new java.util.ArrayList( - speechContexts_); + speechContexts_ = new java.util.ArrayList(speechContexts_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechContext, - com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, - com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> - speechContextsBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> speechContextsBuilder_; /** - * - * *
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3876,8 +3477,6 @@ public java.util.List getSpeech
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3896,8 +3495,6 @@ public int getSpeechContextsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3916,8 +3513,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext getSpeechContexts(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3943,8 +3538,6 @@ public Builder setSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3967,8 +3560,6 @@ public Builder setSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3993,8 +3584,6 @@ public Builder addSpeechContexts(com.google.cloud.speech.v1p1beta1.SpeechContext
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4020,8 +3609,6 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4044,8 +3631,6 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4068,8 +3653,6 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4084,7 +3667,8 @@ public Builder addAllSpeechContexts(
         java.lang.Iterable values) {
       if (speechContextsBuilder_ == null) {
         ensureSpeechContextsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speechContexts_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, speechContexts_);
         onChanged();
       } else {
         speechContextsBuilder_.addAllMessages(values);
@@ -4092,8 +3676,6 @@ public Builder addAllSpeechContexts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4115,8 +3697,6 @@ public Builder clearSpeechContexts() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4138,8 +3718,6 @@ public Builder removeSpeechContexts(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4155,8 +3733,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder getSpeechContexts
       return getSpeechContextsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4170,14 +3746,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder getSpeechContexts
     public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
         int index) {
       if (speechContextsBuilder_ == null) {
-        return speechContexts_.get(index);
-      } else {
+        return speechContexts_.get(index);  } else {
         return speechContextsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4188,8 +3761,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List
-        getSpeechContextsOrBuilderList() {
+    public java.util.List 
+         getSpeechContextsOrBuilderList() {
       if (speechContextsBuilder_ != null) {
         return speechContextsBuilder_.getMessageOrBuilderList();
       } else {
@@ -4197,8 +3770,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
       }
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4210,12 +3781,10 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
      * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContextsBuilder() {
-      return getSpeechContextsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance());
+      return getSpeechContextsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4228,12 +3797,10 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      */
     public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContextsBuilder(
         int index) {
-      return getSpeechContextsFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance());
+      return getSpeechContextsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -4244,22 +3811,16 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List
-        getSpeechContextsBuilderList() {
+    public java.util.List 
+         getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechContext,
-            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>
+        com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> 
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.SpeechContext,
-                com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
-                com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -4269,10 +3830,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
       return speechContextsBuilder_;
     }
 
-    private boolean enableWordTimeOffsets_;
+    private boolean enableWordTimeOffsets_ ;
     /**
-     *
-     *
      * 
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -4281,7 +3840,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -4289,8 +3847,6 @@ public boolean getEnableWordTimeOffsets() { return enableWordTimeOffsets_; } /** - * - * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -4299,19 +3855,16 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; - * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -4320,20 +3873,17 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; - * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_; + private boolean enableWordConfidence_ ; /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -4341,7 +3891,6 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ @java.lang.Override @@ -4349,8 +3898,6 @@ public boolean getEnableWordConfidence() { return enableWordConfidence_; } /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -4358,19 +3905,16 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; - * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -4378,20 +3922,17 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; - * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_; + private boolean enableAutomaticPunctuation_ ; /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -4400,7 +3941,6 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -4408,8 +3948,6 @@ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -4418,19 +3956,16 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; - * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -4439,11 +3974,10 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; - * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -4451,13 +3985,8 @@ public Builder clearEnableAutomaticPunctuation() { private com.google.protobuf.BoolValue enableSpokenPunctuation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, - com.google.protobuf.BoolValue.Builder, - com.google.protobuf.BoolValueOrBuilder> - enableSpokenPunctuationBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSpokenPunctuationBuilder_; /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4469,15 +3998,12 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4489,21 +4015,16 @@ public boolean hasEnableSpokenPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return The enableSpokenPunctuation. */ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() { if (enableSpokenPunctuationBuilder_ == null) { - return enableSpokenPunctuation_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableSpokenPunctuation_; + return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_; } else { return enableSpokenPunctuationBuilder_.getMessage(); } } /** - * - * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4530,8 +4051,6 @@ public Builder setEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4556,8 +4075,6 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4574,9 +4091,7 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -4588,8 +4103,6 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4614,8 +4127,6 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4629,13 +4140,11 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-
+      
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4652,14 +4161,11 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
       if (enableSpokenPunctuationBuilder_ != null) {
         return enableSpokenPunctuationBuilder_.getMessageOrBuilder();
       } else {
-        return enableSpokenPunctuation_ == null
-            ? com.google.protobuf.BoolValue.getDefaultInstance()
-            : enableSpokenPunctuation_;
+        return enableSpokenPunctuation_ == null ?
+            com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
       }
     }
     /**
-     *
-     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4673,17 +4179,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
         getEnableSpokenPunctuationFieldBuilder() {
       if (enableSpokenPunctuationBuilder_ == null) {
-        enableSpokenPunctuationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.BoolValue,
-                com.google.protobuf.BoolValue.Builder,
-                com.google.protobuf.BoolValueOrBuilder>(
-                getEnableSpokenPunctuation(), getParentForChildren(), isClean());
+        enableSpokenPunctuationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+                getEnableSpokenPunctuation(),
+                getParentForChildren(),
+                isClean());
         enableSpokenPunctuation_ = null;
       }
       return enableSpokenPunctuationBuilder_;
@@ -4691,13 +4194,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
 
     private com.google.protobuf.BoolValue enableSpokenEmojis_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
-        enableSpokenEmojisBuilder_;
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSpokenEmojisBuilder_;
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4707,15 +4205,12 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4725,21 +4220,16 @@ public boolean hasEnableSpokenEmojis() {
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return The enableSpokenEmojis. */ public com.google.protobuf.BoolValue getEnableSpokenEmojis() { if (enableSpokenEmojisBuilder_ == null) { - return enableSpokenEmojis_ == null - ? com.google.protobuf.BoolValue.getDefaultInstance() - : enableSpokenEmojis_; + return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_; } else { return enableSpokenEmojisBuilder_.getMessage(); } } /** - * - * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4764,8 +4254,6 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4776,7 +4264,8 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(
+        com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -4787,8 +4276,6 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4803,9 +4290,7 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -4817,8 +4302,6 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4841,8 +4324,6 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4854,13 +4335,11 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-
+      
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4875,14 +4354,11 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
       if (enableSpokenEmojisBuilder_ != null) {
         return enableSpokenEmojisBuilder_.getMessageOrBuilder();
       } else {
-        return enableSpokenEmojis_ == null
-            ? com.google.protobuf.BoolValue.getDefaultInstance()
-            : enableSpokenEmojis_;
+        return enableSpokenEmojis_ == null ?
+            com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
       }
     }
     /**
-     *
-     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4894,26 +4370,21 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue,
-            com.google.protobuf.BoolValue.Builder,
-            com.google.protobuf.BoolValueOrBuilder>
+        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
         getEnableSpokenEmojisFieldBuilder() {
       if (enableSpokenEmojisBuilder_ == null) {
-        enableSpokenEmojisBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.BoolValue,
-                com.google.protobuf.BoolValue.Builder,
-                com.google.protobuf.BoolValueOrBuilder>(
-                getEnableSpokenEmojis(), getParentForChildren(), isClean());
+        enableSpokenEmojisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
+                getEnableSpokenEmojis(),
+                getParentForChildren(),
+                isClean());
         enableSpokenEmojis_ = null;
       }
       return enableSpokenEmojisBuilder_;
     }
 
-    private boolean enableSpeakerDiarization_;
+    private boolean enableSpeakerDiarization_ ;
     /**
-     *
-     *
      * 
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -4922,19 +4393,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @return The enableSpeakerDiarization. */ @java.lang.Override - @java.lang.Deprecated - public boolean getEnableSpeakerDiarization() { + @java.lang.Deprecated public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -4943,22 +4410,18 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setEnableSpeakerDiarization(boolean value) { - + @java.lang.Deprecated public Builder setEnableSpeakerDiarization(boolean value) { + enableSpeakerDiarization_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -4967,23 +4430,19 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearEnableSpeakerDiarization() { - + @java.lang.Deprecated public Builder clearEnableSpeakerDiarization() { + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int diarizationSpeakerCount_; + private int diarizationSpeakerCount_ ; /** - * - * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4991,19 +4450,15 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @return The diarizationSpeakerCount. */ @java.lang.Override - @java.lang.Deprecated - public int getDiarizationSpeakerCount() { + @java.lang.Deprecated public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; } /** - * - * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -5011,22 +4466,18 @@ public int getDiarizationSpeakerCount() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @param value The diarizationSpeakerCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setDiarizationSpeakerCount(int value) { - + @java.lang.Deprecated public Builder setDiarizationSpeakerCount(int value) { + diarizationSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -5034,14 +4485,12 @@ public Builder setDiarizationSpeakerCount(int value) {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearDiarizationSpeakerCount() { - + @java.lang.Deprecated public Builder clearDiarizationSpeakerCount() { + diarizationSpeakerCount_ = 0; onChanged(); return this; @@ -5049,13 +4498,8 @@ public Builder clearDiarizationSpeakerCount() { private com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarizationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder, - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder> - diarizationConfigBuilder_; + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder> diarizationConfigBuilder_; /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5068,15 +4512,12 @@ public Builder clearDiarizationSpeakerCount() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5089,21 +4530,16 @@ public boolean hasDiarizationConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return The diarizationConfig. */ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarizationConfig() { if (diarizationConfigBuilder_ == null) { - return diarizationConfig_ == null - ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() - : diarizationConfig_; + return diarizationConfig_ == null ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; } else { return diarizationConfigBuilder_.getMessage(); } } /** - * - * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5117,8 +4553,7 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarization
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder setDiarizationConfig(
-        com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
+    public Builder setDiarizationConfig(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -5132,8 +4567,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5159,8 +4592,6 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5174,15 +4605,11 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(
-        com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(
-                      diarizationConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -5194,8 +4621,6 @@ public Builder mergeDiarizationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5221,8 +4646,6 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5236,15 +4659,12 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder
-        getDiarizationConfigBuilder() {
-
+    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
+      
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5258,19 +4678,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
-        getDiarizationConfigOrBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
       if (diarizationConfigBuilder_ != null) {
         return diarizationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return diarizationConfig_ == null
-            ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()
-            : diarizationConfig_;
+        return diarizationConfig_ == null ?
+            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -5285,17 +4701,14 @@ public Builder clearDiarizationConfig() {
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig,
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder>
+        com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder> 
         getDiarizationConfigFieldBuilder() {
       if (diarizationConfigBuilder_ == null) {
-        diarizationConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig,
-                com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder,
-                com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder>(
-                getDiarizationConfig(), getParentForChildren(), isClean());
+        diarizationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder>(
+                getDiarizationConfig(),
+                getParentForChildren(),
+                isClean());
         diarizationConfig_ = null;
       }
       return diarizationConfigBuilder_;
@@ -5303,47 +4716,34 @@ public Builder clearDiarizationConfig() {
 
     private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.RecognitionMetadata,
-            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder,
-            com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder>
-        metadataBuilder_;
+        com.google.cloud.speech.v1p1beta1.RecognitionMetadata, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder> metadataBuilder_;
     /**
-     *
-     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; - * * @return The metadata. */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5364,8 +4764,6 @@ public Builder setMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5384,8 +4782,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5396,9 +4792,7 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } @@ -5410,8 +4804,6 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5430,8 +4822,6 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5439,13 +4829,11 @@ public Builder clearMetadata() { * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5456,14 +4844,11 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; } } /** - * - * *
      * Metadata regarding this request.
      * 
@@ -5471,17 +4856,14 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionMetadata, - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionMetadata, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionMetadata, - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionMetadata, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); metadata_ = null; } return metadataBuilder_; @@ -5489,8 +4871,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat private java.lang.Object model_ = ""; /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5546,13 +4926,13 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
      * 
* * string model = 13; - * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -5561,8 +4941,6 @@ public java.lang.String getModel() { } } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5618,14 +4996,15 @@ public java.lang.String getModel() {
      * 
* * string model = 13; - * * @return The bytes for model. */ - public com.google.protobuf.ByteString getModelBytes() { + public com.google.protobuf.ByteString + getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); model_ = b; return b; } else { @@ -5633,8 +5012,6 @@ public com.google.protobuf.ByteString getModelBytes() { } } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5690,22 +5067,20 @@ public com.google.protobuf.ByteString getModelBytes() {
      * 
* * string model = 13; - * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel(java.lang.String value) { + public Builder setModel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5761,18 +5136,15 @@ public Builder setModel(java.lang.String value) {
      * 
* * string model = 13; - * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** - * - * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5828,25 +5200,23 @@ public Builder clearModel() {
      * 
* * string model = 13; - * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { + public Builder setModelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_; + private boolean useEnhanced_ ; /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5858,7 +5228,6 @@ public Builder setModelBytes(com.google.protobuf.ByteString value) {
      * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ @java.lang.Override @@ -5866,8 +5235,6 @@ public boolean getUseEnhanced() { return useEnhanced_; } /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5879,19 +5246,16 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; - * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** - * - * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5903,18 +5267,17 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; - * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5924,12 +5287,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionConfig) private static final com.google.cloud.speech.v1p1beta1.RecognitionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognitionConfig(); } @@ -5938,16 +5301,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5962,4 +5325,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java similarity index 93% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index f4a4a6f87..dfc41e54d 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionConfigOrBuilder - extends +public interface RecognitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -33,13 +15,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** - * - * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -47,14 +26,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; - * * @return The encoding. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding(); /** - * - * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -66,14 +42,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 sample_rate_hertz = 2; - * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** - * - * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -87,14 +60,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 audio_channel_count = 7; - * * @return The audioChannelCount. */ int getAudioChannelCount(); /** - * - * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -105,14 +75,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_separate_recognition_per_channel = 12; - * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -123,13 +90,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -140,14 +104,12 @@ public interface RecognitionConfigOrBuilder
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -164,13 +126,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @return A list containing the alternativeLanguageCodes. */ - java.util.List getAlternativeLanguageCodesList(); + java.util.List + getAlternativeLanguageCodesList(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -187,13 +147,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -210,14 +167,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** - * - * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -234,15 +188,13 @@ public interface RecognitionConfigOrBuilder
    * 
* * repeated string alternative_language_codes = 18; - * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString + getAlternativeLanguageCodesBytes(int index); /** - * - * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -253,14 +205,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 max_alternatives = 4; - * * @return The maxAlternatives. */ int getMaxAlternatives(); /** - * - * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -269,14 +218,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool profanity_filter = 5; - * * @return The profanityFilter. */ boolean getProfanityFilter(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -286,13 +232,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -302,13 +245,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; - * * @return The adaptation. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation(); /** - * - * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -322,8 +262,6 @@ public interface RecognitionConfigOrBuilder
   com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -331,15 +269,11 @@ public interface RecognitionConfigOrBuilder
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; * @return Whether the transcriptNormalization field is set. */ boolean hasTranscriptNormalization(); /** - * - * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -347,15 +281,11 @@ public interface RecognitionConfigOrBuilder
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; * @return The transcriptNormalization. */ com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNormalization(); /** - * - * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -363,15 +293,11 @@ public interface RecognitionConfigOrBuilder
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; - * + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; */ - com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder - getTranscriptNormalizationOrBuilder(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder(); /** - * - * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -382,10 +308,9 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List getSpeechContextsList();
+  java.util.List 
+      getSpeechContextsList();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -398,8 +323,6 @@ public interface RecognitionConfigOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.SpeechContext getSpeechContexts(int index);
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -412,8 +335,6 @@ public interface RecognitionConfigOrBuilder
    */
   int getSpeechContextsCount();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -424,11 +345,9 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List
+  java.util.List 
       getSpeechContextsOrBuilderList();
   /**
-   *
-   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -439,11 +358,10 @@ public interface RecognitionConfigOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -452,14 +370,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_word_time_offsets = 8; - * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** - * - * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -467,14 +382,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_word_confidence = 15; - * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** - * - * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -483,14 +395,11 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_automatic_punctuation = 11; - * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -502,13 +411,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -520,13 +426,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; - * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** - * - * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -542,8 +445,6 @@ public interface RecognitionConfigOrBuilder
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
-   *
-   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -553,13 +454,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -569,13 +467,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; - * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** - * - * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -589,8 +484,6 @@ public interface RecognitionConfigOrBuilder
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
-   *
-   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -599,17 +492,13 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @return The enableSpeakerDiarization. */ - @java.lang.Deprecated - boolean getEnableSpeakerDiarization(); + @java.lang.Deprecated boolean getEnableSpeakerDiarization(); /** - * - * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -617,17 +506,13 @@ public interface RecognitionConfigOrBuilder
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is - * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @return The diarizationSpeakerCount. */ - @java.lang.Deprecated - int getDiarizationSpeakerCount(); + @java.lang.Deprecated int getDiarizationSpeakerCount(); /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -640,13 +525,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -659,13 +541,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; - * * @return The diarizationConfig. */ com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarizationConfig(); /** - * - * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -679,36 +558,27 @@ public interface RecognitionConfigOrBuilder
    *
    * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
    */
-  com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
-      getDiarizationConfigOrBuilder();
+  com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; - * * @return The metadata. */ com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata(); /** - * - * *
    * Metadata regarding this request.
    * 
@@ -718,8 +588,6 @@ public interface RecognitionConfigOrBuilder com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadataOrBuilder(); /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -775,13 +643,10 @@ public interface RecognitionConfigOrBuilder
    * 
* * string model = 13; - * * @return The model. */ java.lang.String getModel(); /** - * - * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -837,14 +702,12 @@ public interface RecognitionConfigOrBuilder
    * 
* * string model = 13; - * * @return The bytes for model. */ - com.google.protobuf.ByteString getModelBytes(); + com.google.protobuf.ByteString + getModelBytes(); /** - * - * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -856,7 +719,6 @@ public interface RecognitionConfigOrBuilder
    * 
* * bool use_enhanced = 14; - * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java similarity index 69% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java index 810a2adaa..4a666fd4c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java @@ -1,43 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ -@java.lang.Deprecated -public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +@java.lang.Deprecated public final class RecognitionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionMetadata) RecognitionMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognitionMetadata.newBuilder() to construct. private RecognitionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognitionMetadata() { interactionType_ = 0; microphoneDistance_ = 0; @@ -50,15 +31,16 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,72 +59,65 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - interactionType_ = rawValue; - break; - } - case 24: - { - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: - { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: { - microphoneDistance_ = rawValue; - break; - } - case 40: - { - int rawValue = input.readEnum(); + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: - { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + originalMediaType_ = rawValue; + break; + } + case 48: { + int rawValue = input.readEnum(); - recordingDeviceName_ = s; - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 72: - { - obfuscatedId_ = input.readInt64(); - break; - } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceName_ = s; + break; + } + case 66: { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + originalMimeType_ = s; + break; + } + case 72: { + + obfuscatedId_ = input.readInt64(); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + audioTopic_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -150,31 +125,27 @@ private RecognitionMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } /** - * - * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -182,10 +153,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType}
    */
-  public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InteractionType
+      implements com.google.protobuf.ProtocolMessageEnum {
     /**
-     *
-     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -195,8 +165,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     INTERACTION_TYPE_UNSPECIFIED(0),
     /**
-     *
-     *
      * 
      * Multiple people in a conversation or discussion. For example in a
      * meeting with two or more people actively participating. Typically
@@ -208,8 +176,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     DISCUSSION(1),
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -219,8 +185,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PRESENTATION(2),
     /**
-     *
-     *
      * 
      * A phone-call or video-conference in which two or more people, who are
      * not in the same room, are actively participating.
@@ -230,8 +194,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     PHONE_CALL(3),
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -240,8 +202,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICEMAIL(4), /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -250,8 +210,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ PROFESSIONALLY_PRODUCED(5), /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -260,8 +218,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_SEARCH(6), /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -270,8 +226,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ VOICE_COMMAND(7), /** - * - * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -284,8 +238,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -295,8 +247,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int INTERACTION_TYPE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Multiple people in a conversation or discussion. For example in a
      * meeting with two or more people actively participating. Typically
@@ -308,8 +258,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
-     *
-     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -319,8 +267,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PRESENTATION_VALUE = 2;
     /**
-     *
-     *
      * 
      * A phone-call or video-conference in which two or more people, who are
      * not in the same room, are actively participating.
@@ -330,8 +276,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
-     *
-     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -340,8 +284,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICEMAIL_VALUE = 4; /** - * - * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -350,8 +292,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** - * - * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -360,8 +300,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICE_SEARCH_VALUE = 6; /** - * - * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -370,8 +308,6 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VOICE_COMMAND_VALUE = 7; /** - * - * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -381,6 +317,7 @@ public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int DICTATION_VALUE = 8;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -405,57 +342,46 @@ public static InteractionType valueOf(int value) {
      */
     public static InteractionType forNumber(int value) {
       switch (value) {
-        case 0:
-          return INTERACTION_TYPE_UNSPECIFIED;
-        case 1:
-          return DISCUSSION;
-        case 2:
-          return PRESENTATION;
-        case 3:
-          return PHONE_CALL;
-        case 4:
-          return VOICEMAIL;
-        case 5:
-          return PROFESSIONALLY_PRODUCED;
-        case 6:
-          return VOICE_SEARCH;
-        case 7:
-          return VOICE_COMMAND;
-        case 8:
-          return DICTATION;
-        default:
-          return null;
+        case 0: return INTERACTION_TYPE_UNSPECIFIED;
+        case 1: return DISCUSSION;
+        case 2: return PRESENTATION;
+        case 3: return PHONE_CALL;
+        case 4: return VOICEMAIL;
+        case 5: return PROFESSIONALLY_PRODUCED;
+        case 6: return VOICE_SEARCH;
+        case 7: return VOICE_COMMAND;
+        case 8: return DICTATION;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        InteractionType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public InteractionType findValueByNumber(int number) {
+              return InteractionType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public InteractionType findValueByNumber(int number) {
-                return InteractionType.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final InteractionType[] VALUES = values();
@@ -463,7 +389,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static InteractionType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -481,18 +408,15 @@ private InteractionType(int value) {
   }
 
   /**
-   *
-   *
    * 
    * Enumerates the types of capture settings describing an audio file.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance} */ - public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnum { + public enum MicrophoneDistance + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Audio type is not known.
      * 
@@ -501,8 +425,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MICROPHONE_DISTANCE_UNSPECIFIED(0), /** - * - * *
      * The audio was captured from a closely placed microphone. Eg. phone,
      * dictaphone, or handheld microphone. Generally if there speaker is within
@@ -513,8 +435,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     NEARFIELD(1),
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -523,8 +443,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ MIDFIELD(2), /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -536,8 +454,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu ; /** - * - * *
      * Audio type is not known.
      * 
@@ -546,8 +462,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ public static final int MICROPHONE_DISTANCE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The audio was captured from a closely placed microphone. Eg. phone,
      * dictaphone, or handheld microphone. Generally if there speaker is within
@@ -558,8 +472,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
-     *
-     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -568,8 +480,6 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ public static final int MIDFIELD_VALUE = 2; /** - * - * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -578,6 +488,7 @@ public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnu */ public static final int FARFIELD_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -602,16 +513,11 @@ public static MicrophoneDistance valueOf(int value) { */ public static MicrophoneDistance forNumber(int value) { switch (value) { - case 0: - return MICROPHONE_DISTANCE_UNSPECIFIED; - case 1: - return NEARFIELD; - case 2: - return MIDFIELD; - case 3: - return FARFIELD; - default: - return null; + case 0: return MICROPHONE_DISTANCE_UNSPECIFIED; + case 1: return NEARFIELD; + case 2: return MIDFIELD; + case 3: return FARFIELD; + default: return null; } } @@ -619,31 +525,29 @@ public static MicrophoneDistance forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + MicrophoneDistance> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MicrophoneDistance findValueByNumber(int number) { + return MicrophoneDistance.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MicrophoneDistance findValueByNumber(int number) { - return MicrophoneDistance.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor().getEnumTypes().get(1); } private static final MicrophoneDistance[] VALUES = values(); @@ -651,7 +555,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static MicrophoneDistance valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -669,18 +574,15 @@ private MicrophoneDistance(int value) { } /** - * - * *
    * The original media the speech was recorded on.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType} */ - public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum { + public enum OriginalMediaType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * Unknown original media type.
      * 
@@ -689,8 +591,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -699,8 +599,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ AUDIO(1), /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -712,8 +610,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
      * Unknown original media type.
      * 
@@ -722,8 +618,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The speech data is an audio recording.
      * 
@@ -732,8 +626,6 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int AUDIO_VALUE = 1; /** - * - * *
      * The speech data originally recorded on a video.
      * 
@@ -742,6 +634,7 @@ public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum */ public static final int VIDEO_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -766,14 +659,10 @@ public static OriginalMediaType valueOf(int value) { */ public static OriginalMediaType forNumber(int value) { switch (value) { - case 0: - return ORIGINAL_MEDIA_TYPE_UNSPECIFIED; - case 1: - return AUDIO; - case 2: - return VIDEO; - default: - return null; + case 0: return ORIGINAL_MEDIA_TYPE_UNSPECIFIED; + case 1: return AUDIO; + case 2: return VIDEO; + default: return null; } } @@ -781,31 +670,29 @@ public static OriginalMediaType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + OriginalMediaType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OriginalMediaType findValueByNumber(int number) { + return OriginalMediaType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OriginalMediaType findValueByNumber(int number) { - return OriginalMediaType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor() - .getEnumTypes() - .get(2); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor().getEnumTypes().get(2); } private static final OriginalMediaType[] VALUES = values(); @@ -813,7 +700,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static OriginalMediaType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -831,18 +719,15 @@ private OriginalMediaType(int value) { } /** - * - * *
    * The type of device the speech was recorded with.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType} */ - public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEnum { + public enum RecordingDeviceType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * The recording device is unknown.
      * 
@@ -851,8 +736,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -861,8 +744,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ SMARTPHONE(1), /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -871,8 +752,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PC(2), /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -881,8 +760,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ PHONE_LINE(3), /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -891,8 +768,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ VEHICLE(4), /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -901,8 +776,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ OTHER_OUTDOOR_DEVICE(5), /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -914,8 +787,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn ; /** - * - * *
      * The recording device is unknown.
      * 
@@ -924,8 +795,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Speech was recorded on a smartphone.
      * 
@@ -934,8 +803,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int SMARTPHONE_VALUE = 1; /** - * - * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -944,8 +811,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PC_VALUE = 2; /** - * - * *
      * Speech was recorded over a phone line.
      * 
@@ -954,8 +819,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int PHONE_LINE_VALUE = 3; /** - * - * *
      * Speech was recorded in a vehicle.
      * 
@@ -964,8 +827,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int VEHICLE_VALUE = 4; /** - * - * *
      * Speech was recorded outdoors.
      * 
@@ -974,8 +835,6 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** - * - * *
      * Speech was recorded indoors.
      * 
@@ -984,6 +843,7 @@ public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEn */ public static final int OTHER_INDOOR_DEVICE_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -1008,22 +868,14 @@ public static RecordingDeviceType valueOf(int value) { */ public static RecordingDeviceType forNumber(int value) { switch (value) { - case 0: - return RECORDING_DEVICE_TYPE_UNSPECIFIED; - case 1: - return SMARTPHONE; - case 2: - return PC; - case 3: - return PHONE_LINE; - case 4: - return VEHICLE; - case 5: - return OTHER_OUTDOOR_DEVICE; - case 6: - return OTHER_INDOOR_DEVICE; - default: - return null; + case 0: return RECORDING_DEVICE_TYPE_UNSPECIFIED; + case 1: return SMARTPHONE; + case 2: return PC; + case 3: return PHONE_LINE; + case 4: return VEHICLE; + case 5: return OTHER_OUTDOOR_DEVICE; + case 6: return OTHER_INDOOR_DEVICE; + default: return null; } } @@ -1031,31 +883,29 @@ public static RecordingDeviceType forNumber(int value) { internalGetValueMap() { return internalValueMap; } + private static final com.google.protobuf.Internal.EnumLiteMap< + RecordingDeviceType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RecordingDeviceType findValueByNumber(int number) { + return RecordingDeviceType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RecordingDeviceType findValueByNumber(int number) { - return RecordingDeviceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor() - .getEnumTypes() - .get(3); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor().getEnumTypes().get(3); } private static final RecordingDeviceType[] VALUES = values(); @@ -1063,7 +913,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static RecordingDeviceType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -1083,50 +934,33 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override - public int getInteractionTypeValue() { + @java.lang.Override public int getInteractionTypeValue() { return interactionType_; } /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The interactionType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType - getInteractionType() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( - interactionType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -1135,7 +969,6 @@ public int getInteractionTypeValue() {
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1146,140 +979,87 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override - public int getMicrophoneDistanceValue() { + @java.lang.Override public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance - getMicrophoneDistance() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override - public int getOriginalMediaTypeValue() { + @java.lang.Override public int getOriginalMediaTypeValue() { return originalMediaType_; } /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType - getOriginalMediaType() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override - public int getRecordingDeviceTypeValue() { + @java.lang.Override public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1287,7 +1067,6 @@ public int getRecordingDeviceTypeValue() {
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ @java.lang.Override @@ -1296,15 +1075,14 @@ public java.lang.String getRecordingDeviceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordingDeviceName_ = s; return s; } } /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1312,15 +1090,16 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string recording_device_name = 7; - * * @return The bytes for recordingDeviceName. */ @java.lang.Override - public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { + public com.google.protobuf.ByteString + getRecordingDeviceNameBytes() { java.lang.Object ref = recordingDeviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recordingDeviceName_ = b; return b; } else { @@ -1331,8 +1110,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1341,7 +1118,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ @java.lang.Override @@ -1350,15 +1126,14 @@ public java.lang.String getOriginalMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalMimeType_ = s; return s; } } /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1367,15 +1142,16 @@ public java.lang.String getOriginalMimeType() {
    * 
* * string original_mime_type = 8; - * * @return The bytes for originalMimeType. */ @java.lang.Override - public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { + public com.google.protobuf.ByteString + getOriginalMimeTypeBytes() { java.lang.Object ref = originalMimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); originalMimeType_ = b; return b; } else { @@ -1386,37 +1162,30 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { public static final int OBFUSCATED_ID_FIELD_NUMBER = 9; private long obfuscatedId_; /** - * - * *
    * Obfuscated (privacy-protected) ID of the user, to identify number of
    * unique users using the service.
    * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See - * google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @return The obfuscatedId. */ @java.lang.Override - @java.lang.Deprecated - public long getObfuscatedId() { + @java.lang.Deprecated public long getObfuscatedId() { return obfuscatedId_; } public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The audioTopic. */ @java.lang.Override @@ -1425,30 +1194,30 @@ public java.lang.String getAudioTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audioTopic_ = s; return s; } } /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The bytes for audioTopic. */ @java.lang.Override - public com.google.protobuf.ByteString getAudioTopicBytes() { + public com.google.protobuf.ByteString + getAudioTopicBytes() { java.lang.Object ref = audioTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); audioTopic_ = b; return b; } else { @@ -1457,7 +1226,6 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1469,32 +1237,21 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (interactionType_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType - .INTERACTION_TYPE_UNSPECIFIED - .getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (interactionType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.INTERACTION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, interactionType_); } if (industryNaicsCodeOfAudio_ != 0) { output.writeUInt32(3, industryNaicsCodeOfAudio_); } - if (microphoneDistance_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance - .MICROPHONE_DISTANCE_UNSPECIFIED - .getNumber()) { + if (microphoneDistance_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.MICROPHONE_DISTANCE_UNSPECIFIED.getNumber()) { output.writeEnum(4, microphoneDistance_); } - if (originalMediaType_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType - .ORIGINAL_MEDIA_TYPE_UNSPECIFIED - .getNumber()) { + if (originalMediaType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.ORIGINAL_MEDIA_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, originalMediaType_); } - if (recordingDeviceType_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType - .RECORDING_DEVICE_TYPE_UNSPECIFIED - .getNumber()) { + if (recordingDeviceType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.RECORDING_DEVICE_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(6, recordingDeviceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordingDeviceName_)) { @@ -1518,32 +1275,25 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (interactionType_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType - .INTERACTION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, interactionType_); + if (interactionType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.INTERACTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, interactionType_); } if (industryNaicsCodeOfAudio_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, industryNaicsCodeOfAudio_); - } - if (microphoneDistance_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance - .MICROPHONE_DISTANCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, microphoneDistance_); - } - if (originalMediaType_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType - .ORIGINAL_MEDIA_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, originalMediaType_); - } - if (recordingDeviceType_ - != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType - .RECORDING_DEVICE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, recordingDeviceType_); + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, industryNaicsCodeOfAudio_); + } + if (microphoneDistance_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.MICROPHONE_DISTANCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, microphoneDistance_); + } + if (originalMediaType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.ORIGINAL_MEDIA_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, originalMediaType_); + } + if (recordingDeviceType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.RECORDING_DEVICE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, recordingDeviceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordingDeviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, recordingDeviceName_); @@ -1552,7 +1302,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, originalMimeType_); } if (obfuscatedId_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, obfuscatedId_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(9, obfuscatedId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audioTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, audioTopic_); @@ -1565,23 +1316,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = - (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() + != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; - if (getObfuscatedId() != other.getObfuscatedId()) return false; - if (!getAudioTopic().equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName() + .equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType() + .equals(other.getOriginalMimeType())) return false; + if (getObfuscatedId() + != other.getObfuscatedId()) return false; + if (!getAudioTopic() + .equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1608,7 +1363,8 @@ public int hashCode() { hash = (37 * hash) + ORIGINAL_MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getOriginalMimeType().hashCode(); hash = (37 * hash) + OBFUSCATED_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObfuscatedId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObfuscatedId()); hash = (37 * hash) + AUDIO_TOPIC_FIELD_NUMBER; hash = (53 * hash) + getAudioTopic().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1617,127 +1373,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionMetadata) com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder() @@ -1745,15 +1491,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1779,9 +1526,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override @@ -1800,8 +1547,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = - new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1819,39 +1565,38 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata)other); } else { super.mergeFrom(other); return this; @@ -1859,8 +1604,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionMetadata other) { - if (other == com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) return this; if (other.interactionType_ != 0) { setInteractionTypeValue(other.getInteractionTypeValue()); } @@ -1910,8 +1654,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1923,114 +1666,80 @@ public Builder mergeFrom( private int interactionType_ = 0; /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override - public int getInteractionTypeValue() { + @java.lang.Override public int getInteractionTypeValue() { return interactionType_; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The interactionType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType - getInteractionType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( - interactionType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_; + private int industryNaicsCodeOfAudio_ ; /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -2039,7 +1748,6 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -2047,8 +1755,6 @@ public int getIndustryNaicsCodeOfAudio() { return industryNaicsCodeOfAudio_; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -2057,19 +1763,16 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** - * - * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -2078,11 +1781,10 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -2090,105 +1792,73 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override - public int getMicrophoneDistanceValue() { + @java.lang.Override public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance - getMicrophoneDistance() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( - microphoneDistance_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -2196,105 +1866,73 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override - public int getOriginalMediaTypeValue() { + @java.lang.Override public int getOriginalMediaTypeValue() { return originalMediaType_; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType - getOriginalMediaType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( - originalMediaType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The original media the speech was recorded on.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -2302,105 +1940,73 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override - public int getRecordingDeviceTypeValue() { + @java.lang.Override public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( - recordingDeviceType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); + return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The type of device the speech was recorded with.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -2408,8 +2014,6 @@ public Builder clearRecordingDeviceType() { private java.lang.Object recordingDeviceName_ = ""; /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2417,13 +2021,13 @@ public Builder clearRecordingDeviceType() {
      * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ public java.lang.String getRecordingDeviceName() { java.lang.Object ref = recordingDeviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordingDeviceName_ = s; return s; @@ -2432,8 +2036,6 @@ public java.lang.String getRecordingDeviceName() { } } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2441,14 +2043,15 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; - * * @return The bytes for recordingDeviceName. */ - public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { + public com.google.protobuf.ByteString + getRecordingDeviceNameBytes() { java.lang.Object ref = recordingDeviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); recordingDeviceName_ = b; return b; } else { @@ -2456,8 +2059,6 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { } } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2465,22 +2066,20 @@ public com.google.protobuf.ByteString getRecordingDeviceNameBytes() {
      * 
* * string recording_device_name = 7; - * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName(java.lang.String value) { + public Builder setRecordingDeviceName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2488,18 +2087,15 @@ public Builder setRecordingDeviceName(java.lang.String value) {
      * 
* * string recording_device_name = 7; - * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** - * - * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2507,16 +2103,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; - * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2524,8 +2120,6 @@ public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) private java.lang.Object originalMimeType_ = ""; /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2534,13 +2128,13 @@ public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value)
      * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ public java.lang.String getOriginalMimeType() { java.lang.Object ref = originalMimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalMimeType_ = s; return s; @@ -2549,8 +2143,6 @@ public java.lang.String getOriginalMimeType() { } } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2559,14 +2151,15 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; - * * @return The bytes for originalMimeType. */ - public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { + public com.google.protobuf.ByteString + getOriginalMimeTypeBytes() { java.lang.Object ref = originalMimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); originalMimeType_ = b; return b; } else { @@ -2574,8 +2167,6 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { } } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2584,22 +2175,20 @@ public com.google.protobuf.ByteString getOriginalMimeTypeBytes() {
      * 
* * string original_mime_type = 8; - * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType(java.lang.String value) { + public Builder setOriginalMimeType( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2608,18 +2197,15 @@ public Builder setOriginalMimeType(java.lang.String value) {
      * 
* * string original_mime_type = 8; - * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** - * - * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2628,80 +2214,68 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; - * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; } - private long obfuscatedId_; + private long obfuscatedId_ ; /** - * - * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @return The obfuscatedId. */ @java.lang.Override - @java.lang.Deprecated - public long getObfuscatedId() { + @java.lang.Deprecated public long getObfuscatedId() { return obfuscatedId_; } /** - * - * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @param value The obfuscatedId to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setObfuscatedId(long value) { - + @java.lang.Deprecated public Builder setObfuscatedId(long value) { + obfuscatedId_ = value; onChanged(); return this; } /** - * - * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearObfuscatedId() { - + @java.lang.Deprecated public Builder clearObfuscatedId() { + obfuscatedId_ = 0L; onChanged(); return this; @@ -2709,21 +2283,19 @@ public Builder clearObfuscatedId() { private java.lang.Object audioTopic_ = ""; /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @return The audioTopic. */ public java.lang.String getAudioTopic() { java.lang.Object ref = audioTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audioTopic_ = s; return s; @@ -2732,22 +2304,21 @@ public java.lang.String getAudioTopic() { } } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @return The bytes for audioTopic. */ - public com.google.protobuf.ByteString getAudioTopicBytes() { + public com.google.protobuf.ByteString + getAudioTopicBytes() { java.lang.Object ref = audioTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); audioTopic_ = b; return b; } else { @@ -2755,71 +2326,64 @@ public com.google.protobuf.ByteString getAudioTopicBytes() { } } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic(java.lang.String value) { + public Builder setAudioTopic( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** - * - * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; - * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2829,12 +2393,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognitionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionMetadata) private static final com.google.cloud.speech.v1p1beta1.RecognitionMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(); } @@ -2843,16 +2407,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2867,4 +2431,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java similarity index 69% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java index cebde2a8f..64e8e2e34 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java @@ -1,59 +1,32 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -@java.lang.Deprecated -public interface RecognitionMetadataOrBuilder - extends +@java.lang.Deprecated public interface RecognitionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The enum numeric value on the wire for interactionType. */ int getInteractionTypeValue(); /** - * - * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; * @return The interactionType. */ com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType(); /** - * - * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -62,102 +35,68 @@ public interface RecognitionMetadataOrBuilder
    * 
* * uint32 industry_naics_code_of_audio = 3; - * * @return The industryNaicsCodeOfAudio. */ int getIndustryNaicsCodeOfAudio(); /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The enum numeric value on the wire for microphoneDistance. */ int getMicrophoneDistanceValue(); /** - * - * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; * @return The microphoneDistance. */ com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance(); /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The enum numeric value on the wire for originalMediaType. */ int getOriginalMediaTypeValue(); /** - * - * *
    * The original media the speech was recorded on.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; * @return The originalMediaType. */ com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType(); /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The enum numeric value on the wire for recordingDeviceType. */ int getRecordingDeviceTypeValue(); /** - * - * *
    * The type of device the speech was recorded with.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; * @return The recordingDeviceType. */ - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType - getRecordingDeviceType(); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType(); /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -165,13 +104,10 @@ public interface RecognitionMetadataOrBuilder
    * 
* * string recording_device_name = 7; - * * @return The recordingDeviceName. */ java.lang.String getRecordingDeviceName(); /** - * - * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -179,14 +115,12 @@ public interface RecognitionMetadataOrBuilder
    * 
* * string recording_device_name = 7; - * * @return The bytes for recordingDeviceName. */ - com.google.protobuf.ByteString getRecordingDeviceNameBytes(); + com.google.protobuf.ByteString + getRecordingDeviceNameBytes(); /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -195,13 +129,10 @@ public interface RecognitionMetadataOrBuilder
    * 
* * string original_mime_type = 8; - * * @return The originalMimeType. */ java.lang.String getOriginalMimeType(); /** - * - * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -210,52 +141,43 @@ public interface RecognitionMetadataOrBuilder
    * 
* * string original_mime_type = 8; - * * @return The bytes for originalMimeType. */ - com.google.protobuf.ByteString getOriginalMimeTypeBytes(); + com.google.protobuf.ByteString + getOriginalMimeTypeBytes(); /** - * - * *
    * Obfuscated (privacy-protected) ID of the user, to identify number of
    * unique users using the service.
    * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * - * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See - * google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. + * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @return The obfuscatedId. */ - @java.lang.Deprecated - long getObfuscatedId(); + @java.lang.Deprecated long getObfuscatedId(); /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** - * - * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; - * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString getAudioTopicBytes(); + com.google.protobuf.ByteString + getAudioTopicBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java similarity index 61% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java index 55aa64e15..b8acfd307 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ -public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class RecognizeRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) RecognizeRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private RecognizeRequest() {} + private RecognizeRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,47 +52,39 @@ private RecognizeRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +92,35 @@ private RecognizeRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, - com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -159,36 +128,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -198,16 +156,11 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ @java.lang.Override @@ -215,34 +168,23 @@ public boolean hasAudio() { return audio_ != null; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } /** - * - * *
    * Required. The audio data to be recognized.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -250,7 +192,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +203,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -279,10 +221,12 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -292,21 +236,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeRequest other = - (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.RecognizeRequest other = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio().equals(other.getAudio())) return false; + if (!getAudio() + .equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -333,126 +278,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) com.google.cloud.speech.v1p1beta1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, - com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognizeRequest.newBuilder() @@ -460,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,9 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override @@ -509,8 +446,7 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognizeRequest result = - new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); + com.google.cloud.speech.v1p1beta1.RecognizeRequest result = new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -529,39 +465,38 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest)other); } else { super.mergeFrom(other); return this; @@ -569,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognizeRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.RecognizeRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.RecognizeRequest.getDefaultInstance()) return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -596,8 +530,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -609,61 +542,42 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> - configBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_; /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -679,16 +593,12 @@ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig val return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig( com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder builderForValue) { @@ -702,24 +612,18 @@ public Builder setConfig( return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -731,16 +635,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -754,67 +654,51 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; @@ -822,58 +706,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> - audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } else { return audioBuilder_.getMessage(); } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -889,15 +754,11 @@ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAudio( com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder builderForValue) { @@ -911,23 +772,17 @@ public Builder setAudio( return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); } else { audio_ = value; } @@ -939,15 +794,11 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -961,71 +812,55 @@ public Builder clearAudio() { return this; } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() - : audio_; + return audio_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; } } /** - * - * *
      * Required. The audio data to be recognized.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), getParentForChildren(), isClean()); + audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), + getParentForChildren(), + isClean()); audio_ = null; } return audioBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1035,12 +870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognizeRequest) private static final com.google.cloud.speech.v1p1beta1.RecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognizeRequest(); } @@ -1049,16 +884,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1073,4 +908,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..2e594dfdd --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface RecognizeRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return The config. + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); + /** + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The audio. + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); + /** + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java similarity index 73% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java index ce9087c8c..fe9f8b28c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
  */
-public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class RecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,42 +56,35 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 26:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
+            }
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -116,7 +92,8 @@ private RecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -125,27 +102,22 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
-            com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -154,13 +126,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getResultsList() {
+  public java.util.List getResultsList() {
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -169,14 +138,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+  public java.util.List 
       getResultsOrBuilderList() {
     return results_;
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -189,8 +155,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -203,8 +167,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
     return results_.get(index);
   }
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -221,14 +183,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
   public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Duration totalBilledTime_;
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -236,25 +195,18 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -267,7 +219,6 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -279,7 +230,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } @@ -296,10 +248,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -309,18 +263,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeResponse other = - (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.RecognizeResponse other = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; - if (!getResultsList().equals(other.getResultsList())) return false; + if (!getResultsList() + .equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime() + .equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -347,103 +302,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -452,23 +400,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
       com.google.cloud.speech.v1p1beta1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
-              com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognizeResponse.newBuilder()
@@ -476,17 +422,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -506,9 +452,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -527,8 +473,7 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognizeResponse result =
-          new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.RecognizeResponse result = new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -552,39 +497,38 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -592,8 +536,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognizeResponse other) {
-      if (other == com.google.cloud.speech.v1p1beta1.RecognizeResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.RecognizeResponse.getDefaultInstance()) return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -612,10 +555,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognizeResponse oth
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -643,8 +585,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -653,30 +594,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -684,8 +616,7 @@ private void ensureResultsIsMutable() {
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsList() {
+    public java.util.List getResultsList() {
       if (resultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(results_);
       } else {
@@ -693,8 +624,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -710,8 +639,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -727,8 +654,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -751,8 +676,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -761,8 +684,7 @@ public Builder setResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder setResults(
-        int index,
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.set(index, builderForValue.build());
@@ -773,8 +695,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -796,8 +716,6 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -820,8 +738,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -841,8 +757,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -851,8 +765,7 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder addResults(
-        int index,
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.add(index, builderForValue.build());
@@ -863,8 +776,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -873,11 +784,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder addAllResults(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -885,8 +796,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -905,8 +814,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -925,8 +832,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -939,8 +844,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder getResu
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -951,14 +854,11 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder getResu
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);
-      } else {
+        return results_.get(index);  } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -966,9 +866,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List<
-            ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -976,8 +875,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -986,13 +883,10 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1002,14 +896,10 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
      */
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index,
-              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1017,23 +907,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
-                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1041,47 +928,34 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        totalBilledTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1102,15 +976,14 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime( + com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1121,8 +994,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1133,9 +1004,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); } else { totalBilledTime_ = value; } @@ -1147,8 +1016,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1167,8 +1034,6 @@ public Builder clearTotalBilledTime() { return this; } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1176,13 +1041,11 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1193,14 +1056,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { if (totalBilledTimeBuilder_ != null) { return totalBilledTimeBuilder_.getMessageOrBuilder(); } else { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } } /** - * - * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1208,24 +1068,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), getParentForChildren(), isClean()); + totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), + getParentForChildren(), + isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1235,12 +1092,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognizeResponse) private static final com.google.cloud.speech.v1p1beta1.RecognizeResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognizeResponse(); } @@ -1249,16 +1106,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1273,4 +1130,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java index c03d3c9b7..d558c9d50 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognizeResponseOrBuilder - extends +public interface RecognizeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -33,10 +15,9 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -46,8 +27,6 @@ public interface RecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -57,8 +36,6 @@ public interface RecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -66,11 +43,9 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -78,35 +53,28 @@ public interface RecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java similarity index 72% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java index 74cddaf21..936d08258 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeakerDiarizationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SpeakerDiarizationConfig() {} + private SpeakerDiarizationConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,33 +52,33 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: - { - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: - { - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: - { - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: - { - speakerTag_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: { + + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: { + + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: { + + speakerTag_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,33 +86,29 @@ private SpeakerDiarizationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -136,7 +116,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -147,8 +126,6 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -156,7 +133,6 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -167,8 +143,6 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -176,7 +150,6 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -187,27 +160,21 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** - * - * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @return The speakerTag. */ @java.lang.Override - @java.lang.Deprecated - public int getSpeakerTag() { + @java.lang.Deprecated public int getSpeakerTag() { return speakerTag_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -219,7 +186,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (enableSpeakerDiarization_ != false) { output.writeBool(1, enableSpeakerDiarization_); } @@ -242,16 +210,20 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -261,18 +233,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = - (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() + != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() + != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() + != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() + != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -285,7 +260,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpeakerDiarization()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableSpeakerDiarization()); hash = (37 * hash) + MIN_SPEAKER_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMinSpeakerCount(); hash = (37 * hash) + MAX_SPEAKER_COUNT_FIELD_NUMBER; @@ -298,127 +274,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder() @@ -426,15 +392,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -450,9 +417,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override @@ -471,8 +438,7 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = - new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -485,39 +451,38 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)other); } else { super.mergeFrom(other); return this; @@ -525,8 +490,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()) return this; if (other.getEnableSpeakerDiarization() != false) { setEnableSpeakerDiarization(other.getEnableSpeakerDiarization()); } @@ -558,8 +522,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -569,10 +532,8 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_; + private boolean enableSpeakerDiarization_ ; /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -580,7 +541,6 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -588,8 +548,6 @@ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -597,19 +555,16 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; - * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** - * - * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -617,20 +572,17 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; - * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_; + private int minSpeakerCount_ ; /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -638,7 +590,6 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ @java.lang.Override @@ -646,8 +597,6 @@ public int getMinSpeakerCount() { return minSpeakerCount_; } /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -655,19 +604,16 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; - * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -675,20 +621,17 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; - * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_; + private int maxSpeakerCount_ ; /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -696,7 +639,6 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ @java.lang.Override @@ -704,8 +646,6 @@ public int getMaxSpeakerCount() { return maxSpeakerCount_; } /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -713,19 +653,16 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; - * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** - * - * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -733,82 +670,66 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; - * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_; + private int speakerTag_ ; /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @return The speakerTag. */ @java.lang.Override - @java.lang.Deprecated - public int getSpeakerTag() { + @java.lang.Deprecated public int getSpeakerTag() { return speakerTag_; } /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearSpeakerTag() { - + @java.lang.Deprecated public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -818,12 +739,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) private static final com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(); } @@ -832,16 +753,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -856,4 +777,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java similarity index 68% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java index 00c1be0d0..bc23982ea 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeakerDiarizationConfigOrBuilder - extends +public interface SpeakerDiarizationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -33,14 +15,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * bool enable_speaker_diarization = 1; - * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** - * - * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -48,14 +27,11 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 min_speaker_count = 2; - * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** - * - * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -63,25 +39,19 @@ public interface SpeakerDiarizationConfigOrBuilder
    * 
* * int32 max_speaker_count = 3; - * * @return The maxSpeakerCount. */ int getMaxSpeakerCount(); /** - * - * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @return The speakerTag. */ - @java.lang.Deprecated - int getSpeakerTag(); + @java.lang.Deprecated int getSpeakerTag(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java similarity index 79% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java index 5ba85b0e0..020d93047 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ -public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechAdaptation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) SpeechAdaptationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -45,15 +27,16 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,47 +56,40 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - phraseSets_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - phraseSetReferences_.add(s); - break; + phraseSets_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - case 26: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - customClasses_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; + phraseSetReferences_.add(s); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + customClasses_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,7 +97,8 @@ private SpeechAdaptation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -136,27 +113,22 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** - * - * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -170,8 +142,6 @@ public java.util.List getPhraseSets
     return phraseSets_;
   }
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -181,13 +151,11 @@ public java.util.List getPhraseSets
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getPhraseSetsOrBuilderList() {
     return phraseSets_;
   }
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -201,8 +169,6 @@ public int getPhraseSetsCount() {
     return phraseSets_.size();
   }
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -216,8 +182,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
     return phraseSets_.get(index);
   }
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -227,52 +191,42 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
+  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+      int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
-   *
-   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList + getPhraseSetReferencesList() { return phraseSetReferences_; } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -280,27 +234,22 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** - * - * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -315,8 +264,6 @@ public java.util.List getCustomCl
     return customClasses_;
   }
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -327,13 +274,11 @@ public java.util.List getCustomCl
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getCustomClassesOrBuilderList() {
     return customClasses_;
   }
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -348,8 +293,6 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -364,8 +307,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index)
     return customClasses_.get(index);
   }
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -382,7 +323,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -394,7 +334,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < phraseSets_.size(); i++) {
       output.writeMessage(1, phraseSets_.get(i));
     }
@@ -414,7 +355,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < phraseSets_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, phraseSets_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, phraseSets_.get(i));
     }
     {
       int dataSize = 0;
@@ -425,7 +367,8 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -435,17 +378,19 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other =
-        (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList()
+        .equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList()
+        .equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList()
+        .equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -475,126 +420,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder() @@ -602,18 +538,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -635,9 +571,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override @@ -656,8 +592,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = - new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -690,39 +625,38 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation)other); } else { super.mergeFrom(other); return this; @@ -730,8 +664,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) return this; if (phraseSetsBuilder_ == null) { if (!other.phraseSets_.isEmpty()) { if (phraseSets_.isEmpty()) { @@ -750,10 +683,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation othe phraseSetsBuilder_ = null; phraseSets_ = other.phraseSets_; bitField0_ = (bitField0_ & ~0x00000001); - phraseSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPhraseSetsFieldBuilder() - : null; + phraseSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPhraseSetsFieldBuilder() : null; } else { phraseSetsBuilder_.addAllMessages(other.phraseSets_); } @@ -787,10 +719,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation othe customClassesBuilder_ = null; customClasses_ = other.customClasses_; bitField0_ = (bitField0_ & ~0x00000004); - customClassesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getCustomClassesFieldBuilder() - : null; + customClassesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getCustomClassesFieldBuilder() : null; } else { customClassesBuilder_.addAllMessages(other.customClasses_); } @@ -815,8 +746,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -825,29 +755,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = - new java.util.ArrayList(phraseSets_); + phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> - phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; /** - * - * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -864,8 +786,6 @@ public java.util.List getPhraseSets
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -882,8 +802,6 @@ public int getPhraseSetsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -900,8 +818,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -910,7 +826,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public Builder setPhraseSets(int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) {
+    public Builder setPhraseSets(
+        int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) {
       if (phraseSetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -924,8 +841,6 @@ public Builder setPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -946,8 +861,6 @@ public Builder setPhraseSets(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -970,8 +883,6 @@ public Builder addPhraseSets(com.google.cloud.speech.v1p1beta1.PhraseSet value)
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -980,7 +891,8 @@ public Builder addPhraseSets(com.google.cloud.speech.v1p1beta1.PhraseSet value)
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public Builder addPhraseSets(int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) {
+    public Builder addPhraseSets(
+        int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) {
       if (phraseSetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -994,8 +906,6 @@ public Builder addPhraseSets(int index, com.google.cloud.speech.v1p1beta1.Phrase
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1016,8 +926,6 @@ public Builder addPhraseSets(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1038,8 +946,6 @@ public Builder addPhraseSets(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1052,7 +958,8 @@ public Builder addAllPhraseSets(
         java.lang.Iterable values) {
       if (phraseSetsBuilder_ == null) {
         ensurePhraseSetsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSets_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, phraseSets_);
         onChanged();
       } else {
         phraseSetsBuilder_.addAllMessages(values);
@@ -1060,8 +967,6 @@ public Builder addAllPhraseSets(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1081,8 +986,6 @@ public Builder clearPhraseSets() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1102,8 +1005,6 @@ public Builder removePhraseSets(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1112,12 +1013,11 @@ public Builder removePhraseSets(int index) {
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder(int index) {
+    public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder(
+        int index) {
       return getPhraseSetsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1126,16 +1026,14 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
+    public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+        int index) {
       if (phraseSetsBuilder_ == null) {
-        return phraseSets_.get(index);
-      } else {
+        return phraseSets_.get(index);  } else {
         return phraseSetsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1144,8 +1042,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public java.util.List
-        getPhraseSetsOrBuilderList() {
+    public java.util.List 
+         getPhraseSetsOrBuilderList() {
       if (phraseSetsBuilder_ != null) {
         return phraseSetsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1153,8 +1051,6 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1164,12 +1060,10 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
     public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder() {
-      return getPhraseSetsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance());
+      return getPhraseSetsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1178,13 +1072,12 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(int index) {
-      return getPhraseSetsFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance());
+    public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(
+        int index) {
+      return getPhraseSetsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1193,77 +1086,61 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public java.util.List
-        getPhraseSetsBuilderList() {
+    public java.util.List 
+         getPhraseSetsBuilderList() {
       return getPhraseSetsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.PhraseSet,
-            com.google.cloud.speech.v1p1beta1.PhraseSet.Builder,
-            com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>
+        com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> 
         getPhraseSetsFieldBuilder() {
       if (phraseSetsBuilder_ == null) {
-        phraseSetsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.PhraseSet,
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Builder,
-                com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>(
-                phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>(
+                phraseSets_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         phraseSets_ = null;
       }
       return phraseSetsBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList phraseSetReferences_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensurePhraseSetReferencesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(phraseSetReferences_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList + getPhraseSetReferencesList() { return phraseSetReferences_.getUnmodifiableView(); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -1271,95 +1148,80 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences(int index, java.lang.String value) { + public Builder setPhraseSetReferences( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences(java.lang.String value) { + public Builder addPhraseSetReferences( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences(java.lang.Iterable values) { + public Builder addAllPhraseSetReferences( + java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phraseSetReferences_); onChanged(); return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1369,23 +1231,20 @@ public Builder clearPhraseSetReferences() { return this; } /** - * - * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1393,25 +1252,18 @@ public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) } private java.util.List customClasses_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - customClasses_ = - new java.util.ArrayList(customClasses_); + customClasses_ = new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> - customClassesBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassesBuilder_; /** - * - * *
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1429,8 +1281,6 @@ public java.util.List getCustomCl
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1448,8 +1298,6 @@ public int getCustomClassesCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1467,8 +1315,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index)
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1493,8 +1339,6 @@ public Builder setCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1516,8 +1360,6 @@ public Builder setCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1541,8 +1383,6 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1567,8 +1407,6 @@ public Builder addCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1590,8 +1428,6 @@ public Builder addCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1613,8 +1449,6 @@ public Builder addCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1628,7 +1462,8 @@ public Builder addAllCustomClasses(
         java.lang.Iterable values) {
       if (customClassesBuilder_ == null) {
         ensureCustomClassesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customClasses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, customClasses_);
         onChanged();
       } else {
         customClassesBuilder_.addAllMessages(values);
@@ -1636,8 +1471,6 @@ public Builder addAllCustomClasses(
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1658,8 +1491,6 @@ public Builder clearCustomClasses() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1680,8 +1511,6 @@ public Builder removeCustomClasses(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1696,8 +1525,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui
       return getCustomClassesFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1710,14 +1537,11 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui
     public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(
         int index) {
       if (customClassesBuilder_ == null) {
-        return customClasses_.get(index);
-      } else {
+        return customClasses_.get(index);  } else {
         return customClassesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1727,8 +1551,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
      *
      * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
      */
-    public java.util.List
-        getCustomClassesOrBuilderList() {
+    public java.util.List 
+         getCustomClassesOrBuilderList() {
       if (customClassesBuilder_ != null) {
         return customClassesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1736,8 +1560,6 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
       }
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1748,12 +1570,10 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
      * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
      */
     public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBuilder() {
-      return getCustomClassesFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1765,12 +1585,10 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
      */
     public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBuilder(
         int index) {
-      return getCustomClassesFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1780,22 +1598,16 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
      *
      * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
      */
-    public java.util.List
-        getCustomClassesBuilderList() {
+    public java.util.List 
+         getCustomClassesBuilderList() {
       return getCustomClassesFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.CustomClass,
-            com.google.cloud.speech.v1p1beta1.CustomClass.Builder,
-            com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>
+        com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> 
         getCustomClassesFieldBuilder() {
       if (customClassesBuilder_ == null) {
-        customClassesBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.CustomClass,
-                com.google.cloud.speech.v1p1beta1.CustomClass.Builder,
-                com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>(
+        customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>(
                 customClasses_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -1804,9 +1616,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
       }
       return customClassesBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1816,12 +1628,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation)
   private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation();
   }
@@ -1830,16 +1642,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SpeechAdaptation parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SpeechAdaptation(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SpeechAdaptation parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SpeechAdaptation(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1854,4 +1666,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
similarity index 80%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
index b808e4167..64b0f0cb1 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface SpeechAdaptationOrBuilder
-    extends
+public interface SpeechAdaptationOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -34,10 +16,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List getPhraseSetsList();
+  java.util.List 
+      getPhraseSetsList();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -48,8 +29,6 @@ public interface SpeechAdaptationOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index);
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -60,8 +39,6 @@ public interface SpeechAdaptationOrBuilder
    */
   int getPhraseSetsCount();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -70,11 +47,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List
+  java.util.List 
       getPhraseSetsOrBuilderList();
   /**
-   *
-   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -83,66 +58,51 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return A list containing the phraseSetReferences. */ - java.util.List getPhraseSetReferencesList(); + java.util.List + getPhraseSetReferencesList(); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** - * - * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } - * - * + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString + getPhraseSetReferencesBytes(int index); /** - * - * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -152,10 +112,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List getCustomClassesList();
+  java.util.List 
+      getCustomClassesList();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -167,8 +126,6 @@ public interface SpeechAdaptationOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index);
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -180,8 +137,6 @@ public interface SpeechAdaptationOrBuilder
    */
   int getCustomClassesCount();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -191,11 +146,9 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List
+  java.util.List 
       getCustomClassesOrBuilderList();
   /**
-   *
-   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -205,5 +158,6 @@ public interface SpeechAdaptationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(
+      int index);
 }
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
new file mode 100644
index 000000000..0322b2c20
--- /dev/null
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
@@ -0,0 +1,292 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto
+
+package com.google.cloud.speech.v1p1beta1;
+
+public final class SpeechAdaptationProto {
+  private SpeechAdaptationProto() {}
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistryLite registry) {
+  }
+
+  public static void registerAllExtensions(
+      com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions(
+        (com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor;
+  static final 
+    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor
+      getDescriptor() {
+    return descriptor;
+  }
+  private static  com.google.protobuf.Descriptors.FileDescriptor
+      descriptor;
+  static {
+    java.lang.String[] descriptorData = {
+      "\n;google/cloud/speech/v1p1beta1/cloud_sp" +
+      "eech_adaptation.proto\022\035google.cloud.spee" +
+      "ch.v1p1beta1\032\034google/api/annotations.pro" +
+      "to\032\027google/api/client.proto\032\037google/api/" +
+      "field_behavior.proto\032\031google/api/resourc" +
+      "e.proto\032,google/cloud/speech/v1p1beta1/r" +
+      "esource.proto\032\033google/protobuf/empty.pro" +
+      "to\032 google/protobuf/field_mask.proto\"\260\001\n" +
+      "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB" +
+      "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet" +
+      "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s" +
+      "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1" +
+      ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque" +
+      "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp" +
+      "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_" +
+      "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L" +
+      "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" +
+      "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024" +
+      "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A" +
+      "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n" +
+      "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025" +
+      "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003" +
+      "(\0132(.google.cloud.speech.v1p1beta1.Phras" +
+      "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP" +
+      "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s" +
+      "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat" +
+      "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" +
+      "\372A#\022!speech.googleapis.com/CustomClass\022\034" +
+      "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c" +
+      "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet" +
+      "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas" +
+      "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google." +
+      "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022" +
+      "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" +
+      "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam" +
+      "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C" +
+      "ustomClass\"|\n\030ListCustomClassesRequest\0229" +
+      "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi" +
+      "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" +
+      "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes" +
+      "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c" +
+      "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex" +
+      "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR" +
+      "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" +
+      "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326" +
+      "\001\n\017CreatePhraseSet\0225.google.cloud.speech" +
+      ".v1p1beta1.CreatePhraseSetRequest\032(.goog" +
+      "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344" +
+      "\223\002:\"5/v1p1beta1/{parent=projects/*/locat" +
+      "ions/*}/phraseSets:\001*\332A\037parent,phrase_se" +
+      "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl" +
+      "e.cloud.speech.v1p1beta1.GetPhraseSetReq" +
+      "uest\032(.google.cloud.speech.v1p1beta1.Phr" +
+      "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project" +
+      "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n" +
+      "\rListPhraseSet\0223.google.cloud.speech.v1p" +
+      "1beta1.ListPhraseSetRequest\0324.google.clo" +
+      "ud.speech.v1p1beta1.ListPhraseSetRespons" +
+      "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*" +
+      "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up" +
+      "datePhraseSet\0225.google.cloud.speech.v1p1" +
+      "beta1.UpdatePhraseSetRequest\032(.google.cl" +
+      "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@" +
+      "/v1p1beta1/{phrase_set.name=projects/*/l" +
+      "ocations/*/phraseSets/*}:\nphrase_set\332A\026p" +
+      "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe" +
+      "t\0225.google.cloud.speech.v1p1beta1.Delete" +
+      "PhraseSetRequest\032\026.google.protobuf.Empty" +
+      "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo" +
+      "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat" +
+      "eCustomClass\0227.google.cloud.speech.v1p1b" +
+      "eta1.CreateCustomClassRequest\032*.google.c" +
+      "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002" +
+      "=\"8/v1p1beta1/{parent=projects/*/locatio" +
+      "ns/*}/customClasses:\001*\332A#parent,custom_c" +
+      "lass,custom_class_id\022\273\001\n\016GetCustomClass\022" +
+      "4.google.cloud.speech.v1p1beta1.GetCusto" +
+      "mClassRequest\032*.google.cloud.speech.v1p1" +
+      "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n" +
+      "ame=projects/*/locations/*/customClasses" +
+      "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl" +
+      "e.cloud.speech.v1p1beta1.ListCustomClass" +
+      "esRequest\0328.google.cloud.speech.v1p1beta" +
+      "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1" +
+      "p1beta1/{parent=projects/*/locations/*}/" +
+      "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC" +
+      "lass\0227.google.cloud.speech.v1p1beta1.Upd" +
+      "ateCustomClassRequest\032*.google.cloud.spe" +
+      "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1" +
+      "beta1/{custom_class.name=projects/*/loca" +
+      "tions/*/customClasses/*}:\014custom_class\332A" +
+      "\030custom_class,update_mask\022\255\001\n\021DeleteCust" +
+      "omClass\0227.google.cloud.speech.v1p1beta1." +
+      "DeleteCustomClassRequest\032\026.google.protob" +
+      "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje" +
+      "cts/*/locations/*/customClasses/*}\332A\004nam" +
+      "e\032I\312A\025speech.googleapis.com\322A.https://ww" +
+      "w.googleapis.com/auth/cloud-platformB\212\001\n" +
+      "!com.google.cloud.speech.v1p1beta1B\025Spee" +
+      "chAdaptationProtoP\001ZCgoogle.golang.org/g" +
+      "enproto/googleapis/cloud/speech/v1p1beta" +
+      "1;speech\370\001\001\242\002\003GCSb\006proto3"
+    };
+    descriptor = com.google.protobuf.Descriptors.FileDescriptor
+      .internalBuildGeneratedFileFrom(descriptorData,
+        new com.google.protobuf.Descriptors.FileDescriptor[] {
+          com.google.api.AnnotationsProto.getDescriptor(),
+          com.google.api.ClientProto.getDescriptor(),
+          com.google.api.FieldBehaviorProto.getDescriptor(),
+          com.google.api.ResourceProto.getDescriptor(),
+          com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(),
+          com.google.protobuf.EmptyProto.getDescriptor(),
+          com.google.protobuf.FieldMaskProto.getDescriptor(),
+        });
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor,
+        new java.lang.String[] { "Parent", "PhraseSetId", "PhraseSet", });
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor,
+        new java.lang.String[] { "PhraseSet", "UpdateMask", });
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor =
+      getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor,
+        new java.lang.String[] { "PhraseSets", "NextPageToken", });
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor =
+      getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor =
+      getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor,
+        new java.lang.String[] { "Parent", "CustomClassId", "CustomClass", });
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor =
+      getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor,
+        new java.lang.String[] { "CustomClass", "UpdateMask", });
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor =
+      getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor =
+      getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor,
+        new java.lang.String[] { "Parent", "PageSize", "PageToken", });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor =
+      getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor,
+        new java.lang.String[] { "CustomClasses", "NextPageToken", });
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor =
+      getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable = new
+      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+        internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor,
+        new java.lang.String[] { "Name", });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor
+        .internalUpdateFileDescriptor(descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
similarity index 80%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
index cefe57720..b4cbb679d 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
- *
- *
  * 
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
  */
-public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class SpeechContext extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechContext)
     SpeechContextOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,28 +55,27 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                phrases_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              phrases_.add(s);
-              break;
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              phrases_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 37:
-            {
-              boost_ = input.readFloat();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            phrases_.add(s);
+            break;
+          }
+          case 37: {
+
+            boost_ = input.readFloat();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,7 +83,8 @@ private SpeechContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -110,27 +93,22 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.SpeechContext.class,
-            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
-   *
-   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -146,15 +124,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * repeated string phrases = 1; - * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList getPhrasesList() { + public com.google.protobuf.ProtocolStringList + getPhrasesList() { return phrases_; } /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -170,15 +146,12 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() {
    * 
* * repeated string phrases = 1; - * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -194,7 +167,6 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -202,8 +174,6 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -219,19 +189,17 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString getPhrasesBytes(int index) { + public com.google.protobuf.ByteString + getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -244,7 +212,6 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
    * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -253,7 +220,6 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +231,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < phrases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrases_.getRaw(i)); } @@ -290,7 +257,8 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -300,17 +268,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechContext)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechContext other = - (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; + com.google.cloud.speech.v1p1beta1.SpeechContext other = (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; - if (!getPhrasesList().equals(other.getPhrasesList())) return false; + if (!getPhrasesList() + .equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; + != java.lang.Float.floatToIntBits( + other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,110 +296,104 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -438,23 +401,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechContext)
       com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.SpeechContext.class,
-              com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.SpeechContext.newBuilder()
@@ -462,15 +423,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -482,9 +444,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
@@ -503,8 +465,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1p1beta1.SpeechContext result =
-          new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
+      com.google.cloud.speech.v1p1beta1.SpeechContext result = new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -520,39 +481,38 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -560,8 +520,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechContext other) {
-      if (other == com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance()) return this;
       if (!other.phrases_.isEmpty()) {
         if (phrases_.isEmpty()) {
           phrases_ = other.phrases_;
@@ -603,21 +562,16 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -633,15 +587,13 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; - * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList getPhrasesList() { + public com.google.protobuf.ProtocolStringList + getPhrasesList() { return phrases_.getUnmodifiableView(); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -657,15 +609,12 @@ public com.google.protobuf.ProtocolStringList getPhrasesList() {
      * 
* * repeated string phrases = 1; - * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -681,7 +630,6 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -689,8 +637,6 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -706,16 +652,14 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString getPhrasesBytes(int index) { + public com.google.protobuf.ByteString + getPhrasesBytes(int index) { return phrases_.getByteString(index); } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -731,23 +675,21 @@ public com.google.protobuf.ByteString getPhrasesBytes(int index) {
      * 
* * repeated string phrases = 1; - * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases(int index, java.lang.String value) { + public Builder setPhrases( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -763,22 +705,20 @@ public Builder setPhrases(int index, java.lang.String value) {
      * 
* * repeated string phrases = 1; - * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases(java.lang.String value) { + public Builder addPhrases( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -794,19 +734,18 @@ public Builder addPhrases(java.lang.String value) {
      * 
* * repeated string phrases = 1; - * * @param values The phrases to add. * @return This builder for chaining. */ - public Builder addAllPhrases(java.lang.Iterable values) { + public Builder addAllPhrases( + java.lang.Iterable values) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, phrases_); onChanged(); return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -822,7 +761,6 @@ public Builder addAllPhrases(java.lang.Iterable values) {
      * 
* * repeated string phrases = 1; - * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -832,8 +770,6 @@ public Builder clearPhrases() { return this; } /** - * - * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -849,25 +785,23 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; - * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_; + private float boost_ ; /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -880,7 +814,6 @@ public Builder addPhrasesBytes(com.google.protobuf.ByteString value) {
      * 
* * float boost = 4; - * * @return The boost. */ @java.lang.Override @@ -888,8 +821,6 @@ public float getBoost() { return boost_; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -902,19 +833,16 @@ public float getBoost() {
      * 
* * float boost = 4; - * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** - * - * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -927,18 +855,17 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; - * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -948,12 +875,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechContext) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechContext) private static final com.google.cloud.speech.v1p1beta1.SpeechContext DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechContext(); } @@ -962,16 +889,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -986,4 +913,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java similarity index 85% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java index 9c1e1ba58..1daae97d3 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechContextOrBuilder - extends +public interface SpeechContextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -41,13 +23,11 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @return A list containing the phrases. */ - java.util.List getPhrasesList(); + java.util.List + getPhrasesList(); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -63,13 +43,10 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @return The count of phrases. */ int getPhrasesCount(); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -85,14 +62,11 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** - * - * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -108,15 +82,13 @@ public interface SpeechContextOrBuilder
    * 
* * repeated string phrases = 1; - * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString getPhrasesBytes(int index); + com.google.protobuf.ByteString + getPhrasesBytes(int index); /** - * - * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -129,7 +101,6 @@ public interface SpeechContextOrBuilder
    * 
* * float boost = 4; - * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java new file mode 100644 index 000000000..914c6bec3 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -0,0 +1,420 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechProto { + private SpeechProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/speech/v1p1beta1/cloud_sp" + + "eech.proto\022\035google.cloud.speech.v1p1beta" + + "1\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032\037google/api/field_behav" + + "ior.proto\032,google/cloud/speech/v1p1beta1" + + "/resource.proto\032#google/longrunning/oper" + + "ations.proto\032\036google/protobuf/duration.p" + + "roto\032\037google/protobuf/timestamp.proto\032\036g" + + "oogle/protobuf/wrappers.proto\032\027google/rp" + + "c/status.proto\"\236\001\n\020RecognizeRequest\022E\n\006c" + + "onfig\030\001 \001(\01320.google.cloud.speech.v1p1be" + + "ta1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(" + + "\0132/.google.cloud.speech.v1p1beta1.Recogn" + + "itionAudioB\003\340A\002\"\374\001\n\033LongRunningRecognize" + + "Request\022E\n\006config\030\001 \001(\01320.google.cloud.s" + + "peech.v1p1beta1.RecognitionConfigB\003\340A\002\022C" + + "\n\005audio\030\002 \001(\0132/.google.cloud.speech.v1p1" + + "beta1.RecognitionAudioB\003\340A\002\022Q\n\routput_co" + + "nfig\030\004 \001(\01325.google.cloud.speech.v1p1bet" + + "a1.TranscriptOutputConfigB\003\340A\001\":\n\026Transc" + + "riptOutputConfig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013o" + + "utput_type\"\240\001\n\031StreamingRecognizeRequest" + + "\022U\n\020streaming_config\030\001 \001(\01329.google.clou" + + "d.speech.v1p1beta1.StreamingRecognitionC" + + "onfigH\000\022\027\n\raudio_content\030\002 \001(\014H\000B\023\n\021stre" + + "aming_request\"\226\001\n\032StreamingRecognitionCo" + + "nfig\022E\n\006config\030\001 \001(\01320.google.cloud.spee" + + "ch.v1p1beta1.RecognitionConfigB\003\340A\002\022\030\n\020s" + + "ingle_utterance\030\002 \001(\010\022\027\n\017interim_results" + + "\030\003 \001(\010\"\276\t\n\021RecognitionConfig\022P\n\010encoding" + + "\030\001 \001(\0162>.google.cloud.speech.v1p1beta1.R" + + "ecognitionConfig.AudioEncoding\022\031\n\021sample" + + "_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_count" + + "\030\007 \001(\005\022/\n\'enable_separate_recognition_pe" + + "r_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003" + + "\340A\002\022\"\n\032alternative_language_codes\030\022 \003(\t\022" + + "\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanity_f" + + "ilter\030\005 \001(\010\022C\n\nadaptation\030\024 \001(\0132/.google" + + ".cloud.speech.v1p1beta1.SpeechAdaptation" + + "\022X\n\030transcript_normalization\030\030 \001(\01326.goo" + + "gle.cloud.speech.v1p1beta1.TranscriptNor" + + "malization\022E\n\017speech_contexts\030\006 \003(\0132,.go" + + "ogle.cloud.speech.v1p1beta1.SpeechContex" + + "t\022 \n\030enable_word_time_offsets\030\010 \001(\010\022\036\n\026e" + + "nable_word_confidence\030\017 \001(\010\022$\n\034enable_au" + + "tomatic_punctuation\030\013 \001(\010\022=\n\031enable_spok" + + "en_punctuation\030\026 \001(\0132\032.google.protobuf.B" + + "oolValue\0228\n\024enable_spoken_emojis\030\027 \001(\0132\032" + + ".google.protobuf.BoolValue\022&\n\032enable_spe" + + "aker_diarization\030\020 \001(\010B\002\030\001\022%\n\031diarizatio" + + "n_speaker_count\030\021 \001(\005B\002\030\001\022S\n\022diarization" + + "_config\030\023 \001(\01327.google.cloud.speech.v1p1" + + "beta1.SpeakerDiarizationConfig\022D\n\010metada" + + "ta\030\t \001(\01322.google.cloud.speech.v1p1beta1" + + ".RecognitionMetadata\022\r\n\005model\030\r \001(\t\022\024\n\014u" + + "se_enhanced\030\016 \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024E" + + "NCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004F" + + "LAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_WB\020\005\022\014\n" + + "\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_BYTE\020\007\022" + + "\007\n\003MP3\020\010\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiari" + + "zationConfig\022\"\n\032enable_speaker_diarizati" + + "on\030\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021m" + + "ax_speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 " + + "\001(\005B\005\030\001\340A\003\"\333\010\n\023RecognitionMetadata\022\\\n\020in" + + "teraction_type\030\001 \001(\0162B.google.cloud.spee" + + "ch.v1p1beta1.RecognitionMetadata.Interac" + + "tionType\022$\n\034industry_naics_code_of_audio" + + "\030\003 \001(\r\022b\n\023microphone_distance\030\004 \001(\0162E.go" + + "ogle.cloud.speech.v1p1beta1.RecognitionM" + + "etadata.MicrophoneDistance\022a\n\023original_m" + + "edia_type\030\005 \001(\0162D.google.cloud.speech.v1" + + "p1beta1.RecognitionMetadata.OriginalMedi" + + "aType\022e\n\025recording_device_type\030\006 \001(\0162F.g" + + "oogle.cloud.speech.v1p1beta1.Recognition" + + "Metadata.RecordingDeviceType\022\035\n\025recordin" + + "g_device_name\030\007 \001(\t\022\032\n\022original_mime_typ" + + "e\030\010 \001(\t\022\031\n\robfuscated_id\030\t \001(\003B\002\030\001\022\023\n\013au" + + "dio_topic\030\n \001(\t\"\305\001\n\017InteractionType\022 \n\034I" + + "NTERACTION_TYPE_UNSPECIFIED\020\000\022\016\n\nDISCUSS" + + "ION\020\001\022\020\n\014PRESENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022" + + "\r\n\tVOICEMAIL\020\004\022\033\n\027PROFESSIONALLY_PRODUCE" + + "D\020\005\022\020\n\014VOICE_SEARCH\020\006\022\021\n\rVOICE_COMMAND\020\007" + + "\022\r\n\tDICTATION\020\010\"d\n\022MicrophoneDistance\022#\n" + + "\037MICROPHONE_DISTANCE_UNSPECIFIED\020\000\022\r\n\tNE" + + "ARFIELD\020\001\022\014\n\010MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n" + + "\021OriginalMediaType\022#\n\037ORIGINAL_MEDIA_TYP" + + "E_UNSPECIFIED\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001" + + "\n\023RecordingDeviceType\022%\n!RECORDING_DEVIC" + + "E_TYPE_UNSPECIFIED\020\000\022\016\n\nSMARTPHONE\020\001\022\006\n\002" + + "PC\020\002\022\016\n\nPHONE_LINE\020\003\022\013\n\007VEHICLE\020\004\022\030\n\024OTH" + + "ER_OUTDOOR_DEVICE\020\005\022\027\n\023OTHER_INDOOR_DEVI" + + "CE\020\006:\002\030\001\"/\n\rSpeechContext\022\017\n\007phrases\030\001 \003" + + "(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020RecognitionAudio\022\021\n" + + "\007content\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio" + + "_source\"\222\001\n\021RecognizeResponse\022G\n\007results" + + "\030\002 \003(\01326.google.cloud.speech.v1p1beta1.S" + + "peechRecognitionResult\0224\n\021total_billed_t" + + "ime\030\003 \001(\0132\031.google.protobuf.Duration\"\225\002\n" + + "\034LongRunningRecognizeResponse\022G\n\007results" + + "\030\002 \003(\01326.google.cloud.speech.v1p1beta1.S" + + "peechRecognitionResult\0224\n\021total_billed_t" + + "ime\030\003 \001(\0132\031.google.protobuf.Duration\022L\n\r" + + "output_config\030\006 \001(\01325.google.cloud.speec" + + "h.v1p1beta1.TranscriptOutputConfig\022(\n\014ou" + + "tput_error\030\007 \001(\0132\022.google.rpc.Status\"\203\002\n" + + "\034LongRunningRecognizeMetadata\022\030\n\020progres" + + "s_percent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\0224\n\020last_update_t" + + "ime\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n" + + "\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_config\030\005 \001(\01325" + + ".google.cloud.speech.v1p1beta1.Transcrip" + + "tOutputConfigB\003\340A\003\"\365\002\n\032StreamingRecogniz" + + "eResponse\022!\n\005error\030\001 \001(\0132\022.google.rpc.St" + + "atus\022J\n\007results\030\002 \003(\01329.google.cloud.spe" + + "ech.v1p1beta1.StreamingRecognitionResult" + + "\022d\n\021speech_event_type\030\004 \001(\0162I.google.clo" + + "ud.speech.v1p1beta1.StreamingRecognizeRe" + + "sponse.SpeechEventType\0224\n\021total_billed_t" + + "ime\030\005 \001(\0132\031.google.protobuf.Duration\"L\n\017" + + "SpeechEventType\022\034\n\030SPEECH_EVENT_UNSPECIF" + + "IED\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032S" + + "treamingRecognitionResult\022Q\n\014alternative" + + "s\030\001 \003(\0132;.google.cloud.speech.v1p1beta1." + + "SpeechRecognitionAlternative\022\020\n\010is_final" + + "\030\002 \001(\010\022\021\n\tstability\030\003 \001(\002\0222\n\017result_end_" + + "time\030\004 \001(\0132\031.google.protobuf.Duration\022\023\n" + + "\013channel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(" + + "\tB\003\340A\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014al" + + "ternatives\030\001 \003(\0132;.google.cloud.speech.v" + + "1p1beta1.SpeechRecognitionAlternative\022\023\n" + + "\013channel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 " + + "\001(\0132\031.google.protobuf.Duration\022\032\n\rlangua" + + "ge_code\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionA" + + "lternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfid" + + "ence\030\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud" + + ".speech.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022" + + "-\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Du" + + "ration\022+\n\010end_time\030\002 \001(\0132\031.google.protob" + + "uf.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030" + + "\004 \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Spee" + + "ch\022\245\001\n\tRecognize\022/.google.cloud.speech.v" + + "1p1beta1.RecognizeRequest\0320.google.cloud" + + ".speech.v1p1beta1.RecognizeResponse\"5\202\323\344" + + "\223\002 \"\033/v1p1beta1/speech:recognize:\001*\332A\014co" + + "nfig,audio\022\362\001\n\024LongRunningRecognize\022:.go" + + "ogle.cloud.speech.v1p1beta1.LongRunningR" + + "ecognizeRequest\032\035.google.longrunning.Ope" + + "ration\"\177\202\323\344\223\002+\"&/v1p1beta1/speech:longru" + + "nningrecognize:\001*\332A\014config,audio\312A<\n\034Lon" + + "gRunningRecognizeResponse\022\034LongRunningRe" + + "cognizeMetadata\022\217\001\n\022StreamingRecognize\0228" + + ".google.cloud.speech.v1p1beta1.Streaming" + + "RecognizeRequest\0329.google.cloud.speech.v" + + "1p1beta1.StreamingRecognizeResponse\"\000(\0010" + + "\001\032I\312A\025speech.googleapis.com\322A.https://ww" + + "w.googleapis.com/auth/cloud-platformB\200\001\n" + + "!com.google.cloud.speech.v1p1beta1B\013Spee" + + "chProtoP\001ZCgoogle.golang.org/genproto/go" + + "ogleapis/cloud/speech/v1p1beta1;speech\370\001" + + "\001\242\002\003GCSb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, + new java.lang.String[] { "Config", "Audio", }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, + new java.lang.String[] { "Config", "Audio", "OutputConfig", }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, + new java.lang.String[] { "GcsUri", "OutputType", }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, + new java.lang.String[] { "StreamingConfig", "AudioContent", "StreamingRequest", }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, + new java.lang.String[] { "Config", "SingleUtterance", "InterimResults", }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, + new java.lang.String[] { "Encoding", "SampleRateHertz", "AudioChannelCount", "EnableSeparateRecognitionPerChannel", "LanguageCode", "AlternativeLanguageCodes", "MaxAlternatives", "ProfanityFilter", "Adaptation", "TranscriptNormalization", "SpeechContexts", "EnableWordTimeOffsets", "EnableWordConfidence", "EnableAutomaticPunctuation", "EnableSpokenPunctuation", "EnableSpokenEmojis", "EnableSpeakerDiarization", "DiarizationSpeakerCount", "DiarizationConfig", "Metadata", "Model", "UseEnhanced", }); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, + new java.lang.String[] { "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, + new java.lang.String[] { "InteractionType", "IndustryNaicsCodeOfAudio", "MicrophoneDistance", "OriginalMediaType", "RecordingDeviceType", "RecordingDeviceName", "OriginalMimeType", "ObfuscatedId", "AudioTopic", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, + new java.lang.String[] { "Phrases", "Boost", }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, + new java.lang.String[] { "Content", "Uri", "AudioSource", }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, + new java.lang.String[] { "Results", "TotalBilledTime", }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, + new java.lang.String[] { "Results", "TotalBilledTime", "OutputConfig", "OutputError", }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, + new java.lang.String[] { "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, + new java.lang.String[] { "Error", "Results", "SpeechEventType", "TotalBilledTime", }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, + new java.lang.String[] { "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, + new java.lang.String[] { "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, + new java.lang.String[] { "Transcript", "Confidence", "Words", }); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java similarity index 76% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java index d81d4ca98..d016049a2 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Alternative hypotheses (a.k.a. n-best list).
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechRecognitionAlternative extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,36 +55,33 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - transcript_ = s; - break; - } - case 21: - { - confidence_ = input.readFloat(); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - words_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); - break; + transcript_ = s; + break; + } + case 21: { + + confidence_ = input.readFloat(); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + words_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,7 +89,8 @@ private SpeechRecognitionAlternative( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -118,27 +99,22 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** - * - * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -147,7 +123,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string transcript = 1; - * * @return The transcript. */ @java.lang.Override @@ -156,15 +131,14 @@ public java.lang.String getTranscript() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transcript_ = s; return s; } } /** - * - * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -173,15 +147,16 @@ public java.lang.String getTranscript() {
    * 
* * string transcript = 1; - * * @return The bytes for transcript. */ @java.lang.Override - public com.google.protobuf.ByteString getTranscriptBytes() { + public com.google.protobuf.ByteString + getTranscriptBytes() { java.lang.Object ref = transcript_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transcript_ = b; return b; } else { @@ -192,8 +167,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -205,7 +178,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
    * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -216,8 +188,6 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** - * - * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -231,8 +201,6 @@ public java.util.List getWordsList()
     return words_;
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -242,13 +210,11 @@ public java.util.List getWordsList()
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getWordsOrBuilderList() {
     return words_;
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -262,8 +228,6 @@ public int getWordsCount() {
     return words_.size();
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -277,8 +241,6 @@ public com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index) {
     return words_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -288,12 +250,12 @@ public com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index) {
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int index) {
+  public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
+      int index) {
     return words_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -305,7 +267,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transcript_);
     }
@@ -328,10 +291,12 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -341,18 +306,20 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other =
-        (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript().equals(other.getTranscript())) return false;
+    if (!getTranscript()
+        .equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
-    if (!getWordsList().equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(
+            other.getConfidence())) return false;
+    if (!getWordsList()
+        .equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -367,7 +334,8 @@ public int hashCode() {
     hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER;
     hash = (53 * hash) + getTranscript().hashCode();
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(
+        getConfidence());
     if (getWordsCount() > 0) {
       hash = (37 * hash) + WORDS_FIELD_NUMBER;
       hash = (53 * hash) + getWordsList().hashCode();
@@ -378,127 +346,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(byte[] data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.newBuilder() @@ -506,17 +464,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -534,14 +492,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstanceForType() { return com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance(); } @@ -556,8 +513,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = - new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -578,39 +534,38 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildParti public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)other); } else { super.mergeFrom(other); return this; @@ -618,9 +573,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other) { - if (other - == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -646,10 +599,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlte wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getWordsFieldBuilder() - : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWordsFieldBuilder() : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -674,9 +626,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -685,13 +635,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object transcript_ = ""; /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -700,13 +647,13 @@ public Builder mergeFrom(
      * 
* * string transcript = 1; - * * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transcript_ = s; return s; @@ -715,8 +662,6 @@ public java.lang.String getTranscript() { } } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -725,14 +670,15 @@ public java.lang.String getTranscript() {
      * 
* * string transcript = 1; - * * @return The bytes for transcript. */ - public com.google.protobuf.ByteString getTranscriptBytes() { + public com.google.protobuf.ByteString + getTranscriptBytes() { java.lang.Object ref = transcript_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); transcript_ = b; return b; } else { @@ -740,8 +686,6 @@ public com.google.protobuf.ByteString getTranscriptBytes() { } } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -750,22 +694,20 @@ public com.google.protobuf.ByteString getTranscriptBytes() {
      * 
* * string transcript = 1; - * * @param value The transcript to set. * @return This builder for chaining. */ - public Builder setTranscript(java.lang.String value) { + public Builder setTranscript( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -774,18 +716,15 @@ public Builder setTranscript(java.lang.String value) {
      * 
* * string transcript = 1; - * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** - * - * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -794,25 +733,23 @@ public Builder clearTranscript() {
      * 
* * string transcript = 1; - * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -824,7 +761,6 @@ public Builder setTranscriptBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 2; - * * @return The confidence. */ @java.lang.Override @@ -832,8 +768,6 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -845,19 +779,16 @@ public float getConfidence() {
      * 
* * float confidence = 2; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -869,35 +800,28 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.WordInfo, - com.google.cloud.speech.v1p1beta1.WordInfo.Builder, - com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> - wordsBuilder_; + com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> wordsBuilder_; /** - * - * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -914,8 +838,6 @@ public java.util.List getWordsList()
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -932,8 +854,6 @@ public int getWordsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -950,8 +870,6 @@ public com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -960,7 +878,8 @@ public com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index) {
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public Builder setWords(int index, com.google.cloud.speech.v1p1beta1.WordInfo value) {
+    public Builder setWords(
+        int index, com.google.cloud.speech.v1p1beta1.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -974,8 +893,6 @@ public Builder setWords(int index, com.google.cloud.speech.v1p1beta1.WordInfo va
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -996,8 +913,6 @@ public Builder setWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1020,8 +935,6 @@ public Builder addWords(com.google.cloud.speech.v1p1beta1.WordInfo value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1030,7 +943,8 @@ public Builder addWords(com.google.cloud.speech.v1p1beta1.WordInfo value) {
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public Builder addWords(int index, com.google.cloud.speech.v1p1beta1.WordInfo value) {
+    public Builder addWords(
+        int index, com.google.cloud.speech.v1p1beta1.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1044,8 +958,6 @@ public Builder addWords(int index, com.google.cloud.speech.v1p1beta1.WordInfo va
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1054,7 +966,8 @@ public Builder addWords(int index, com.google.cloud.speech.v1p1beta1.WordInfo va
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public Builder addWords(com.google.cloud.speech.v1p1beta1.WordInfo.Builder builderForValue) {
+    public Builder addWords(
+        com.google.cloud.speech.v1p1beta1.WordInfo.Builder builderForValue) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
         words_.add(builderForValue.build());
@@ -1065,8 +978,6 @@ public Builder addWords(com.google.cloud.speech.v1p1beta1.WordInfo.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1087,8 +998,6 @@ public Builder addWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1101,7 +1010,8 @@ public Builder addAllWords(
         java.lang.Iterable values) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, words_);
         onChanged();
       } else {
         wordsBuilder_.addAllMessages(values);
@@ -1109,8 +1019,6 @@ public Builder addAllWords(
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1130,8 +1038,6 @@ public Builder clearWords() {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1151,8 +1057,6 @@ public Builder removeWords(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1161,12 +1065,11 @@ public Builder removeWords(int index) {
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1p1beta1.WordInfo.Builder getWordsBuilder(int index) {
+    public com.google.cloud.speech.v1p1beta1.WordInfo.Builder getWordsBuilder(
+        int index) {
       return getWordsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1175,16 +1078,14 @@ public com.google.cloud.speech.v1p1beta1.WordInfo.Builder getWordsBuilder(int in
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int index) {
+    public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
+        int index) {
       if (wordsBuilder_ == null) {
-        return words_.get(index);
-      } else {
+        return words_.get(index);  } else {
         return wordsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1193,8 +1094,8 @@ public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public java.util.List
-        getWordsOrBuilderList() {
+    public java.util.List 
+         getWordsOrBuilderList() {
       if (wordsBuilder_ != null) {
         return wordsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1202,8 +1103,6 @@ public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int
       }
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1213,12 +1112,10 @@ public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
     public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder() {
-      return getWordsFieldBuilder()
-          .addBuilder(com.google.cloud.speech.v1p1beta1.WordInfo.getDefaultInstance());
+      return getWordsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1p1beta1.WordInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1227,13 +1124,12 @@ public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder() {
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder(int index) {
-      return getWordsFieldBuilder()
-          .addBuilder(index, com.google.cloud.speech.v1p1beta1.WordInfo.getDefaultInstance());
+    public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder(
+        int index) {
+      return getWordsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1p1beta1.WordInfo.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1242,30 +1138,27 @@ public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder(int in
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public java.util.List
-        getWordsBuilderList() {
+    public java.util.List 
+         getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.WordInfo,
-            com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
-            com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>
+        com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> 
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.WordInfo,
-                com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
-                com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
-                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
+                words_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1275,32 +1168,30 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
-  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative();
   }
 
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
-      getDefaultInstance() {
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public SpeechRecognitionAlternative parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new SpeechRecognitionAlternative(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public SpeechRecognitionAlternative parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new SpeechRecognitionAlternative(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1312,8 +1203,9 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
-      getDefaultInstanceForType() {
+  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 79%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
index 8b8eb60eb..24dc349ab 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,31 +1,13 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface SpeechRecognitionAlternativeOrBuilder
-    extends
+public interface SpeechRecognitionAlternativeOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -34,13 +16,10 @@ public interface SpeechRecognitionAlternativeOrBuilder
    * 
* * string transcript = 1; - * * @return The transcript. */ java.lang.String getTranscript(); /** - * - * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -49,14 +28,12 @@ public interface SpeechRecognitionAlternativeOrBuilder
    * 
* * string transcript = 1; - * * @return The bytes for transcript. */ - com.google.protobuf.ByteString getTranscriptBytes(); + com.google.protobuf.ByteString + getTranscriptBytes(); /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -68,14 +45,11 @@ public interface SpeechRecognitionAlternativeOrBuilder
    * 
* * float confidence = 2; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -84,10 +58,9 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
-  java.util.List getWordsList();
+  java.util.List 
+      getWordsList();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -98,8 +71,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index);
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -110,8 +81,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    */
   int getWordsCount();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -120,11 +89,9 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
-  java.util.List
+  java.util.List 
       getWordsOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -133,5 +100,6 @@ public interface SpeechRecognitionAlternativeOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int index);
+  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
+      int index);
 }
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
similarity index 74%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
index a0a52c4e8..9636912bb 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
- *
- *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SpeechRecognitionResult extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -44,15 +26,16 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,54 +55,46 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = - new java.util.ArrayList< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>(); - mutable_bitField0_ |= 0x00000001; - } - alternatives_.add( - input.readMessage( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), - extensionRegistry)); - break; - } - case 16: - { - channelTag_ = input.readInt32(); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 34: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); - } - resultEndTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); - } + alternatives_.add( + input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry)); + break; + } + case 16: { - break; + channelTag_ = input.readInt32(); + break; + } + case 34: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - languageCode_ = s; - break; + resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,7 +102,8 @@ private SpeechRecognitionResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -136,28 +112,22 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; - private java.util.List - alternatives_; + private java.util.List alternatives_; /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -165,17 +135,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override - public java.util.List - getAlternativesList() { + public java.util.List getAlternativesList() { return alternatives_; } /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -183,18 +149,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + public java.util.List getAlternativesOrBuilderList() { return alternatives_; } /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -202,16 +164,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override public int getAlternativesCount() { return alternatives_.size(); } /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -219,16 +178,13 @@ public int getAlternativesCount() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index) { return alternatives_.get(index); } /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -236,20 +192,17 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder - getAlternativesOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( + int index) { return alternatives_.get(index); } public static final int CHANNEL_TAG_FIELD_NUMBER = 2; private int channelTag_; /** - * - * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -257,7 +210,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -268,15 +220,12 @@ public int getChannelTag() { public static final int RESULT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndTime_; /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ @java.lang.Override @@ -284,26 +233,19 @@ public boolean hasResultEndTime() { return resultEndTime_ != null; } /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ @java.lang.Override public com.google.protobuf.Duration getResultEndTime() { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -319,8 +261,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
-   *
-   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -328,7 +268,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -337,15 +276,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -353,15 +291,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -370,7 +309,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -382,7 +320,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -405,13 +344,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < alternatives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, alternatives_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, alternatives_.get(i)); } if (channelTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, channelTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, channelTag_); } if (resultEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResultEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -424,21 +366,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = - (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; - if (!getAlternativesList().equals(other.getAlternativesList())) return false; - if (getChannelTag() != other.getChannelTag()) return false; + if (!getAlternativesList() + .equals(other.getAlternativesList())) return false; + if (getChannelTag() + != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime().equals(other.getResultEndTime())) return false; + if (!getResultEndTime() + .equals(other.getResultEndTime())) return false; } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -468,127 +413,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.newBuilder() @@ -596,17 +531,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -630,9 +565,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override @@ -651,8 +586,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = - new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -678,39 +612,38 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)other); } else { super.mergeFrom(other); return this; @@ -718,8 +651,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance()) return this; if (alternativesBuilder_ == null) { if (!other.alternatives_.isEmpty()) { if (alternatives_.isEmpty()) { @@ -738,10 +670,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResu alternativesBuilder_ = null; alternatives_ = other.alternatives_; bitField0_ = (bitField0_ & ~0x00000001); - alternativesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAlternativesFieldBuilder() - : null; + alternativesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAlternativesFieldBuilder() : null; } else { alternativesBuilder_.addAllMessages(other.alternatives_); } @@ -776,8 +707,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -786,30 +716,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - alternatives_ = java.util.Collections.emptyList(); - + private java.util.List alternatives_ = + java.util.Collections.emptyList(); private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = - new java.util.ArrayList( - alternatives_); + alternatives_ = new java.util.ArrayList(alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> - alternativesBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -817,11 +738,9 @@ private void ensureAlternativesIsMutable() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public java.util.List - getAlternativesList() { + public java.util.List getAlternativesList() { if (alternativesBuilder_ == null) { return java.util.Collections.unmodifiableList(alternatives_); } else { @@ -829,8 +748,6 @@ private void ensureAlternativesIsMutable() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -838,8 +755,7 @@ private void ensureAlternativesIsMutable() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public int getAlternativesCount() { if (alternativesBuilder_ == null) { @@ -849,8 +765,6 @@ public int getAlternativesCount() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -858,11 +772,9 @@ public int getAlternativesCount() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index) { if (alternativesBuilder_ == null) { return alternatives_.get(index); } else { @@ -870,8 +782,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -879,8 +789,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder setAlternatives( int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { @@ -897,8 +806,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -906,12 +813,10 @@ public Builder setAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder setAlternatives( - int index, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { + int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.set(index, builderForValue.build()); @@ -922,8 +827,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -931,11 +834,9 @@ public Builder setAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public Builder addAlternatives( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { + public Builder addAlternatives(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { if (alternativesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -949,8 +850,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -958,8 +857,7 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder addAlternatives( int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { @@ -976,8 +874,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -985,8 +881,7 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder addAlternatives( com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { @@ -1000,8 +895,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1009,12 +902,10 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder addAlternatives( - int index, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { + int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.add(index, builderForValue.build()); @@ -1025,8 +916,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1034,15 +923,14 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder addAllAlternatives( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternatives_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, alternatives_); onChanged(); } else { alternativesBuilder_.addAllMessages(values); @@ -1050,8 +938,6 @@ public Builder addAllAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1059,8 +945,7 @@ public Builder addAllAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder clearAlternatives() { if (alternativesBuilder_ == null) { @@ -1073,8 +958,6 @@ public Builder clearAlternatives() { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1082,8 +965,7 @@ public Builder clearAlternatives() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder removeAlternatives(int index) { if (alternativesBuilder_ == null) { @@ -1096,8 +978,6 @@ public Builder removeAlternatives(int index) { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1105,16 +985,13 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder - getAlternativesBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder getAlternativesBuilder( + int index) { return getAlternativesFieldBuilder().getBuilder(index); } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1122,20 +999,16 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder - getAlternativesOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( + int index) { if (alternativesBuilder_ == null) { - return alternatives_.get(index); - } else { + return alternatives_.get(index); } else { return alternativesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1143,12 +1016,10 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public java.util.List< - ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> - getAlternativesOrBuilderList() { + public java.util.List + getAlternativesOrBuilderList() { if (alternativesBuilder_ != null) { return alternativesBuilder_.getMessageOrBuilderList(); } else { @@ -1156,8 +1027,6 @@ public Builder removeAlternatives(int index) { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1165,18 +1034,13 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder - addAlternativesBuilder() { - return getAlternativesFieldBuilder() - .addBuilder( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder addAlternativesBuilder() { + return getAlternativesFieldBuilder().addBuilder( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1184,19 +1048,14 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder - addAlternativesBuilder(int index) { - return getAlternativesFieldBuilder() - .addBuilder( - index, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder addAlternativesBuilder( + int index) { + return getAlternativesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1204,35 +1063,29 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public java.util.List - getAlternativesBuilderList() { + public java.util.List + getAlternativesBuilderList() { return getAlternativesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> getAlternativesFieldBuilder() { if (alternativesBuilder_ == null) { - alternativesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>( - alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>( + alternatives_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); alternatives_ = null; } return alternativesBuilder_; } - private int channelTag_; + private int channelTag_ ; /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1240,7 +1093,6 @@ public Builder removeAlternatives(int index) {
      * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ @java.lang.Override @@ -1248,8 +1100,6 @@ public int getChannelTag() { return channelTag_; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1257,19 +1107,16 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; - * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1277,11 +1124,10 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; - * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1289,49 +1135,36 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1353,8 +1186,6 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1362,7 +1193,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1373,8 +1205,6 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1386,9 +1216,7 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-              com.google.protobuf.Duration.newBuilder(resultEndTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1400,8 +1228,6 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1421,8 +1247,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1431,13 +1255,11 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-
+      
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1449,14 +1271,11 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
       if (resultEndTimeBuilder_ != null) {
         return resultEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndTime_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : resultEndTime_;
+        return resultEndTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1465,17 +1284,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getResultEndTimeFieldBuilder() {
       if (resultEndTimeBuilder_ == null) {
-        resultEndTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getResultEndTime(), getParentForChildren(), isClean());
+        resultEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getResultEndTime(),
+                getParentForChildren(),
+                isClean());
         resultEndTime_ = null;
       }
       return resultEndTimeBuilder_;
@@ -1483,8 +1299,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
 
     private java.lang.Object languageCode_ = "";
     /**
-     *
-     *
      * 
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1492,13 +1306,13 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1507,8 +1321,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1516,14 +1328,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1531,8 +1344,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1540,22 +1351,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1563,18 +1372,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1582,23 +1388,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1608,12 +1414,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(); } @@ -1622,16 +1428,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1646,4 +1452,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java similarity index 79% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index b836a20e7..55e3c978e 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechRecognitionResultOrBuilder - extends +public interface SpeechRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -33,14 +15,11 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - java.util.List + java.util.List getAlternativesList(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -48,13 +27,10 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -62,13 +38,10 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ int getAlternativesCount(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -76,14 +49,11 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -91,15 +61,12 @@ public interface SpeechRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** - * - * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -107,40 +74,31 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; - * * @return The channelTag. */ int getChannelTag(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -151,8 +109,6 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -160,13 +116,10 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -174,8 +127,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java new file mode 100644 index 000000000..64362624d --- /dev/null +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java @@ -0,0 +1,148 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/resource.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/speech/v1p1beta1/resource" + + ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" + + "oogle/api/resource.proto\"\203\002\n\013CustomClass" + + "\022\014\n\004name\030\001 \001(\t\022\027\n\017custom_class_id\030\002 \001(\t\022" + + "C\n\005items\030\003 \003(\01324.google.cloud.speech.v1p" + + "1beta1.CustomClass.ClassItem\032\032\n\tClassIte" + + "m\022\r\n\005value\030\001 \001(\t:l\352Ai\n!speech.googleapis" + + ".com/CustomClass\022Dprojects/{project}/loc" + + "ations/{location}/customClasses/{custom_" + + "class}\"\371\001\n\tPhraseSet\022\014\n\004name\030\001 \001(\t\022@\n\007ph" + + "rases\030\002 \003(\0132/.google.cloud.speech.v1p1be" + + "ta1.PhraseSet.Phrase\022\r\n\005boost\030\004 \001(\002\032&\n\006P" + + "hrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab" + + "\n\037speech.googleapis.com/PhraseSet\022?proje" + + "cts/{project}/locations/{location}/phras" + + "eSets/{phrase_set}\"\332\001\n\020SpeechAdaptation\022" + + "=\n\013phrase_sets\030\001 \003(\0132(.google.cloud.spee" + + "ch.v1p1beta1.PhraseSet\022C\n\025phrase_set_ref" + + "erences\030\002 \003(\tB$\372A!\n\037speech.googleapis.co" + + "m/PhraseSet\022B\n\016custom_classes\030\003 \003(\0132*.go" + + "ogle.cloud.speech.v1p1beta1.CustomClass\"" + + "\252\001\n\027TranscriptNormalization\022M\n\007entries\030\001" + + " \003(\0132<.google.cloud.speech.v1p1beta1.Tra" + + "nscriptNormalization.Entry\032@\n\005Entry\022\016\n\006s" + + "earch\030\001 \001(\t\022\017\n\007replace\030\002 \001(\t\022\026\n\016case_sen" + + "sitive\030\003 \001(\010B\210\001\n!com.google.cloud.speech" + + ".v1p1beta1B\023SpeechResourceProtoP\001ZCgoogl" + + "e.golang.org/genproto/googleapis/cloud/s" + + "peech/v1p1beta1;speech\370\001\001\242\002\003GCSb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, + new java.lang.String[] { "Name", "CustomClassId", "Items", }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, + new java.lang.String[] { "Value", }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, + new java.lang.String[] { "Name", "Phrases", "Boost", }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, + new java.lang.String[] { "Value", "Boost", }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, + new java.lang.String[] { "PhraseSets", "PhraseSetReferences", "CustomClasses", }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, + new java.lang.String[] { "Entries", }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, + new java.lang.String[] { "Search", "Replace", "CaseSensitive", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java index 2f4bbc518..cdf053e41 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
  */
-public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognitionConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
     StreamingRecognitionConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionConfig.newBuilder() to construct.
   private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private StreamingRecognitionConfig() {}
+  private StreamingRecognitionConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,40 +53,36 @@ private StreamingRecognitionConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-              if (config_ != null) {
-                subBuilder = config_.toBuilder();
-              }
-              config_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(config_);
-                config_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+            if (config_ != null) {
+              subBuilder = config_.toBuilder();
             }
-          case 16:
-            {
-              singleUtterance_ = input.readBool();
-              break;
+            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(config_);
+              config_ = subBuilder.buildPartial();
             }
-          case 24:
-            {
-              interimResults_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 16: {
+
+            singleUtterance_ = input.readBool();
+            break;
+          }
+          case 24: {
+
+            interimResults_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -110,42 +90,35 @@ private StreamingRecognitionConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
-   *
-   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ @java.lang.Override @@ -153,36 +126,25 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -192,8 +154,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -216,7 +176,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -227,8 +186,6 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -237,7 +194,6 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -246,7 +202,6 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,7 +213,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -278,13 +234,16 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -294,20 +253,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = - (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } - if (getSingleUtterance() != other.getSingleUtterance()) return false; - if (getInterimResults() != other.getInterimResults()) return false; + if (getSingleUtterance() + != other.getSingleUtterance()) return false; + if (getInterimResults() + != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -324,113 +285,107 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -438,23 +393,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.newBuilder()
@@ -462,15 +415,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -488,14 +442,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
     }
 
@@ -510,8 +463,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result =
-          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -527,39 +479,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -567,9 +518,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other) {
-      if (other
-          == com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance()) return this;
       if (other.hasConfig()) {
         mergeConfig(other.getConfig());
       }
@@ -598,8 +547,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -611,61 +559,42 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
-            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
-        configBuilder_;
+        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
     /**
-     *
-     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -681,16 +610,12 @@ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig val return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setConfig( com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder builderForValue) { @@ -704,24 +629,18 @@ public Builder setConfig( return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); } else { config_ = value; } @@ -733,16 +652,12 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -756,76 +671,58 @@ public Builder clearConfig() { return this; } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null - ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() - : config_; + return config_ == null ? + com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; } } /** - * - * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), getParentForChildren(), isClean()); + configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), + getParentForChildren(), + isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_; + private boolean singleUtterance_ ; /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -848,7 +745,6 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
      * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ @java.lang.Override @@ -856,8 +752,6 @@ public boolean getSingleUtterance() { return singleUtterance_; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -880,19 +774,16 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; - * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** - * - * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -915,20 +806,17 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; - * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_; + private boolean interimResults_ ; /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -937,7 +825,6 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; - * * @return The interimResults. */ @java.lang.Override @@ -945,8 +832,6 @@ public boolean getInterimResults() { return interimResults_; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -955,19 +840,16 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; - * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** - * - * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -976,18 +858,17 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; - * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -997,13 +878,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) - private static final com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(); } @@ -1012,16 +892,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1036,4 +916,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java index 40aa63db7..73a8d60b1 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java @@ -1,75 +1,43 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionConfigOrBuilder - extends +public interface StreamingRecognitionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** - * - * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** - * - * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -92,14 +60,11 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * bool single_utterance = 2; - * * @return The singleUtterance. */ boolean getSingleUtterance(); /** - * - * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -108,7 +73,6 @@ public interface StreamingRecognitionConfigOrBuilder
    * 
* * bool interim_results = 3; - * * @return The interimResults. */ boolean getInterimResults(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java similarity index 75% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index 374690210..21fdf7d84 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognitionResult extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -45,15 +27,16 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,64 +56,56 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                alternatives_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              alternatives_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              alternatives_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 16:
-            {
-              isFinal_ = input.readBool();
-              break;
-            }
-          case 29:
-            {
-              stability_ = input.readFloat();
-              break;
-            }
-          case 34:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (resultEndTime_ != null) {
-                subBuilder = resultEndTime_.toBuilder();
-              }
-              resultEndTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(resultEndTime_);
-                resultEndTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            alternatives_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry));
+            break;
+          }
+          case 16: {
+
+            isFinal_ = input.readBool();
+            break;
+          }
+          case 29: {
+
+            stability_ = input.readFloat();
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (resultEndTime_ != null) {
+              subBuilder = resultEndTime_.toBuilder();
             }
-          case 40:
-            {
-              channelTag_ = input.readInt32();
-              break;
+            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(resultEndTime_);
+              resultEndTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              languageCode_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            break;
+          }
+          case 40: {
+
+            channelTag_ = input.readInt32();
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            languageCode_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -138,7 +113,8 @@ private StreamingRecognitionResult(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -147,28 +123,22 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
-  private java.util.List
-      alternatives_;
+  private java.util.List alternatives_;
   /**
-   *
-   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -176,17 +146,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override - public java.util.List - getAlternativesList() { + public java.util.List getAlternativesList() { return alternatives_; } /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -194,18 +160,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + public java.util.List getAlternativesOrBuilderList() { return alternatives_; } /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -213,16 +175,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override public int getAlternativesCount() { return alternatives_.size(); } /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -230,16 +189,13 @@ public int getAlternativesCount() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index) { return alternatives_.get(index); } /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -247,20 +203,17 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder - getAlternativesOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( + int index) { return alternatives_.get(index); } public static final int IS_FINAL_FIELD_NUMBER = 2; private boolean isFinal_; /** - * - * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -270,7 +223,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -281,8 +233,6 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -292,7 +242,6 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -303,15 +252,12 @@ public float getStability() { public static final int RESULT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndTime_; /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ @java.lang.Override @@ -319,26 +265,19 @@ public boolean hasResultEndTime() { return resultEndTime_ != null; } /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ @java.lang.Override public com.google.protobuf.Duration getResultEndTime() { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -354,8 +293,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -363,7 +300,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -374,8 +310,6 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -383,7 +317,6 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ @java.lang.Override @@ -392,15 +325,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -408,15 +340,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -425,7 +358,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -437,7 +369,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -466,19 +399,24 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < alternatives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, alternatives_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, alternatives_.get(i)); } if (isFinal_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isFinal_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, isFinal_); } if (java.lang.Float.floatToRawIntBits(stability_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, stability_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, stability_); } if (resultEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getResultEndTime()); } if (channelTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, channelTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, channelTag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -491,24 +429,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = - (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; - if (!getAlternativesList().equals(other.getAlternativesList())) return false; - if (getIsFinal() != other.getIsFinal()) return false; + if (!getAlternativesList() + .equals(other.getAlternativesList())) return false; + if (getIsFinal() + != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits(other.getStability())) return false; + != java.lang.Float.floatToIntBits( + other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime().equals(other.getResultEndTime())) return false; + if (!getResultEndTime() + .equals(other.getResultEndTime())) return false; } - if (getChannelTag() != other.getChannelTag()) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (getChannelTag() + != other.getChannelTag()) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -525,9 +468,11 @@ public int hashCode() { hash = (53 * hash) + getAlternativesList().hashCode(); } hash = (37 * hash) + IS_FINAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFinal()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsFinal()); hash = (37 * hash) + STABILITY_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getStability()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getStability()); if (hasResultEndTime()) { hash = (37 * hash) + RESULT_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getResultEndTime().hashCode(); @@ -542,104 +487,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * A streaming speech recognition result corresponding to a portion of the audio
    * that is currently being processed.
@@ -647,23 +584,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.newBuilder()
@@ -671,17 +606,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -709,14 +644,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance();
     }
 
@@ -731,8 +665,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result =
-          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -760,39 +693,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -800,9 +732,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other) {
-      if (other
-          == com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance()) return this;
       if (alternativesBuilder_ == null) {
         if (!other.alternatives_.isEmpty()) {
           if (alternatives_.isEmpty()) {
@@ -821,10 +751,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognitionR
             alternativesBuilder_ = null;
             alternatives_ = other.alternatives_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            alternativesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAlternativesFieldBuilder()
-                    : null;
+            alternativesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAlternativesFieldBuilder() : null;
           } else {
             alternativesBuilder_.addAllMessages(other.alternatives_);
           }
@@ -865,8 +794,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -875,30 +803,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        alternatives_ = java.util.Collections.emptyList();
-
+    private java.util.List alternatives_ =
+      java.util.Collections.emptyList();
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ =
-            new java.util.ArrayList(
-                alternatives_);
+        alternatives_ = new java.util.ArrayList(alternatives_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder,
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>
-        alternativesBuilder_;
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
 
     /**
-     *
-     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -906,11 +825,9 @@ private void ensureAlternativesIsMutable() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public java.util.List - getAlternativesList() { + public java.util.List getAlternativesList() { if (alternativesBuilder_ == null) { return java.util.Collections.unmodifiableList(alternatives_); } else { @@ -918,8 +835,6 @@ private void ensureAlternativesIsMutable() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -927,8 +842,7 @@ private void ensureAlternativesIsMutable() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public int getAlternativesCount() { if (alternativesBuilder_ == null) { @@ -938,8 +852,6 @@ public int getAlternativesCount() { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -947,11 +859,9 @@ public int getAlternativesCount() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index) { if (alternativesBuilder_ == null) { return alternatives_.get(index); } else { @@ -959,8 +869,6 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -968,8 +876,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder setAlternatives( int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { @@ -986,8 +893,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -995,12 +900,10 @@ public Builder setAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder setAlternatives( - int index, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { + int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.set(index, builderForValue.build()); @@ -1011,8 +914,6 @@ public Builder setAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1020,11 +921,9 @@ public Builder setAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public Builder addAlternatives( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { + public Builder addAlternatives(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { if (alternativesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1038,8 +937,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1047,8 +944,7 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder addAlternatives( int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { @@ -1065,8 +961,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1074,8 +968,7 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder addAlternatives( com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { @@ -1089,8 +982,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1098,12 +989,10 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder addAlternatives( - int index, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { + int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.add(index, builderForValue.build()); @@ -1114,8 +1003,6 @@ public Builder addAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1123,15 +1010,14 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder addAllAlternatives( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternatives_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, alternatives_); onChanged(); } else { alternativesBuilder_.addAllMessages(values); @@ -1139,8 +1025,6 @@ public Builder addAllAlternatives( return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1148,8 +1032,7 @@ public Builder addAllAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder clearAlternatives() { if (alternativesBuilder_ == null) { @@ -1162,8 +1045,6 @@ public Builder clearAlternatives() { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1171,8 +1052,7 @@ public Builder clearAlternatives() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ public Builder removeAlternatives(int index) { if (alternativesBuilder_ == null) { @@ -1185,8 +1065,6 @@ public Builder removeAlternatives(int index) { return this; } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1194,16 +1072,13 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder - getAlternativesBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder getAlternativesBuilder( + int index) { return getAlternativesFieldBuilder().getBuilder(index); } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1211,20 +1086,16 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder - getAlternativesOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( + int index) { if (alternativesBuilder_ == null) { - return alternatives_.get(index); - } else { + return alternatives_.get(index); } else { return alternativesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1232,12 +1103,10 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public java.util.List< - ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> - getAlternativesOrBuilderList() { + public java.util.List + getAlternativesOrBuilderList() { if (alternativesBuilder_ != null) { return alternativesBuilder_.getMessageOrBuilderList(); } else { @@ -1245,8 +1114,6 @@ public Builder removeAlternatives(int index) { } } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1254,18 +1121,13 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder - addAlternativesBuilder() { - return getAlternativesFieldBuilder() - .addBuilder( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder addAlternativesBuilder() { + return getAlternativesFieldBuilder().addBuilder( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1273,19 +1135,14 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder - addAlternativesBuilder(int index) { - return getAlternativesFieldBuilder() - .addBuilder( - index, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder addAlternativesBuilder( + int index) { + return getAlternativesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); } /** - * - * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1293,35 +1150,29 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - public java.util.List - getAlternativesBuilderList() { + public java.util.List + getAlternativesBuilderList() { return getAlternativesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> getAlternativesFieldBuilder() { if (alternativesBuilder_ == null) { - alternativesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>( - alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>( + alternatives_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); alternatives_ = null; } return alternativesBuilder_; } - private boolean isFinal_; + private boolean isFinal_ ; /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1331,7 +1182,6 @@ public Builder removeAlternatives(int index) {
      * 
* * bool is_final = 2; - * * @return The isFinal. */ @java.lang.Override @@ -1339,8 +1189,6 @@ public boolean getIsFinal() { return isFinal_; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1350,19 +1198,16 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; - * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** - * - * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1372,20 +1217,17 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; - * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_; + private float stability_ ; /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1395,7 +1237,6 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; - * * @return The stability. */ @java.lang.Override @@ -1403,8 +1244,6 @@ public float getStability() { return stability_; } /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1414,19 +1253,16 @@ public float getStability() {
      * 
* * float stability = 3; - * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** - * - * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1436,11 +1272,10 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; - * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1448,49 +1283,36 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - resultEndTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : resultEndTime_; + return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** - * - * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1512,8 +1334,6 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1521,7 +1341,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1532,8 +1353,6 @@ public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1545,9 +1364,7 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-              com.google.protobuf.Duration.newBuilder(resultEndTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1559,8 +1376,6 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1580,8 +1395,6 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1590,13 +1403,11 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-
+      
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1608,14 +1419,11 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
       if (resultEndTimeBuilder_ != null) {
         return resultEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndTime_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : resultEndTime_;
+        return resultEndTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1624,26 +1432,21 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getResultEndTimeFieldBuilder() {
       if (resultEndTimeBuilder_ == null) {
-        resultEndTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getResultEndTime(), getParentForChildren(), isClean());
+        resultEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getResultEndTime(),
+                getParentForChildren(),
+                isClean());
         resultEndTime_ = null;
       }
       return resultEndTimeBuilder_;
     }
 
-    private int channelTag_;
+    private int channelTag_ ;
     /**
-     *
-     *
      * 
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1651,7 +1454,6 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ @java.lang.Override @@ -1659,8 +1461,6 @@ public int getChannelTag() { return channelTag_; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1668,19 +1468,16 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; - * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** - * - * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1688,11 +1485,10 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; - * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1700,8 +1496,6 @@ public Builder clearChannelTag() { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1709,13 +1503,13 @@ public Builder clearChannelTag() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1724,8 +1518,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1733,14 +1525,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1748,8 +1541,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1757,22 +1548,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1780,18 +1569,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1799,23 +1585,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1825,13 +1611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) - private static final com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(); } @@ -1840,16 +1625,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1864,4 +1649,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java similarity index 82% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index 8a2935d37..3d6da9c0a 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionResultOrBuilder - extends +public interface StreamingRecognitionResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -33,14 +15,11 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - java.util.List + java.util.List getAlternativesList(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -48,13 +27,10 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -62,13 +38,10 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ int getAlternativesCount(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -76,14 +49,11 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** - * - * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -91,15 +61,12 @@ public interface StreamingRecognitionResultOrBuilder
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; - * + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** - * - * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -109,14 +76,11 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; - * * @return The isFinal. */ boolean getIsFinal(); /** - * - * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -126,40 +90,31 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * float stability = 3; - * * @return The stability. */ float getStability(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; - * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** - * - * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -170,8 +125,6 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -179,14 +132,11 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 5; - * * @return The channelTag. */ int getChannelTag(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -194,13 +144,10 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -208,8 +155,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java similarity index 72% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index 8464bea28..5c7c200e1 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -31,29 +14,30 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognizeRequest extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private StreamingRecognizeRequest() {}
+  private StreamingRecognizeRequest() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,42 +56,32 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder =
-                  null;
-              if (streamingRequestCase_ == 1) {
-                subBuilder =
-                    ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
-                            streamingRequest_)
-                        .toBuilder();
-              }
-              streamingRequest_ =
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
-                        streamingRequest_);
-                streamingRequest_ = subBuilder.buildPartial();
-              }
-              streamingRequestCase_ = 1;
-              break;
+          case 10: {
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder = null;
+            if (streamingRequestCase_ == 1) {
+              subBuilder = ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
             }
-          case 18:
-            {
-              streamingRequest_ = input.readBytes();
-              streamingRequestCase_ = 2;
-              break;
+            streamingRequest_ =
+                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_);
+              streamingRequest_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            streamingRequestCase_ = 1;
+            break;
+          }
+          case 18: {
+            streamingRequest_ = input.readBytes();
+            streamingRequestCase_ = 2;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -115,40 +89,35 @@ private StreamingRecognizeRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
-
   public enum StreamingRequestCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
-
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -164,30 +133,25 @@ public static StreamingRequestCase valueOf(int value) {
 
     public static StreamingRequestCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return STREAMING_CONFIG;
-        case 2:
-          return AUDIO_CONTENT;
-        case 0:
-          return STREAMINGREQUEST_NOT_SET;
-        default:
-          return null;
+        case 1: return STREAMING_CONFIG;
+        case 2: return AUDIO_CONTENT;
+        case 0: return STREAMINGREQUEST_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public StreamingRequestCase getStreamingRequestCase() {
-    return StreamingRequestCase.forNumber(streamingRequestCase_);
+  public StreamingRequestCase
+  getStreamingRequestCase() {
+    return StreamingRequestCase.forNumber(
+        streamingRequestCase_);
   }
 
   public static final int STREAMING_CONFIG_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -195,7 +159,6 @@ public StreamingRequestCase getStreamingRequestCase() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -203,8 +166,6 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 1; } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -212,19 +173,16 @@ public boolean hasStreamingConfig() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreamingConfig() { if (streamingRequestCase_ == 1) { - return (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_; + return (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance(); } /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -234,18 +192,15 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming
    * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder
-      getStreamingConfigOrBuilder() {
+  public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
     if (streamingRequestCase_ == 1) {
-      return (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_;
+       return (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_;
     }
     return com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
   }
 
   public static final int AUDIO_CONTENT_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -258,7 +213,6 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -266,8 +220,6 @@ public boolean hasAudioContent() { return streamingRequestCase_ == 2; } /** - * - * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -280,7 +232,6 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ @java.lang.Override @@ -292,7 +243,6 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -304,13 +254,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes( + 2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -322,14 +273,13 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -339,21 +289,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest other = - (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest other = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) obj; if (!getStreamingRequestCase().equals(other.getStreamingRequestCase())) return false; switch (streamingRequestCase_) { case 1: - if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig() + .equals(other.getStreamingConfig())) return false; break; case 2: - if (!getAudioContent().equals(other.getAudioContent())) return false; + if (!getAudioContent() + .equals(other.getAudioContent())) return false; break; case 0: default: @@ -387,104 +338,96 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * The top-level message sent by the client for the `StreamingRecognize` method.
    * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -495,23 +438,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.newBuilder()
@@ -519,15 +460,16 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
+      }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -537,9 +479,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -558,8 +500,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result =
-          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -579,39 +520,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -619,23 +559,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance()) return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG:
-          {
-            mergeStreamingConfig(other.getStreamingConfig());
-            break;
-          }
-        case AUDIO_CONTENT:
-          {
-            setAudioContent(other.getAudioContent());
-            break;
-          }
-        case STREAMINGREQUEST_NOT_SET:
-          {
-            break;
-          }
+        case STREAMING_CONFIG: {
+          mergeStreamingConfig(other.getStreamingConfig());
+          break;
+        }
+        case AUDIO_CONTENT: {
+          setAudioContent(other.getAudioContent());
+          break;
+        }
+        case STREAMINGREQUEST_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -656,8 +592,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -666,12 +601,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-
-    public StreamingRequestCase getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(streamingRequestCase_);
+    public StreamingRequestCase
+        getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(
+          streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -681,14 +616,10 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
-        streamingConfigBuilder_;
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -696,7 +627,6 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -704,8 +634,6 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 1; } /** - * - * *
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -713,7 +641,6 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ @java.lang.Override @@ -731,8 +658,6 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming } } /** - * - * *
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -741,8 +666,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming
      *
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public Builder setStreamingConfig(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig value) {
+    public Builder setStreamingConfig(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -756,8 +680,6 @@ public Builder setStreamingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -778,8 +700,6 @@ public Builder setStreamingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -788,19 +708,12 @@ public Builder setStreamingConfig(
      *
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public Builder mergeStreamingConfig(
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig value) {
+    public Builder mergeStreamingConfig(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
-        if (streamingRequestCase_ == 1
-            && streamingRequest_
-                != com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig
-                    .getDefaultInstance()) {
-          streamingRequest_ =
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.newBuilder(
-                      (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
-                          streamingRequest_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (streamingRequestCase_ == 1 &&
+            streamingRequest_ != com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance()) {
+          streamingRequest_ = com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.newBuilder((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_)
+              .mergeFrom(value).buildPartial();
         } else {
           streamingRequest_ = value;
         }
@@ -816,8 +729,6 @@ public Builder mergeStreamingConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -843,8 +754,6 @@ public Builder clearStreamingConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -853,13 +762,10 @@ public Builder clearStreamingConfig() {
      *
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder
-        getStreamingConfigBuilder() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder getStreamingConfigBuilder() {
       return getStreamingConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -869,8 +775,7 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder
-        getStreamingConfigOrBuilder() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
       if ((streamingRequestCase_ == 1) && (streamingConfigBuilder_ != null)) {
         return streamingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -881,8 +786,6 @@ public Builder clearStreamingConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -892,34 +795,25 @@ public Builder clearStreamingConfig() {
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> 
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ =
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ = com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return streamingConfigBuilder_;
     }
 
     /**
-     *
-     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -932,15 +826,12 @@ public Builder clearStreamingConfig() {
      * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ public boolean hasAudioContent() { return streamingRequestCase_ == 2; } /** - * - * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -953,7 +844,6 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; - * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -963,8 +853,6 @@ public com.google.protobuf.ByteString getAudioContent() { return com.google.protobuf.ByteString.EMPTY; } /** - * - * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -977,22 +865,19 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; - * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** - * - * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -1005,7 +890,6 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; - * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -1016,9 +900,9 @@ public Builder clearAudioContent() { } return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1028,12 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) private static final com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(); } @@ -1042,16 +926,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1066,4 +950,6 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java similarity index 78% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index f6b61734f..e77bf66cf 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognizeRequestOrBuilder - extends +public interface StreamingRecognizeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -33,13 +15,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -47,13 +26,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; - * * @return The streamingConfig. */ com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreamingConfig(); /** - * - * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -62,12 +38,9 @@ public interface StreamingRecognizeRequestOrBuilder
    *
    * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
    */
-  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder
-      getStreamingConfigOrBuilder();
+  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -80,13 +53,10 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * bytes audio_content = 2; - * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** - * - * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -99,11 +69,9 @@ public interface StreamingRecognizeRequestOrBuilder
    * 
* * bytes audio_content = 2; - * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase - getStreamingRequestCase(); + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java similarity index 76% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java index 3aebd6d1d..cf81fdc8c 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -62,16 +45,15 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class StreamingRecognizeResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -79,15 +61,16 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -107,63 +90,54 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.rpc.Status.Builder subBuilder = null;
-              if (error_ != null) {
-                subBuilder = error_.toBuilder();
-              }
-              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(error_);
-                error_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.rpc.Status.Builder subBuilder = null;
+            if (error_ != null) {
+              subBuilder = error_.toBuilder();
             }
-          case 18:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                results_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              results_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
-                      extensionRegistry));
-              break;
+            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(error_);
+              error_ = subBuilder.buildPartial();
             }
-          case 32:
-            {
-              int rawValue = input.readEnum();
 
-              speechEventType_ = rawValue;
-              break;
+            break;
+          }
+          case 18: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              results_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              com.google.protobuf.Duration.Builder subBuilder = null;
-              if (totalBilledTime_ != null) {
-                subBuilder = totalBilledTime_.toBuilder();
-              }
-              totalBilledTime_ =
-                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(totalBilledTime_);
-                totalBilledTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+            results_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(), extensionRegistry));
+            break;
+          }
+          case 32: {
+            int rawValue = input.readEnum();
+
+            speechEventType_ = rawValue;
+            break;
+          }
+          case 42: {
+            com.google.protobuf.Duration.Builder subBuilder = null;
+            if (totalBilledTime_ != null) {
+              subBuilder = totalBilledTime_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(totalBilledTime_);
+              totalBilledTime_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -171,7 +145,8 @@ private StreamingRecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -180,35 +155,29 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto
-        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
      * No speech event specified.
      * 
@@ -217,8 +186,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { */ SPEECH_EVENT_UNSPECIFIED(0), /** - * - * *
      * This event indicates that the server has detected the end of the user's
      * speech utterance and expects no additional speech. Therefore, the server
@@ -236,8 +203,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
     ;
 
     /**
-     *
-     *
      * 
      * No speech event specified.
      * 
@@ -246,8 +211,6 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SPEECH_EVENT_UNSPECIFIED_VALUE = 0; /** - * - * *
      * This event indicates that the server has detected the end of the user's
      * speech utterance and expects no additional speech. Therefore, the server
@@ -262,6 +225,7 @@ public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int END_OF_SINGLE_UTTERANCE_VALUE = 1;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -286,43 +250,39 @@ public static SpeechEventType valueOf(int value) {
      */
     public static SpeechEventType forNumber(int value) {
       switch (value) {
-        case 0:
-          return SPEECH_EVENT_UNSPECIFIED;
-        case 1:
-          return END_OF_SINGLE_UTTERANCE;
-        default:
-          return null;
+        case 0: return SPEECH_EVENT_UNSPECIFIED;
+        case 1: return END_OF_SINGLE_UTTERANCE;
+        default: return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
       return internalValueMap;
     }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        SpeechEventType> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public SpeechEventType findValueByNumber(int number) {
+              return SpeechEventType.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap
-        internalValueMap =
-            new com.google.protobuf.Internal.EnumLiteMap() {
-              public SpeechEventType findValueByNumber(int number) {
-                return SpeechEventType.forNumber(number);
-              }
-            };
-
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-
-    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
       return getDescriptor();
     }
-
-    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final SpeechEventType[] VALUES = values();
@@ -330,7 +290,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
     public static SpeechEventType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -350,15 +311,12 @@ private SpeechEventType(int value) {
   public static final int ERROR_FIELD_NUMBER = 1;
   private com.google.rpc.Status error_;
   /**
-   *
-   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ @java.lang.Override @@ -366,15 +324,12 @@ public boolean hasError() { return error_ != null; } /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return The error. */ @java.lang.Override @@ -382,8 +337,6 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -399,8 +352,6 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -411,13 +362,10 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List
-      getResultsList() {
+  public java.util.List getResultsList() {
     return results_;
   }
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -428,14 +376,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
+  public java.util.List 
       getResultsOrBuilderList() {
     return results_;
   }
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -450,8 +395,6 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -466,8 +409,6 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getResults(i
     return results_.get(index);
   }
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -486,59 +427,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override - public int getSpeechEventTypeValue() { + @java.lang.Override public int getSpeechEventTypeValue() { return speechEventType_; } /** - * - * *
    * Indicates the type of speech event.
    * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ - @java.lang.Override - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { + @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); + return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -546,26 +467,19 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
@@ -579,7 +493,6 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -591,17 +504,15 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     if (error_ != null) {
       output.writeMessage(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
       output.writeMessage(2, results_.get(i));
     }
-    if (speechEventType_
-        != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType
-            .SPEECH_EVENT_UNSPECIFIED
-            .getNumber()) {
+    if (speechEventType_ != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
       output.writeEnum(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
@@ -617,19 +528,20 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_
-        != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType
-            .SPEECH_EVENT_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
+    if (speechEventType_ != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -639,23 +551,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other =
-        (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError().equals(other.getError())) return false;
+      if (!getError()
+          .equals(other.getError())) return false;
     }
-    if (!getResultsList().equals(other.getResultsList())) return false;
+    if (!getResultsList()
+        .equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime()
+          .equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -688,104 +602,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -827,23 +733,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.newBuilder()
@@ -851,17 +755,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -889,14 +793,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto
-          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse
-        getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance();
     }
 
@@ -911,8 +814,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result =
-          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -942,39 +844,38 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -982,9 +883,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other) {
-      if (other
-          == com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance()) return this;
       if (other.hasError()) {
         mergeError(other.getError());
       }
@@ -1006,10 +905,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRes
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getResultsFieldBuilder()
-                    : null;
+            resultsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getResultsFieldBuilder() : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -1040,8 +938,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1050,38 +947,30 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
-        errorBuilder_;
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** - * - * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; - * * @return The error. */ public com.google.rpc.Status getError() { @@ -1092,8 +981,6 @@ public com.google.rpc.Status getError() { } } /** - * - * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1115,8 +1002,6 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1124,7 +1009,8 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(
+        com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1135,8 +1021,6 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1147,7 +1031,8 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) {
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ =
+            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1159,8 +1044,6 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1180,8 +1063,6 @@ public Builder clearError() {
       return this;
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1190,13 +1071,11 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-
+      
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1208,12 +1087,11 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ?
+            com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
-     *
-     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1222,40 +1100,32 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.rpc.Status,
-                com.google.rpc.Status.Builder,
-                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
+        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
+                getError(),
+                getParentForChildren(),
+                isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ =
-            new java.util.ArrayList(
-                results_);
+        results_ = new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
-        resultsBuilder_;
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
 
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1265,8 +1135,7 @@ private void ensureResultsIsMutable() {
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsList() {
+    public java.util.List getResultsList() {
       if (resultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(results_);
       } else {
@@ -1274,8 +1143,6 @@ private void ensureResultsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1293,8 +1160,6 @@ public int getResultsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1312,8 +1177,6 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getResults(i
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1338,8 +1201,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1350,8 +1211,7 @@ public Builder setResults(
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
     public Builder setResults(
-        int index,
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.set(index, builderForValue.build());
@@ -1362,8 +1222,6 @@ public Builder setResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1387,8 +1245,6 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.StreamingRecognition
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1413,8 +1269,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1436,8 +1290,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1448,8 +1300,7 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
     public Builder addResults(
-        int index,
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder builderForValue) {
+        int index, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.add(index, builderForValue.build());
@@ -1460,8 +1311,6 @@ public Builder addResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1472,11 +1321,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
     public Builder addAllResults(
-        java.lang.Iterable
-            values) {
+        java.lang.Iterable values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -1484,8 +1333,6 @@ public Builder addAllResults(
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1506,8 +1353,6 @@ public Builder clearResults() {
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1528,8 +1373,6 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1544,8 +1387,6 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder getR
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1555,17 +1396,14 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder getR
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder
-        getResultsOrBuilder(int index) {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
+        int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);
-      } else {
+        return results_.get(index);  } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1575,9 +1413,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder getR
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List<
-            ? extends com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
-        getResultsOrBuilderList() {
+    public java.util.List 
+         getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1585,8 +1422,6 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder getR
       }
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1596,15 +1431,11 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder getR
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder
-        addResultsBuilder() {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addResultsBuilder() {
+      return getResultsFieldBuilder().addBuilder(
+          com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1616,14 +1447,10 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder getR
      */
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder()
-          .addBuilder(
-              index,
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder().addBuilder(
+          index, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1633,23 +1460,20 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List
-        getResultsBuilderList() {
+    public java.util.List 
+         getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> 
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
-                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
-                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
+                results_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1657,106 +1481,73 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
 
     private int speechEventType_ = 0;
     /**
-     *
-     *
      * 
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override - public int getSpeechEventTypeValue() { + @java.lang.Override public int getSpeechEventTypeValue() { return speechEventType_; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - getSpeechEventType() { + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( - speechEventType_); - return result == null - ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType - .UNRECOGNIZED - : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); + return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Indicates the type of speech event.
      * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1764,49 +1555,36 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - totalBilledTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : totalBilledTime_; + return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** - * - * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1828,8 +1606,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1837,7 +1613,8 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1848,8 +1625,6 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderFo
       return this;
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1861,9 +1636,7 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1875,8 +1648,6 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1896,8 +1667,6 @@ public Builder clearTotalBilledTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1906,13 +1675,11 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-
+      
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1924,14 +1691,11 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
       if (totalBilledTimeBuilder_ != null) {
         return totalBilledTimeBuilder_.getMessageOrBuilder();
       } else {
-        return totalBilledTime_ == null
-            ? com.google.protobuf.Duration.getDefaultInstance()
-            : totalBilledTime_;
+        return totalBilledTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
       }
     }
     /**
-     *
-     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1940,24 +1704,21 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(), getParentForChildren(), isClean());
+        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(),
+                getParentForChildren(),
+                isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1967,13 +1728,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
-  private static final com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse
-      DEFAULT_INSTANCE;
-
+  private static final com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse DEFAULT_INSTANCE;
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse();
   }
@@ -1982,16 +1742,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public StreamingRecognizeResponse parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new StreamingRecognizeResponse(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public StreamingRecognizeResponse parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new StreamingRecognizeResponse(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2006,4 +1766,6 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
similarity index 81%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
index d58bc6551..f8b30e427 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
@@ -1,57 +1,33 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface StreamingRecognizeResponseOrBuilder
-    extends
+public interface StreamingRecognizeResponseOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return Whether the error field is set. */ boolean hasError(); /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; - * * @return The error. */ com.google.rpc.Status getError(); /** - * - * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -62,8 +38,6 @@ public interface StreamingRecognizeResponseOrBuilder
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -73,10 +47,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List getResultsList();
+  java.util.List 
+      getResultsList();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -88,8 +61,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getResults(int index);
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -101,8 +72,6 @@ public interface StreamingRecognizeResponseOrBuilder
    */
   int getResultsCount();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -112,11 +81,9 @@ public interface StreamingRecognizeResponseOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List
+  java.util.List 
       getResultsOrBuilderList();
   /**
-   *
-   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -130,63 +97,45 @@ com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResults
       int index);
 
   /**
-   *
-   *
    * 
    * Indicates the type of speech event.
    * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** - * - * *
    * Indicates the type of speech event.
    * 
* - * - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; - * - * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; * @return The speechEventType. */ com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; - * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** - * - * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
similarity index 73%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
index edd251ef4..1f54a67cb 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
@@ -1,26 +1,9 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
- *
- *
  * 
  * Transcription normalization configuration. Use transcription normalization
  * to automatically replace parts of the transcript with phrases of your
@@ -30,31 +13,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
  */
-public final class TranscriptNormalization extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class TranscriptNormalization extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
     TranscriptNormalizationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use TranscriptNormalization.newBuilder() to construct.
   private TranscriptNormalization(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private TranscriptNormalization() {
     entries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new TranscriptNormalization();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private TranscriptNormalization(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,27 +57,22 @@ private TranscriptNormalization(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                entries_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              entries_.add(
-                  input.readMessage(
-                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              entries_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            entries_.add(
+                input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,7 +80,8 @@ private TranscriptNormalization(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -111,109 +90,89 @@ private TranscriptNormalization(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
   }
 
-  public interface EntryOrBuilder
-      extends
+  public interface EntryOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; - * * @return The search. */ java.lang.String getSearch(); /** - * - * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; - * * @return The bytes for search. */ - com.google.protobuf.ByteString getSearchBytes(); + com.google.protobuf.ByteString + getSearchBytes(); /** - * - * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; - * * @return The replace. */ java.lang.String getReplace(); /** - * - * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; - * * @return The bytes for replace. */ - com.google.protobuf.ByteString getReplaceBytes(); + com.google.protobuf.ByteString + getReplaceBytes(); /** - * - * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ boolean getCaseSensitive(); } /** - * - * *
    * A single replacement configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Entry extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Entry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) EntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Entry() { search_ = ""; replace_ = ""; @@ -221,15 +180,16 @@ private Entry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Entry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -248,32 +208,30 @@ private Entry( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - search_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + search_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - replace_ = s; - break; - } - case 24: - { - caseSensitive_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + replace_ = s; + break; + } + case 24: { + + caseSensitive_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -281,39 +239,34 @@ private Entry( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } public static final int SEARCH_FIELD_NUMBER = 1; private volatile java.lang.Object search_; /** - * - * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; - * * @return The search. */ @java.lang.Override @@ -322,29 +275,29 @@ public java.lang.String getSearch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); search_ = s; return s; } } /** - * - * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; - * * @return The bytes for search. */ @java.lang.Override - public com.google.protobuf.ByteString getSearchBytes() { + public com.google.protobuf.ByteString + getSearchBytes() { java.lang.Object ref = search_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); search_ = b; return b; } else { @@ -355,14 +308,11 @@ public com.google.protobuf.ByteString getSearchBytes() { public static final int REPLACE_FIELD_NUMBER = 2; private volatile java.lang.Object replace_; /** - * - * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; - * * @return The replace. */ @java.lang.Override @@ -371,29 +321,29 @@ public java.lang.String getReplace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replace_ = s; return s; } } /** - * - * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; - * * @return The bytes for replace. */ @java.lang.Override - public com.google.protobuf.ByteString getReplaceBytes() { + public com.google.protobuf.ByteString + getReplaceBytes() { java.lang.Object ref = replace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); replace_ = b; return b; } else { @@ -404,14 +354,11 @@ public com.google.protobuf.ByteString getReplaceBytes() { public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_; /** - * - * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ @java.lang.Override @@ -420,7 +367,6 @@ public boolean getCaseSensitive() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -432,7 +378,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(search_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, search_); } @@ -458,7 +405,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, replace_); } if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, caseSensitive_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -468,17 +416,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = - (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; - if (!getSearch().equals(other.getSearch())) return false; - if (!getReplace().equals(other.getReplace())) return false; - if (getCaseSensitive() != other.getCaseSensitive()) return false; + if (!getSearch() + .equals(other.getSearch())) return false; + if (!getReplace() + .equals(other.getReplace())) return false; + if (getCaseSensitive() + != other.getCaseSensitive()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -495,102 +445,95 @@ public int hashCode() { hash = (37 * hash) + REPLACE_FIELD_NUMBER; hash = (53 * hash) + getReplace().hashCode(); hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCaseSensitive()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -600,49 +543,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A single replacement configuration.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } - // Construct using - // com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() + // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -656,14 +594,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstanceForType() { return com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance(); } @@ -678,8 +615,7 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = - new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); result.search_ = search_; result.replace_ = replace_; result.caseSensitive_ = caseSensitive_; @@ -691,52 +627,46 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPart public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, - java.lang.Object value) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { - if (other - == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { + if (other == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) return this; if (!other.getSearch().isEmpty()) { search_ = other.search_; onChanged(); @@ -767,9 +697,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -781,20 +709,18 @@ public Builder mergeFrom( private java.lang.Object search_ = ""; /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @return The search. */ public java.lang.String getSearch() { java.lang.Object ref = search_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); search_ = s; return s; @@ -803,21 +729,20 @@ public java.lang.String getSearch() { } } /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @return The bytes for search. */ - public com.google.protobuf.ByteString getSearchBytes() { + public com.google.protobuf.ByteString + getSearchBytes() { java.lang.Object ref = search_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); search_ = b; return b; } else { @@ -825,61 +750,54 @@ public com.google.protobuf.ByteString getSearchBytes() { } } /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @param value The search to set. * @return This builder for chaining. */ - public Builder setSearch(java.lang.String value) { + public Builder setSearch( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + search_ = value; onChanged(); return this; } /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @return This builder for chaining. */ public Builder clearSearch() { - + search_ = getDefaultInstance().getSearch(); onChanged(); return this; } /** - * - * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; - * * @param value The bytes for search to set. * @return This builder for chaining. */ - public Builder setSearchBytes(com.google.protobuf.ByteString value) { + public Builder setSearchBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + search_ = value; onChanged(); return this; @@ -887,20 +805,18 @@ public Builder setSearchBytes(com.google.protobuf.ByteString value) { private java.lang.Object replace_ = ""; /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @return The replace. */ public java.lang.String getReplace() { java.lang.Object ref = replace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replace_ = s; return s; @@ -909,21 +825,20 @@ public java.lang.String getReplace() { } } /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @return The bytes for replace. */ - public com.google.protobuf.ByteString getReplaceBytes() { + public com.google.protobuf.ByteString + getReplaceBytes() { java.lang.Object ref = replace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); replace_ = b; return b; } else { @@ -931,76 +846,66 @@ public com.google.protobuf.ByteString getReplaceBytes() { } } /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @param value The replace to set. * @return This builder for chaining. */ - public Builder setReplace(java.lang.String value) { + public Builder setReplace( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + replace_ = value; onChanged(); return this; } /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @return This builder for chaining. */ public Builder clearReplace() { - + replace_ = getDefaultInstance().getReplace(); onChanged(); return this; } /** - * - * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; - * * @param value The bytes for replace to set. * @return This builder for chaining. */ - public Builder setReplaceBytes(com.google.protobuf.ByteString value) { + public Builder setReplaceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replace_ = value; onChanged(); return this; } - private boolean caseSensitive_; + private boolean caseSensitive_ ; /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @return The caseSensitive. */ @java.lang.Override @@ -1008,41 +913,34 @@ public boolean getCaseSensitive() { return caseSensitive_; } /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @param value The caseSensitive to set. * @return This builder for chaining. */ public Builder setCaseSensitive(boolean value) { - + caseSensitive_ = value; onChanged(); return this; } /** - * - * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; - * * @return This builder for chaining. */ public Builder clearCaseSensitive() { - + caseSensitive_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1055,32 +953,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) - private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - DEFAULT_INSTANCE; - + private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Entry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Entry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1092,17 +988,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry - getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** - * - * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1113,13 +1007,10 @@ public com.google.protobuf.Parser getParserForType() {
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
   @java.lang.Override
-  public java.util.List
-      getEntriesList() {
+  public java.util.List getEntriesList() {
     return entries_;
   }
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1130,14 +1021,11 @@ public com.google.protobuf.Parser getParserForType() {
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
   @java.lang.Override
-  public java.util.List<
-          ? extends com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>
+  public java.util.List 
       getEntriesOrBuilderList() {
     return entries_;
   }
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1152,8 +1040,6 @@ public int getEntriesCount() {
     return entries_.size();
   }
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1168,8 +1054,6 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntrie
     return entries_.get(index);
   }
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1180,13 +1064,12 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntrie
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder
-      getEntriesOrBuilder(int index) {
+  public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder getEntriesOrBuilder(
+      int index) {
     return entries_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1198,7 +1081,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     for (int i = 0; i < entries_.size(); i++) {
       output.writeMessage(1, entries_.get(i));
     }
@@ -1212,7 +1096,8 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < entries_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(1, entries_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1222,15 +1107,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other =
-        (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
+    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
 
-    if (!getEntriesList().equals(other.getEntriesList())) return false;
+    if (!getEntriesList()
+        .equals(other.getEntriesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1252,104 +1137,96 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data)
+      throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
-  public static Builder newBuilder(
-      com.google.cloud.speech.v1p1beta1.TranscriptNormalization prototype) {
+  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptNormalization prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Transcription normalization configuration. Use transcription normalization
    * to automatically replace parts of the transcript with phrases of your
@@ -1359,23 +1236,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
       com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder()
@@ -1383,17 +1258,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getEntriesFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1407,9 +1282,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
-          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
     }
 
     @java.lang.Override
@@ -1428,8 +1303,7 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial() {
-      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result =
-          new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
+      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
       int from_bitField0_ = bitField0_;
       if (entriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1448,39 +1322,38 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization) other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1488,8 +1361,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptNormalization other) {
-      if (other == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) return this;
       if (entriesBuilder_ == null) {
         if (!other.entries_.isEmpty()) {
           if (entries_.isEmpty()) {
@@ -1508,10 +1380,9 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptNormalizati
             entriesBuilder_ = null;
             entries_ = other.entries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            entriesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getEntriesFieldBuilder()
-                    : null;
+            entriesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getEntriesFieldBuilder() : null;
           } else {
             entriesBuilder_.addAllMessages(other.entries_);
           }
@@ -1536,8 +1407,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1546,30 +1416,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List
-        entries_ = java.util.Collections.emptyList();
-
+    private java.util.List entries_ =
+      java.util.Collections.emptyList();
     private void ensureEntriesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        entries_ =
-            new java.util.ArrayList<
-                com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>(entries_);
+        entries_ = new java.util.ArrayList(entries_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry,
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder,
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>
-        entriesBuilder_;
+        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> entriesBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1577,11 +1438,9 @@ private void ensureEntriesIsMutable() {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ - public java.util.List - getEntriesList() { + public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { @@ -1589,8 +1448,6 @@ private void ensureEntriesIsMutable() { } } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1598,8 +1455,7 @@ private void ensureEntriesIsMutable() {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public int getEntriesCount() { if (entriesBuilder_ == null) { @@ -1609,8 +1465,6 @@ public int getEntriesCount() { } } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1618,8 +1472,7 @@ public int getEntriesCount() {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntries(int index) { if (entriesBuilder_ == null) { @@ -1629,8 +1482,6 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntrie } } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1638,8 +1489,7 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntrie
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public Builder setEntries( int index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry value) { @@ -1656,8 +1506,6 @@ public Builder setEntries( return this; } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1665,12 +1513,10 @@ public Builder setEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public Builder setEntries( - int index, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { + int index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); @@ -1681,8 +1527,6 @@ public Builder setEntries( return this; } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1690,11 +1534,9 @@ public Builder setEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ - public Builder addEntries( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry value) { + public Builder addEntries(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1708,8 +1550,6 @@ public Builder addEntries( return this; } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1717,8 +1557,7 @@ public Builder addEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public Builder addEntries( int index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry value) { @@ -1735,8 +1574,6 @@ public Builder addEntries( return this; } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1744,8 +1581,7 @@ public Builder addEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public Builder addEntries( com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { @@ -1759,8 +1595,6 @@ public Builder addEntries( return this; } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1768,12 +1602,10 @@ public Builder addEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public Builder addEntries( - int index, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { + int index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); @@ -1784,8 +1616,6 @@ public Builder addEntries( return this; } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1793,16 +1623,14 @@ public Builder addEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public Builder addAllEntries( - java.lang.Iterable< - ? extends com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry> - values) { + java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); @@ -1810,8 +1638,6 @@ public Builder addAllEntries( return this; } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1819,8 +1645,7 @@ public Builder addAllEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public Builder clearEntries() { if (entriesBuilder_ == null) { @@ -1833,8 +1658,6 @@ public Builder clearEntries() { return this; } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1842,8 +1665,7 @@ public Builder clearEntries() {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { @@ -1856,8 +1678,6 @@ public Builder removeEntries(int index) { return this; } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1865,16 +1685,13 @@ public Builder removeEntries(int index) {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder - getEntriesBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder getEntriesBuilder( + int index) { return getEntriesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1882,20 +1699,16 @@ public Builder removeEntries(int index) {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder - getEntriesOrBuilder(int index) { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder getEntriesOrBuilder( + int index) { if (entriesBuilder_ == null) { - return entries_.get(index); - } else { + return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1903,12 +1716,10 @@ public Builder removeEntries(int index) {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ - public java.util.List< - ? extends com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> - getEntriesOrBuilderList() { + public java.util.List + getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { @@ -1916,8 +1727,6 @@ public Builder removeEntries(int index) { } } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1925,18 +1734,13 @@ public Builder removeEntries(int index) {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder - addEntriesBuilder() { - return getEntriesFieldBuilder() - .addBuilder( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder addEntriesBuilder() { + return getEntriesFieldBuilder().addBuilder( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()); } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1944,19 +1748,14 @@ public Builder removeEntries(int index) {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder - addEntriesBuilder(int index) { - return getEntriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder addEntriesBuilder( + int index) { + return getEntriesFieldBuilder().addBuilder( + index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()); } /** - * - * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1964,33 +1763,29 @@ public Builder removeEntries(int index) {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; - * + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; */ - public java.util.List - getEntriesBuilderList() { + public java.util.List + getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { - entriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>( - entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>( + entries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); entries_ = null; } return entriesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2000,12 +1795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization) private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(); } @@ -2014,16 +1809,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptNormalization parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptNormalization(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptNormalization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptNormalization(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2038,4 +1833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java similarity index 78% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java index 11549b4c3..fa51b40b7 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptNormalizationOrBuilder - extends +public interface TranscriptNormalizationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -35,10 +17,9 @@ public interface TranscriptNormalizationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List getEntriesList();
+  java.util.List 
+      getEntriesList();
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -50,8 +31,6 @@ public interface TranscriptNormalizationOrBuilder
    */
   com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntries(int index);
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -63,8 +42,6 @@ public interface TranscriptNormalizationOrBuilder
    */
   int getEntriesCount();
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -74,11 +51,9 @@ public interface TranscriptNormalizationOrBuilder
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List
+  java.util.List 
       getEntriesOrBuilderList();
   /**
-   *
-   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
similarity index 70%
rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
index bda55e2f5..25b03d6ff 100644
--- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
+++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
@@ -1,55 +1,39 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
- *
- *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TranscriptOutputConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TranscriptOutputConfig() {} + private TranscriptOutputConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,20 +52,19 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,39 +72,34 @@ private TranscriptOutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public enum OutputTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; - private OutputTypeCase(int value) { this.value = value; } @@ -137,28 +115,24 @@ public static OutputTypeCase valueOf(int value) { public static OutputTypeCase forNumber(int value) { switch (value) { - case 1: - return GCS_URI; - case 0: - return OUTPUTTYPE_NOT_SET; - default: - return null; + case 1: return GCS_URI; + case 0: return OUTPUTTYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public OutputTypeCase getOutputTypeCase() { - return OutputTypeCase.forNumber(outputTypeCase_); + public OutputTypeCase + getOutputTypeCase() { + return OutputTypeCase.forNumber( + outputTypeCase_); } public static final int GCS_URI_FIELD_NUMBER = 1; /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -166,15 +140,12 @@ public OutputTypeCase getOutputTypeCase() {
    * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ public boolean hasGcsUri() { return outputTypeCase_ == 1; } /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -182,7 +153,6 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -193,7 +163,8 @@ public java.lang.String getGcsUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputTypeCase_ == 1) { outputType_ = s; @@ -202,8 +173,6 @@ public java.lang.String getGcsUri() { } } /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -211,17 +180,18 @@ public java.lang.String getGcsUri() {
    * 
* * string gcs_uri = 1; - * * @return The bytes for gcsUri. */ - public com.google.protobuf.ByteString getGcsUriBytes() { + public com.google.protobuf.ByteString + getGcsUriBytes() { java.lang.Object ref = ""; if (outputTypeCase_ == 1) { ref = outputType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputTypeCase_ == 1) { outputType_ = b; } @@ -232,7 +202,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +213,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (outputTypeCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputType_); } @@ -268,18 +238,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other = - (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) obj; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other = (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) obj; if (!getOutputTypeCase().equals(other.getOutputTypeCase())) return false; switch (outputTypeCase_) { case 1: - if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getGcsUri() + .equals(other.getGcsUri())) return false; break; case 0: default: @@ -309,127 +279,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder() @@ -437,15 +397,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -455,9 +416,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override @@ -476,8 +437,7 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = - new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -490,39 +450,38 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig)other); } else { super.mergeFrom(other); return this; @@ -530,20 +489,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) return this; switch (other.getOutputTypeCase()) { - case GCS_URI: - { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: - { - break; - } + case GCS_URI: { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -564,8 +520,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,12 +529,12 @@ public Builder mergeFrom( } return this; } - private int outputTypeCase_ = 0; private java.lang.Object outputType_; - - public OutputTypeCase getOutputTypeCase() { - return OutputTypeCase.forNumber(outputTypeCase_); + public OutputTypeCase + getOutputTypeCase() { + return OutputTypeCase.forNumber( + outputTypeCase_); } public Builder clearOutputType() { @@ -589,9 +544,8 @@ public Builder clearOutputType() { return this; } + /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -599,7 +553,6 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -607,8 +560,6 @@ public boolean hasGcsUri() { return outputTypeCase_ == 1; } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -616,7 +567,6 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ @java.lang.Override @@ -626,7 +576,8 @@ public java.lang.String getGcsUri() { ref = outputType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputTypeCase_ == 1) { outputType_ = s; @@ -637,8 +588,6 @@ public java.lang.String getGcsUri() { } } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -646,18 +595,19 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; - * * @return The bytes for gcsUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsUriBytes() { + public com.google.protobuf.ByteString + getGcsUriBytes() { java.lang.Object ref = ""; if (outputTypeCase_ == 1) { ref = outputType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); if (outputTypeCase_ == 1) { outputType_ = b; } @@ -667,8 +617,6 @@ public com.google.protobuf.ByteString getGcsUriBytes() { } } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -676,22 +624,20 @@ public com.google.protobuf.ByteString getGcsUriBytes() {
      * 
* * string gcs_uri = 1; - * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri(java.lang.String value) { + public Builder setGcsUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -699,7 +645,6 @@ public Builder setGcsUri(java.lang.String value) {
      * 
* * string gcs_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -711,8 +656,6 @@ public Builder clearGcsUri() { return this; } /** - * - * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -720,23 +663,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; - * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,12 +689,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) private static final com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(); } @@ -760,16 +703,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -784,4 +727,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java similarity index 61% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java index 102d1f01e..3733fac7b 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptOutputConfigOrBuilder - extends +public interface TranscriptOutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -33,13 +15,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -47,13 +26,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return The gcsUri. */ java.lang.String getGcsUri(); /** - * - * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -61,11 +37,10 @@ public interface TranscriptOutputConfigOrBuilder
    * 
* * string gcs_uri = 1; - * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString getGcsUriBytes(); + com.google.protobuf.ByteString + getGcsUriBytes(); - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase - getOutputTypeCase(); + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java similarity index 71% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java index e647d6d17..7ed5cddc8 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `UpdateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ -public final class UpdateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateCustomClassRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) UpdateCustomClassRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateCustomClassRequest.newBuilder() to construct. private UpdateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateCustomClassRequest() {} + private UpdateCustomClassRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateCustomClassRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdateCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } public static final int CUSTOM_CLASS_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -152,10 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ @java.lang.Override @@ -163,8 +135,6 @@ public boolean hasCustomClass() { return customClass_ != null; } /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -177,21 +147,14 @@ public boolean hasCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -204,9 +167,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -216,14 +177,11 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -231,14 +189,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -246,8 +201,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -260,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (customClass_ != null) { output.writeMessage(1, getCustomClass()); } @@ -289,10 +242,12 @@ public int getSerializedSize() { size = 0; if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomClass()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCustomClass()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,21 +257,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = - (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass().equals(other.getCustomClass())) return false; + if (!getCustomClass() + .equals(other.getCustomClass())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,127 +299,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `UpdateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.newBuilder() @@ -471,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override @@ -520,8 +467,7 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = - new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); if (customClassBuilder_ == null) { result.customClass_ = customClass_; } else { @@ -540,39 +486,38 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)other); } else { super.mergeFrom(other); return this; @@ -580,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.getDefaultInstance()) return this; if (other.hasCustomClass()) { mergeCustomClass(other.getCustomClass()); } @@ -607,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,13 +563,8 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> - customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -639,18 +577,13 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -663,24 +596,17 @@ public boolean hasCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } else { return customClassBuilder_.getMessage(); } } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -693,9 +619,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { @@ -711,8 +635,6 @@ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass valu return this; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -725,9 +647,7 @@ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass valu
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setCustomClass( com.google.cloud.speech.v1p1beta1.CustomClass.Builder builderForValue) { @@ -741,8 +661,6 @@ public Builder setCustomClass( return this; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -755,17 +673,13 @@ public Builder setCustomClass(
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); } else { customClass_ = value; } @@ -777,8 +691,6 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -791,9 +703,7 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -807,8 +717,6 @@ public Builder clearCustomClass() { return this; } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -821,18 +729,14 @@ public Builder clearCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -845,22 +749,17 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null - ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() - : customClass_; + return customClass_ == null ? + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; } } /** - * - * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -873,22 +772,17 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, - com.google.cloud.speech.v1p1beta1.CustomClass.Builder, - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( - getCustomClass(), getParentForChildren(), isClean()); + customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( + getCustomClass(), + getParentForChildren(), + isClean()); customClass_ = null; } return customClassBuilder_; @@ -896,47 +790,34 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -957,15 +838,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -976,8 +856,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -988,7 +866,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1000,8 +878,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1020,8 +896,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1029,13 +903,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1046,14 +918,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1061,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1088,12 +954,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) private static final com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(); } @@ -1102,16 +968,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java index debebb143..5ffdf4623 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdateCustomClassRequestOrBuilder - extends +public interface UpdateCustomClassRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -38,16 +20,11 @@ public interface UpdateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -60,16 +37,11 @@ public interface UpdateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The customClass. */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(); /** - * - * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -82,39 +54,29 @@ public interface UpdateCustomClassRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java similarity index 71% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java index 810492ba6..3c5a6f525 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Message sent by the client for the `UpdatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ -public final class UpdatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdatePhraseSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) UpdatePhraseSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdatePhraseSetRequest.newBuilder() to construct. private UpdatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdatePhraseSetRequest() {} + private UpdatePhraseSetRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdatePhraseSetRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = - input.readMessage( - com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); } - case 18: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,33 +92,29 @@ private UpdatePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } public static final int PHRASE_SET_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -152,10 +127,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -163,8 +135,6 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -177,21 +147,14 @@ public boolean hasPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -204,9 +167,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -216,14 +177,11 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -231,14 +189,11 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ @java.lang.Override @@ -246,8 +201,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * The list of fields to be updated.
    * 
@@ -260,7 +213,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +224,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (phraseSet_ != null) { output.writeMessage(1, getPhraseSet()); } @@ -289,10 +242,12 @@ public int getSerializedSize() { size = 0; if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPhraseSet()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -302,21 +257,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = - (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet().equals(other.getPhraseSet())) return false; + if (!getPhraseSet() + .equals(other.getPhraseSet())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -343,127 +299,117 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Message sent by the client for the `UpdatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.newBuilder() @@ -471,15 +417,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -499,9 +446,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto - .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override @@ -520,8 +467,7 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = - new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); if (phraseSetBuilder_ == null) { result.phraseSet_ = phraseSet_; } else { @@ -540,39 +486,38 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)other); } else { super.mergeFrom(other); return this; @@ -580,8 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.getDefaultInstance()) return this; if (other.hasPhraseSet()) { mergePhraseSet(other.getPhraseSet()); } @@ -607,8 +551,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -620,13 +563,8 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> - phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -639,18 +577,13 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -663,24 +596,17 @@ public boolean hasPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -693,9 +619,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -711,8 +635,6 @@ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { return this; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -725,9 +647,7 @@ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setPhraseSet( com.google.cloud.speech.v1p1beta1.PhraseSet.Builder builderForValue) { @@ -741,8 +661,6 @@ public Builder setPhraseSet( return this; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -755,17 +673,13 @@ public Builder setPhraseSet(
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); } else { phraseSet_ = value; } @@ -777,8 +691,6 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) return this; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -791,9 +703,7 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value)
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -807,8 +717,6 @@ public Builder clearPhraseSet() { return this; } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -821,18 +729,14 @@ public Builder clearPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -845,22 +749,17 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder()
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null - ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() - : phraseSet_; + return phraseSet_ == null ? + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; } } /** - * - * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -873,22 +772,17 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde
      * with matching `us` or `eu` location value.
      * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( - getPhraseSet(), getParentForChildren(), isClean()); + phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( + getPhraseSet(), + getParentForChildren(), + isClean()); phraseSet_ = null; } return phraseSetBuilder_; @@ -896,47 +790,34 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -957,15 +838,14 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -976,8 +856,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -988,7 +866,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -1000,8 +878,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1020,8 +896,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1029,13 +903,11 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1046,14 +918,11 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * The list of fields to be updated.
      * 
@@ -1061,24 +930,21 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1088,12 +954,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(); } @@ -1102,16 +968,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1126,4 +992,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java index 5bb289426..ae3c2a999 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdatePhraseSetRequestOrBuilder - extends +public interface UpdatePhraseSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -38,16 +20,11 @@ public interface UpdatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -60,16 +37,11 @@ public interface UpdatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The phraseSet. */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(); /** - * - * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -82,39 +54,29 @@ public interface UpdatePhraseSetRequestOrBuilder
    * with matching `us` or `eu` location value.
    * 
* - * - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; - * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * The list of fields to be updated.
    * 
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java similarity index 77% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java index 76bf78c8f..57c082189 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** - * - * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ -public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class WordInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.WordInfo) WordInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,60 +53,55 @@ private WordInfo( case 0: done = true; break; - case 10: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); - } - startTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); - } - endTime_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); - } - - break; + startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - word_ = s; - break; - } - case 37: - { - confidence_ = input.readFloat(); - break; + break; + } + case 18: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); } - case 40: - { - speakerTag_ = input.readInt32(); - break; + endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + word_ = s; + break; + } + case 37: { + + confidence_ = input.readFloat(); + break; + } + case 40: { + + speakerTag_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -131,33 +109,29 @@ private WordInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, - com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -168,7 +142,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ @java.lang.Override @@ -176,8 +149,6 @@ public boolean hasStartTime() { return startTime_ != null; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -188,7 +159,6 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ @java.lang.Override @@ -196,8 +166,6 @@ public com.google.protobuf.Duration getStartTime() { return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -217,8 +185,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration endTime_;
   /**
-   *
-   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -229,7 +195,6 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ @java.lang.Override @@ -237,8 +202,6 @@ public boolean hasEndTime() { return endTime_ != null; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -249,7 +212,6 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ @java.lang.Override @@ -257,8 +219,6 @@ public com.google.protobuf.Duration getEndTime() { return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_; } /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -278,14 +238,11 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ @java.lang.Override @@ -294,29 +251,29 @@ public java.lang.String getWord() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); word_ = s; return s; } } /** - * - * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The bytes for word. */ @java.lang.Override - public com.google.protobuf.ByteString getWordBytes() { + public com.google.protobuf.ByteString + getWordBytes() { java.lang.Object ref = word_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); word_ = b; return b; } else { @@ -327,8 +284,6 @@ public com.google.protobuf.ByteString getWordBytes() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -340,7 +295,6 @@ public com.google.protobuf.ByteString getWordBytes() {
    * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -351,8 +305,6 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** - * - * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -362,7 +314,6 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -371,7 +322,6 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,7 +333,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -409,19 +360,23 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(word_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, word_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -431,26 +386,30 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.WordInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.WordInfo other = - (com.google.cloud.speech.v1p1beta1.WordInfo) obj; + com.google.cloud.speech.v1p1beta1.WordInfo other = (com.google.cloud.speech.v1p1beta1.WordInfo) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime().equals(other.getStartTime())) return false; + if (!getStartTime() + .equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime().equals(other.getEndTime())) return false; + if (!getEndTime() + .equals(other.getEndTime())) return false; } - if (!getWord().equals(other.getWord())) return false; + if (!getWord() + .equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits(other.getConfidence())) return false; - if (getSpeakerTag() != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits( + other.getConfidence())) return false; + if (getSpeakerTag() + != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -473,7 +432,8 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -481,127 +441,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.WordInfo) com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, - com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.WordInfo.newBuilder() @@ -609,15 +560,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -643,9 +595,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto - .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override @@ -664,8 +616,7 @@ public com.google.cloud.speech.v1p1beta1.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { - com.google.cloud.speech.v1p1beta1.WordInfo result = - new com.google.cloud.speech.v1p1beta1.WordInfo(this); + com.google.cloud.speech.v1p1beta1.WordInfo result = new com.google.cloud.speech.v1p1beta1.WordInfo(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -687,39 +638,38 @@ public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo) other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo)other); } else { super.mergeFrom(other); return this; @@ -775,13 +725,8 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - startTimeBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -792,15 +737,12 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -811,7 +753,6 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -822,8 +763,6 @@ public com.google.protobuf.Duration getStartTime() { } } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -849,8 +788,6 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -862,7 +799,8 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -873,8 +811,6 @@ public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -890,7 +826,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -902,8 +838,6 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -927,8 +861,6 @@ public Builder clearStartTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -941,13 +873,11 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-
+      
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -963,12 +893,11 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_;
+        return startTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : startTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -981,17 +910,14 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Duration start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getStartTime(), getParentForChildren(), isClean());
+        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getStartTime(),
+                getParentForChildren(),
+                isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -999,13 +925,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Duration endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
-        endTimeBuilder_;
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> endTimeBuilder_;
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1016,15 +937,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1035,7 +953,6 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -1046,8 +963,6 @@ public com.google.protobuf.Duration getEndTime() { } } /** - * - * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1073,8 +988,6 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1086,7 +999,8 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(
+        com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1097,8 +1011,6 @@ public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1114,7 +1026,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1126,8 +1038,6 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1151,8 +1061,6 @@ public Builder clearEndTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1165,13 +1073,11 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-
+      
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1187,12 +1093,11 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_;
+        return endTime_ == null ?
+            com.google.protobuf.Duration.getDefaultInstance() : endTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1205,17 +1110,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Duration end_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration,
-            com.google.protobuf.Duration.Builder,
-            com.google.protobuf.DurationOrBuilder>
+        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Duration,
-                com.google.protobuf.Duration.Builder,
-                com.google.protobuf.DurationOrBuilder>(
-                getEndTime(), getParentForChildren(), isClean());
+        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+                getEndTime(),
+                getParentForChildren(),
+                isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1223,20 +1125,18 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object word_ = "";
     /**
-     *
-     *
      * 
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); word_ = s; return s; @@ -1245,21 +1145,20 @@ public java.lang.String getWord() { } } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return The bytes for word. */ - public com.google.protobuf.ByteString getWordBytes() { + public com.google.protobuf.ByteString + getWordBytes() { java.lang.Object ref = word_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); word_ = b; return b; } else { @@ -1267,70 +1166,61 @@ public com.google.protobuf.ByteString getWordBytes() { } } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord(java.lang.String value) { + public Builder setWord( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** - * - * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; - * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes(com.google.protobuf.ByteString value) { + public Builder setWordBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_; + private float confidence_ ; /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1342,7 +1232,6 @@ public Builder setWordBytes(com.google.protobuf.ByteString value) {
      * 
* * float confidence = 4; - * * @return The confidence. */ @java.lang.Override @@ -1350,8 +1239,6 @@ public float getConfidence() { return confidence_; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1363,19 +1250,16 @@ public float getConfidence() {
      * 
* * float confidence = 4; - * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** - * - * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1387,20 +1271,17 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; - * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_; + private int speakerTag_ ; /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1410,7 +1291,6 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ @java.lang.Override @@ -1418,8 +1298,6 @@ public int getSpeakerTag() { return speakerTag_; } /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1429,19 +1307,16 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** - * - * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1451,18 +1326,17 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1472,12 +1346,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.WordInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.WordInfo) private static final com.google.cloud.speech.v1p1beta1.WordInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.WordInfo(); } @@ -1486,16 +1360,16 @@ public static com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1510,4 +1384,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java similarity index 84% rename from proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java index 0bdb11ab4..b811f0f30 100644 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java +++ b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface WordInfoOrBuilder - extends +public interface WordInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.WordInfo) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -36,13 +18,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -53,13 +32,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration start_time = 1; - * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -74,8 +50,6 @@ public interface WordInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -86,13 +60,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -103,13 +74,10 @@ public interface WordInfoOrBuilder
    * 
* * .google.protobuf.Duration end_time = 2; - * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** - * - * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -124,33 +92,26 @@ public interface WordInfoOrBuilder
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The word. */ java.lang.String getWord(); /** - * - * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; - * * @return The bytes for word. */ - com.google.protobuf.ByteString getWordBytes(); + com.google.protobuf.ByteString + getWordBytes(); /** - * - * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -162,14 +123,11 @@ public interface WordInfoOrBuilder
    * 
* * float confidence = 4; - * * @return The confidence. */ float getConfidence(); /** - * - * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -179,7 +137,6 @@ public interface WordInfoOrBuilder
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto similarity index 100% rename from proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto rename to owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000..e1dc30461 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.AdaptationSettings; +import com.google.cloud.speech.v1p1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationSettings adaptationSettings = + AdaptationSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); + } +} +// [END speech_v1p1beta1_generated_adaptationclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000..9a2da57cd --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_create_setcredentialsprovider1_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.AdaptationSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationSettings adaptationSettings = + AdaptationSettings.newBuilder() + .setTransportChannelProvider( + AdaptationSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); + } +} +// [END speech_v1p1beta1_generated_adaptationclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000..d9d26ebfc --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_create_setendpoint_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.AdaptationSettings; +import com.google.cloud.speech.v1p1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationSettings adaptationSettings = + AdaptationSettings.newBuilder().setEndpoint(myEndpoint).build(); + AdaptationClient adaptationClient = AdaptationClient.create(adaptationSettings); + } +} +// [END speech_v1p1beta1_generated_adaptationclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java new file mode 100644 index 000000000..3a8bcaccf --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_createcustomclass_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.LocationName; + +public class AsyncCreateCustomClass { + + public static void main(String[] args) throws Exception { + asyncCreateCustomClass(); + } + + public static void asyncCreateCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CreateCustomClassRequest request = + CreateCustomClassRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCustomClassId("customClassId1871032322") + .setCustomClass(CustomClass.newBuilder().build()) + .build(); + ApiFuture future = + adaptationClient.createCustomClassCallable().futureCall(request); + // Do something. + CustomClass response = future.get(); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_createcustomclass_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java new file mode 100644 index 000000000..5704d71d0 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_createcustomclass_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.LocationName; + +public class SyncCreateCustomClass { + + public static void main(String[] args) throws Exception { + syncCreateCustomClass(); + } + + public static void syncCreateCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CreateCustomClassRequest request = + CreateCustomClassRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setCustomClassId("customClassId1871032322") + .setCustomClass(CustomClass.newBuilder().build()) + .build(); + CustomClass response = adaptationClient.createCustomClass(request); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_createcustomclass_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java new file mode 100644 index 000000000..59f887842 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_createcustomclass_locationnamecustomclassstring_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.LocationName; + +public class SyncCreateCustomClassLocationnameCustomclassString { + + public static void main(String[] args) throws Exception { + syncCreateCustomClassLocationnameCustomclassString(); + } + + public static void syncCreateCustomClassLocationnameCustomclassString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + CustomClass response = adaptationClient.createCustomClass(parent, customClass, customClassId); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_createcustomclass_locationnamecustomclassstring_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java new file mode 100644 index 000000000..8c959c265 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_createcustomclass_stringcustomclassstring_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.LocationName; + +public class SyncCreateCustomClassStringCustomclassString { + + public static void main(String[] args) throws Exception { + syncCreateCustomClassStringCustomclassString(); + } + + public static void syncCreateCustomClassStringCustomclassString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + CustomClass customClass = CustomClass.newBuilder().build(); + String customClassId = "customClassId1871032322"; + CustomClass response = adaptationClient.createCustomClass(parent, customClass, customClassId); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_createcustomclass_stringcustomclassstring_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java new file mode 100644 index 000000000..91219418e --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_createphraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.cloud.speech.v1p1beta1.PhraseSet; + +public class AsyncCreatePhraseSet { + + public static void main(String[] args) throws Exception { + asyncCreatePhraseSet(); + } + + public static void asyncCreatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CreatePhraseSetRequest request = + CreatePhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPhraseSetId("phraseSetId959902180") + .setPhraseSet(PhraseSet.newBuilder().build()) + .build(); + ApiFuture future = adaptationClient.createPhraseSetCallable().futureCall(request); + // Do something. + PhraseSet response = future.get(); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_createphraseset_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java new file mode 100644 index 000000000..501dbda50 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_createphraseset_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.cloud.speech.v1p1beta1.PhraseSet; + +public class SyncCreatePhraseSet { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSet(); + } + + public static void syncCreatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CreatePhraseSetRequest request = + CreatePhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPhraseSetId("phraseSetId959902180") + .setPhraseSet(PhraseSet.newBuilder().build()) + .build(); + PhraseSet response = adaptationClient.createPhraseSet(request); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_createphraseset_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java new file mode 100644 index 000000000..ba61fbbc0 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_createphraseset_locationnamephrasesetstring_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.cloud.speech.v1p1beta1.PhraseSet; + +public class SyncCreatePhraseSetLocationnamePhrasesetString { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSetLocationnamePhrasesetString(); + } + + public static void syncCreatePhraseSetLocationnamePhrasesetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + PhraseSet response = adaptationClient.createPhraseSet(parent, phraseSet, phraseSetId); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_createphraseset_locationnamephrasesetstring_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java new file mode 100644 index 000000000..08e33dd35 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_createphraseset_stringphrasesetstring_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.cloud.speech.v1p1beta1.PhraseSet; + +public class SyncCreatePhraseSetStringPhrasesetString { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSetStringPhrasesetString(); + } + + public static void syncCreatePhraseSetStringPhrasesetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + String phraseSetId = "phraseSetId959902180"; + PhraseSet response = adaptationClient.createPhraseSet(parent, phraseSet, phraseSetId); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_createphraseset_stringphrasesetstring_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java new file mode 100644 index 000000000..7e64b2f25 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_deletecustomclass_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClassName; +import com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteCustomClass { + + public static void main(String[] args) throws Exception { + asyncDeleteCustomClass(); + } + + public static void asyncDeleteCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + DeleteCustomClassRequest request = + DeleteCustomClassRequest.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .build(); + ApiFuture future = adaptationClient.deleteCustomClassCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_deletecustomclass_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java new file mode 100644 index 000000000..8f7babd66 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_deletecustomclass_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClassName; +import com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomClass { + + public static void main(String[] args) throws Exception { + syncDeleteCustomClass(); + } + + public static void syncDeleteCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + DeleteCustomClassRequest request = + DeleteCustomClassRequest.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .build(); + adaptationClient.deleteCustomClass(request); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_deletecustomclass_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java new file mode 100644 index 000000000..f7fd054e1 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_deletecustomclass_customclassname_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClassName; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomClassCustomclassname { + + public static void main(String[] args) throws Exception { + syncDeleteCustomClassCustomclassname(); + } + + public static void syncDeleteCustomClassCustomclassname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + adaptationClient.deleteCustomClass(name); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_deletecustomclass_customclassname_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java new file mode 100644 index 000000000..91157db0f --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_deletecustomclass_string_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClassName; +import com.google.protobuf.Empty; + +public class SyncDeleteCustomClassString { + + public static void main(String[] args) throws Exception { + syncDeleteCustomClassString(); + } + + public static void syncDeleteCustomClassString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString(); + adaptationClient.deleteCustomClass(name); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_deletecustomclass_string_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java new file mode 100644 index 000000000..8696865e2 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_deletephraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.PhraseSetName; +import com.google.protobuf.Empty; + +public class AsyncDeletePhraseSet { + + public static void main(String[] args) throws Exception { + asyncDeletePhraseSet(); + } + + public static void asyncDeletePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + DeletePhraseSetRequest request = + DeletePhraseSetRequest.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .build(); + ApiFuture future = adaptationClient.deletePhraseSetCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_deletephraseset_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java new file mode 100644 index 000000000..f88a6fd31 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_deletephraseset_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.PhraseSetName; +import com.google.protobuf.Empty; + +public class SyncDeletePhraseSet { + + public static void main(String[] args) throws Exception { + syncDeletePhraseSet(); + } + + public static void syncDeletePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + DeletePhraseSetRequest request = + DeletePhraseSetRequest.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .build(); + adaptationClient.deletePhraseSet(request); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_deletephraseset_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java new file mode 100644 index 000000000..efd68e0ae --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_deletephraseset_phrasesetname_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.PhraseSetName; +import com.google.protobuf.Empty; + +public class SyncDeletePhraseSetPhrasesetname { + + public static void main(String[] args) throws Exception { + syncDeletePhraseSetPhrasesetname(); + } + + public static void syncDeletePhraseSetPhrasesetname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + adaptationClient.deletePhraseSet(name); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_deletephraseset_phrasesetname_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java new file mode 100644 index 000000000..7266f0313 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_deletephraseset_string_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.PhraseSetName; +import com.google.protobuf.Empty; + +public class SyncDeletePhraseSetString { + + public static void main(String[] args) throws Exception { + syncDeletePhraseSetString(); + } + + public static void syncDeletePhraseSetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString(); + adaptationClient.deletePhraseSet(name); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_deletephraseset_string_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java new file mode 100644 index 000000000..aaf48b8da --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_getcustomclass_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.CustomClassName; +import com.google.cloud.speech.v1p1beta1.GetCustomClassRequest; + +public class AsyncGetCustomClass { + + public static void main(String[] args) throws Exception { + asyncGetCustomClass(); + } + + public static void asyncGetCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + GetCustomClassRequest request = + GetCustomClassRequest.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .build(); + ApiFuture future = adaptationClient.getCustomClassCallable().futureCall(request); + // Do something. + CustomClass response = future.get(); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_getcustomclass_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java new file mode 100644 index 000000000..4709ffb1b --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_getcustomclass_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.CustomClassName; +import com.google.cloud.speech.v1p1beta1.GetCustomClassRequest; + +public class SyncGetCustomClass { + + public static void main(String[] args) throws Exception { + syncGetCustomClass(); + } + + public static void syncGetCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + GetCustomClassRequest request = + GetCustomClassRequest.newBuilder() + .setName(CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString()) + .build(); + CustomClass response = adaptationClient.getCustomClass(request); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_getcustomclass_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java new file mode 100644 index 000000000..950d377d8 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_getcustomclass_customclassname_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.CustomClassName; + +public class SyncGetCustomClassCustomclassname { + + public static void main(String[] args) throws Exception { + syncGetCustomClassCustomclassname(); + } + + public static void syncGetCustomClassCustomclassname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CustomClassName name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]"); + CustomClass response = adaptationClient.getCustomClass(name); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_getcustomclass_customclassname_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java new file mode 100644 index 000000000..528e779ba --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_getcustomclass_string_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.CustomClassName; + +public class SyncGetCustomClassString { + + public static void main(String[] args) throws Exception { + syncGetCustomClassString(); + } + + public static void syncGetCustomClassString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String name = CustomClassName.of("[PROJECT]", "[LOCATION]", "[CUSTOM_CLASS]").toString(); + CustomClass response = adaptationClient.getCustomClass(name); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_getcustomclass_string_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java new file mode 100644 index 000000000..7a26330fa --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_getphraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.PhraseSet; +import com.google.cloud.speech.v1p1beta1.PhraseSetName; + +public class AsyncGetPhraseSet { + + public static void main(String[] args) throws Exception { + asyncGetPhraseSet(); + } + + public static void asyncGetPhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + GetPhraseSetRequest request = + GetPhraseSetRequest.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .build(); + ApiFuture future = adaptationClient.getPhraseSetCallable().futureCall(request); + // Do something. + PhraseSet response = future.get(); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_getphraseset_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java new file mode 100644 index 000000000..20118bc73 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_getphraseset_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.PhraseSet; +import com.google.cloud.speech.v1p1beta1.PhraseSetName; + +public class SyncGetPhraseSet { + + public static void main(String[] args) throws Exception { + syncGetPhraseSet(); + } + + public static void syncGetPhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + GetPhraseSetRequest request = + GetPhraseSetRequest.newBuilder() + .setName(PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString()) + .build(); + PhraseSet response = adaptationClient.getPhraseSet(request); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_getphraseset_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java new file mode 100644 index 000000000..a1942ecd8 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_getphraseset_phrasesetname_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.PhraseSet; +import com.google.cloud.speech.v1p1beta1.PhraseSetName; + +public class SyncGetPhraseSetPhrasesetname { + + public static void main(String[] args) throws Exception { + syncGetPhraseSetPhrasesetname(); + } + + public static void syncGetPhraseSetPhrasesetname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + PhraseSetName name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]"); + PhraseSet response = adaptationClient.getPhraseSet(name); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_getphraseset_phrasesetname_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java new file mode 100644 index 000000000..c70b6dd96 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_getphraseset_string_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.PhraseSet; +import com.google.cloud.speech.v1p1beta1.PhraseSetName; + +public class SyncGetPhraseSetString { + + public static void main(String[] args) throws Exception { + syncGetPhraseSetString(); + } + + public static void syncGetPhraseSetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String name = PhraseSetName.of("[PROJECT]", "[LOCATION]", "[PHRASE_SET]").toString(); + PhraseSet response = adaptationClient.getPhraseSet(name); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_getphraseset_string_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java new file mode 100644 index 000000000..307143202 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listcustomclasses_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest; +import com.google.cloud.speech.v1p1beta1.LocationName; + +public class AsyncListCustomClasses { + + public static void main(String[] args) throws Exception { + asyncListCustomClasses(); + } + + public static void asyncListCustomClasses() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListCustomClassesRequest request = + ListCustomClassesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + adaptationClient.listCustomClassesPagedCallable().futureCall(request); + // Do something. + for (CustomClass element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listcustomclasses_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java new file mode 100644 index 000000000..c1d6e465d --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listcustomclasses_paged_async] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest; +import com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListCustomClassesPaged { + + public static void main(String[] args) throws Exception { + asyncListCustomClassesPaged(); + } + + public static void asyncListCustomClassesPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListCustomClassesRequest request = + ListCustomClassesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListCustomClassesResponse response = + adaptationClient.listCustomClassesCallable().call(request); + for (CustomClass element : response.getCustomClassesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listcustomclasses_paged_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java new file mode 100644 index 000000000..d70357791 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listcustomclasses_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest; +import com.google.cloud.speech.v1p1beta1.LocationName; + +public class SyncListCustomClasses { + + public static void main(String[] args) throws Exception { + syncListCustomClasses(); + } + + public static void syncListCustomClasses() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListCustomClassesRequest request = + ListCustomClassesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (CustomClass element : adaptationClient.listCustomClasses(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listcustomclasses_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java new file mode 100644 index 000000000..f0d125c16 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listcustomclasses_locationname_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.LocationName; + +public class SyncListCustomClassesLocationname { + + public static void main(String[] args) throws Exception { + syncListCustomClassesLocationname(); + } + + public static void syncListCustomClassesLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listcustomclasses_locationname_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java new file mode 100644 index 000000000..82f22addf --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listcustomclasses_string_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.LocationName; + +public class SyncListCustomClassesString { + + public static void main(String[] args) throws Exception { + syncListCustomClassesString(); + } + + public static void syncListCustomClassesString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (CustomClass element : adaptationClient.listCustomClasses(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listcustomclasses_string_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java new file mode 100644 index 000000000..625206cd1 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listphraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.cloud.speech.v1p1beta1.PhraseSet; + +public class AsyncListPhraseSet { + + public static void main(String[] args) throws Exception { + asyncListPhraseSet(); + } + + public static void asyncListPhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListPhraseSetRequest request = + ListPhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + adaptationClient.listPhraseSetPagedCallable().futureCall(request); + // Do something. + for (PhraseSet element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listphraseset_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java new file mode 100644 index 000000000..46ee4673a --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listphraseset_paged_async] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.cloud.speech.v1p1beta1.PhraseSet; +import com.google.common.base.Strings; + +public class AsyncListPhraseSetPaged { + + public static void main(String[] args) throws Exception { + asyncListPhraseSetPaged(); + } + + public static void asyncListPhraseSetPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListPhraseSetRequest request = + ListPhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListPhraseSetResponse response = adaptationClient.listPhraseSetCallable().call(request); + for (PhraseSet element : response.getPhraseSetsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listphraseset_paged_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java new file mode 100644 index 000000000..a2e415197 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listphraseset_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.cloud.speech.v1p1beta1.PhraseSet; + +public class SyncListPhraseSet { + + public static void main(String[] args) throws Exception { + syncListPhraseSet(); + } + + public static void syncListPhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + ListPhraseSetRequest request = + ListPhraseSetRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (PhraseSet element : adaptationClient.listPhraseSet(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listphraseset_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java new file mode 100644 index 000000000..71a53d244 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listphraseset_locationname_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.cloud.speech.v1p1beta1.PhraseSet; + +public class SyncListPhraseSetLocationname { + + public static void main(String[] args) throws Exception { + syncListPhraseSetLocationname(); + } + + public static void syncListPhraseSetLocationname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listphraseset_locationname_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java new file mode 100644 index 000000000..a356e65c1 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_listphraseset_string_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.LocationName; +import com.google.cloud.speech.v1p1beta1.PhraseSet; + +public class SyncListPhraseSetString { + + public static void main(String[] args) throws Exception { + syncListPhraseSetString(); + } + + public static void syncListPhraseSetString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (PhraseSet element : adaptationClient.listPhraseSet(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_listphraseset_string_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java new file mode 100644 index 000000000..2df83bb8e --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_updatecustomclass_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCustomClass { + + public static void main(String[] args) throws Exception { + asyncUpdateCustomClass(); + } + + public static void asyncUpdateCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + UpdateCustomClassRequest request = + UpdateCustomClassRequest.newBuilder() + .setCustomClass(CustomClass.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + adaptationClient.updateCustomClassCallable().futureCall(request); + // Do something. + CustomClass response = future.get(); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_updatecustomclass_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java new file mode 100644 index 000000000..84cc5ba9e --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_updatecustomclass_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomClass { + + public static void main(String[] args) throws Exception { + syncUpdateCustomClass(); + } + + public static void syncUpdateCustomClass() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + UpdateCustomClassRequest request = + UpdateCustomClassRequest.newBuilder() + .setCustomClass(CustomClass.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CustomClass response = adaptationClient.updateCustomClass(request); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_updatecustomclass_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java new file mode 100644 index 000000000..ddaa53113 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_updatecustomclass_customclassfieldmask_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.CustomClass; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomClassCustomclassFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCustomClassCustomclassFieldmask(); + } + + public static void syncUpdateCustomClassCustomclassFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + CustomClass customClass = CustomClass.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CustomClass response = adaptationClient.updateCustomClass(customClass, updateMask); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_updatecustomclass_customclassfieldmask_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java new file mode 100644 index 000000000..1e7794dce --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_updatephraseset_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.PhraseSet; +import com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdatePhraseSet { + + public static void main(String[] args) throws Exception { + asyncUpdatePhraseSet(); + } + + public static void asyncUpdatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + UpdatePhraseSetRequest request = + UpdatePhraseSetRequest.newBuilder() + .setPhraseSet(PhraseSet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = adaptationClient.updatePhraseSetCallable().futureCall(request); + // Do something. + PhraseSet response = future.get(); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_updatephraseset_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java new file mode 100644 index 000000000..9bd389616 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_updatephraseset_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.PhraseSet; +import com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePhraseSet { + + public static void main(String[] args) throws Exception { + syncUpdatePhraseSet(); + } + + public static void syncUpdatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + UpdatePhraseSetRequest request = + UpdatePhraseSetRequest.newBuilder() + .setPhraseSet(PhraseSet.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + PhraseSet response = adaptationClient.updatePhraseSet(request); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_updatephraseset_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java new file mode 100644 index 000000000..0d90c1c72 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationclient_updatephraseset_phrasesetfieldmask_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationClient; +import com.google.cloud.speech.v1p1beta1.PhraseSet; +import com.google.protobuf.FieldMask; + +public class SyncUpdatePhraseSetPhrasesetFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdatePhraseSetPhrasesetFieldmask(); + } + + public static void syncUpdatePhraseSetPhrasesetFieldmask() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (AdaptationClient adaptationClient = AdaptationClient.create()) { + PhraseSet phraseSet = PhraseSet.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + PhraseSet response = adaptationClient.updatePhraseSet(phraseSet, updateMask); + } + } +} +// [END speech_v1p1beta1_generated_adaptationclient_updatephraseset_phrasesetfieldmask_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java new file mode 100644 index 000000000..980b5fb83 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_adaptationsettings_createphraseset_sync] +import com.google.cloud.speech.v1p1beta1.AdaptationSettings; +import java.time.Duration; + +public class SyncCreatePhraseSet { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSet(); + } + + public static void syncCreatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationSettings.Builder adaptationSettingsBuilder = AdaptationSettings.newBuilder(); + adaptationSettingsBuilder + .createPhraseSetSettings() + .setRetrySettings( + adaptationSettingsBuilder + .createPhraseSetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AdaptationSettings adaptationSettings = adaptationSettingsBuilder.build(); + } +} +// [END speech_v1p1beta1_generated_adaptationsettings_createphraseset_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000..ece01cd0a --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.speech.v1p1beta1.SpeechClient; +import com.google.cloud.speech.v1p1beta1.SpeechSettings; +import com.google.cloud.speech.v1p1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechSettings speechSettings = + SpeechSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + SpeechClient speechClient = SpeechClient.create(speechSettings); + } +} +// [END speech_v1p1beta1_generated_speechclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 000000000..593286a34 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_create_setcredentialsprovider1_sync] +import com.google.cloud.speech.v1p1beta1.SpeechClient; +import com.google.cloud.speech.v1p1beta1.SpeechSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechSettings speechSettings = + SpeechSettings.newBuilder() + .setTransportChannelProvider( + SpeechSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + SpeechClient speechClient = SpeechClient.create(speechSettings); + } +} +// [END speech_v1p1beta1_generated_speechclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000..645f05da5 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,37 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_create_setendpoint_sync] +import com.google.cloud.speech.v1p1beta1.SpeechClient; +import com.google.cloud.speech.v1p1beta1.SpeechSettings; +import com.google.cloud.speech.v1p1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechSettings speechSettings = SpeechSettings.newBuilder().setEndpoint(myEndpoint).build(); + SpeechClient speechClient = SpeechClient.create(speechSettings); + } +} +// [END speech_v1p1beta1_generated_speechclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java new file mode 100644 index 000000000..7449660dd --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_longrunningrecognize_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest; +import com.google.cloud.speech.v1p1beta1.RecognitionAudio; +import com.google.cloud.speech.v1p1beta1.RecognitionConfig; +import com.google.cloud.speech.v1p1beta1.SpeechClient; +import com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig; +import com.google.longrunning.Operation; + +public class AsyncLongRunningRecognize { + + public static void main(String[] args) throws Exception { + asyncLongRunningRecognize(); + } + + public static void asyncLongRunningRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + LongRunningRecognizeRequest request = + LongRunningRecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) + .build(); + ApiFuture future = speechClient.longRunningRecognizeCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END speech_v1p1beta1_generated_speechclient_longrunningrecognize_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java new file mode 100644 index 000000000..caa207ae4 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_longrunningrecognize_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata; +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest; +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse; +import com.google.cloud.speech.v1p1beta1.RecognitionAudio; +import com.google.cloud.speech.v1p1beta1.RecognitionConfig; +import com.google.cloud.speech.v1p1beta1.SpeechClient; +import com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig; + +public class AsyncLongRunningRecognizeLRO { + + public static void main(String[] args) throws Exception { + asyncLongRunningRecognizeLRO(); + } + + public static void asyncLongRunningRecognizeLRO() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + LongRunningRecognizeRequest request = + LongRunningRecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) + .build(); + OperationFuture future = + speechClient.longRunningRecognizeOperationCallable().futureCall(request); + // Do something. + LongRunningRecognizeResponse response = future.get(); + } + } +} +// [END speech_v1p1beta1_generated_speechclient_longrunningrecognize_lro_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java new file mode 100644 index 000000000..5ae28afd0 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_longrunningrecognize_sync] +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest; +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse; +import com.google.cloud.speech.v1p1beta1.RecognitionAudio; +import com.google.cloud.speech.v1p1beta1.RecognitionConfig; +import com.google.cloud.speech.v1p1beta1.SpeechClient; +import com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig; + +public class SyncLongRunningRecognize { + + public static void main(String[] args) throws Exception { + syncLongRunningRecognize(); + } + + public static void syncLongRunningRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + LongRunningRecognizeRequest request = + LongRunningRecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .setOutputConfig(TranscriptOutputConfig.newBuilder().build()) + .build(); + LongRunningRecognizeResponse response = speechClient.longRunningRecognizeAsync(request).get(); + } + } +} +// [END speech_v1p1beta1_generated_speechclient_longrunningrecognize_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java new file mode 100644 index 000000000..7e0ad5198 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] +import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse; +import com.google.cloud.speech.v1p1beta1.RecognitionAudio; +import com.google.cloud.speech.v1p1beta1.RecognitionConfig; +import com.google.cloud.speech.v1p1beta1.SpeechClient; + +public class SyncLongRunningRecognizeRecognitionconfigRecognitionaudio { + + public static void main(String[] args) throws Exception { + syncLongRunningRecognizeRecognitionconfigRecognitionaudio(); + } + + public static void syncLongRunningRecognizeRecognitionconfigRecognitionaudio() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + LongRunningRecognizeResponse response = + speechClient.longRunningRecognizeAsync(config, audio).get(); + } + } +} +// [END speech_v1p1beta1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java new file mode 100644 index 000000000..da119711c --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_recognize_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.speech.v1p1beta1.RecognitionAudio; +import com.google.cloud.speech.v1p1beta1.RecognitionConfig; +import com.google.cloud.speech.v1p1beta1.RecognizeRequest; +import com.google.cloud.speech.v1p1beta1.RecognizeResponse; +import com.google.cloud.speech.v1p1beta1.SpeechClient; + +public class AsyncRecognize { + + public static void main(String[] args) throws Exception { + asyncRecognize(); + } + + public static void asyncRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + RecognizeRequest request = + RecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .build(); + ApiFuture future = speechClient.recognizeCallable().futureCall(request); + // Do something. + RecognizeResponse response = future.get(); + } + } +} +// [END speech_v1p1beta1_generated_speechclient_recognize_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java new file mode 100644 index 000000000..110a6e443 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_recognize_sync] +import com.google.cloud.speech.v1p1beta1.RecognitionAudio; +import com.google.cloud.speech.v1p1beta1.RecognitionConfig; +import com.google.cloud.speech.v1p1beta1.RecognizeRequest; +import com.google.cloud.speech.v1p1beta1.RecognizeResponse; +import com.google.cloud.speech.v1p1beta1.SpeechClient; + +public class SyncRecognize { + + public static void main(String[] args) throws Exception { + syncRecognize(); + } + + public static void syncRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + RecognizeRequest request = + RecognizeRequest.newBuilder() + .setConfig(RecognitionConfig.newBuilder().build()) + .setAudio(RecognitionAudio.newBuilder().build()) + .build(); + RecognizeResponse response = speechClient.recognize(request); + } + } +} +// [END speech_v1p1beta1_generated_speechclient_recognize_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java new file mode 100644 index 000000000..3302e5fa1 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_recognize_recognitionconfigrecognitionaudio_sync] +import com.google.cloud.speech.v1p1beta1.RecognitionAudio; +import com.google.cloud.speech.v1p1beta1.RecognitionConfig; +import com.google.cloud.speech.v1p1beta1.RecognizeResponse; +import com.google.cloud.speech.v1p1beta1.SpeechClient; + +public class SyncRecognizeRecognitionconfigRecognitionaudio { + + public static void main(String[] args) throws Exception { + syncRecognizeRecognitionconfigRecognitionaudio(); + } + + public static void syncRecognizeRecognitionconfigRecognitionaudio() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + RecognitionConfig config = RecognitionConfig.newBuilder().build(); + RecognitionAudio audio = RecognitionAudio.newBuilder().build(); + RecognizeResponse response = speechClient.recognize(config, audio); + } + } +} +// [END speech_v1p1beta1_generated_speechclient_recognize_recognitionconfigrecognitionaudio_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java new file mode 100644 index 000000000..8d3d9cf57 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechclient_streamingrecognize_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.speech.v1p1beta1.SpeechClient; +import com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest; +import com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse; + +public class AsyncStreamingRecognize { + + public static void main(String[] args) throws Exception { + asyncStreamingRecognize(); + } + + public static void asyncStreamingRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (SpeechClient speechClient = SpeechClient.create()) { + BidiStream bidiStream = + speechClient.streamingRecognizeCallable().call(); + StreamingRecognizeRequest request = StreamingRecognizeRequest.newBuilder().build(); + bidiStream.send(request); + for (StreamingRecognizeResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END speech_v1p1beta1_generated_speechclient_streamingrecognize_async] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java new file mode 100644 index 000000000..d12a32039 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.samples; + +// [START speech_v1p1beta1_generated_speechsettings_recognize_sync] +import com.google.cloud.speech.v1p1beta1.SpeechSettings; +import java.time.Duration; + +public class SyncRecognize { + + public static void main(String[] args) throws Exception { + syncRecognize(); + } + + public static void syncRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechSettings.Builder speechSettingsBuilder = SpeechSettings.newBuilder(); + speechSettingsBuilder + .recognizeSettings() + .setRetrySettings( + speechSettingsBuilder + .recognizeSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SpeechSettings speechSettings = speechSettingsBuilder.build(); + } +} +// [END speech_v1p1beta1_generated_speechsettings_recognize_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java new file mode 100644 index 000000000..6f76a27b5 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.stub.samples; + +// [START speech_v1p1beta1_generated_adaptationstubsettings_createphraseset_sync] +import com.google.cloud.speech.v1p1beta1.stub.AdaptationStubSettings; +import java.time.Duration; + +public class SyncCreatePhraseSet { + + public static void main(String[] args) throws Exception { + syncCreatePhraseSet(); + } + + public static void syncCreatePhraseSet() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + AdaptationStubSettings.Builder adaptationSettingsBuilder = AdaptationStubSettings.newBuilder(); + adaptationSettingsBuilder + .createPhraseSetSettings() + .setRetrySettings( + adaptationSettingsBuilder + .createPhraseSetSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + AdaptationStubSettings adaptationSettings = adaptationSettingsBuilder.build(); + } +} +// [END speech_v1p1beta1_generated_adaptationstubsettings_createphraseset_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java new file mode 100644 index 000000000..153aea750 --- /dev/null +++ b/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.speech.v1p1beta1.stub.samples; + +// [START speech_v1p1beta1_generated_speechstubsettings_recognize_sync] +import com.google.cloud.speech.v1p1beta1.stub.SpeechStubSettings; +import java.time.Duration; + +public class SyncRecognize { + + public static void main(String[] args) throws Exception { + syncRecognize(); + } + + public static void syncRecognize() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + SpeechStubSettings.Builder speechSettingsBuilder = SpeechStubSettings.newBuilder(); + speechSettingsBuilder + .recognizeSettings() + .setRetrySettings( + speechSettingsBuilder + .recognizeSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + SpeechStubSettings speechSettings = speechSettingsBuilder.build(); + } +} +// [END speech_v1p1beta1_generated_speechstubsettings_recognize_sync] diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index acfe28df3..000000000 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1; - -public interface DeletePhraseSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.DeletePhraseSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 73e1fc4cc..000000000 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1; - -public interface GetCustomClassRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java deleted file mode 100644 index df0bfe2ab..000000000 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech.proto - -package com.google.cloud.speech.v1; - -public interface RecognizeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - com.google.cloud.speech.v1.RecognitionConfig getConfig(); - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The audio. - */ - com.google.cloud.speech.v1.RecognitionAudio getAudio(); - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java deleted file mode 100644 index 081817d7e..000000000 --- a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java +++ /dev/null @@ -1,311 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1; - -public final class SpeechAdaptationProto { - private SpeechAdaptationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/speech/v1/cloud_speech_ad" - + "aptation.proto\022\026google.cloud.speech.v1\032\034" - + "google/api/annotations.proto\032\027google/api" - + "/client.proto\032\037google/api/field_behavior" - + ".proto\032\031google/api/resource.proto\032%googl" - + "e/cloud/speech/v1/resource.proto\032\033google" - + "/protobuf/empty.proto\032 google/protobuf/f" - + "ield_mask.proto\"\251\001\n\026CreatePhraseSetReque" - + "st\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037speech.googl" - + "eapis.com/PhraseSet\022\032\n\rphrase_set_id\030\002 \001" - + "(\tB\003\340A\002\022:\n\nphrase_set\030\003 \001(\0132!.google.clo" - + "ud.speech.v1.PhraseSetB\003\340A\002\"\205\001\n\026UpdatePh" - + "raseSetRequest\022:\n\nphrase_set\030\001 \001(\0132!.goo" - + "gle.cloud.speech.v1.PhraseSetB\003\340A\002\022/\n\013up" - + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" - + "ask\"L\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\t" - + "B\'\340A\002\372A!\n\037speech.googleapis.com/PhraseSe" - + "t\"v\n\024ListPhraseSetRequest\0227\n\006parent\030\001 \001(" - + "\tB\'\340A\002\372A!\022\037speech.googleapis.com/PhraseS" - + "et\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"h\n\025ListPhraseSetResponse\0226\n\013phrase_set" - + "s\030\001 \003(\0132!.google.cloud.speech.v1.PhraseS" - + "et\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeletePhr" - + "aseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spe" - + "ech.googleapis.com/PhraseSet\"\263\001\n\030CreateC" - + "ustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" - + "#\022!speech.googleapis.com/CustomClass\022\034\n\017" - + "custom_class_id\030\002 \001(\tB\003\340A\002\022>\n\014custom_cla" - + "ss\030\003 \001(\0132#.google.cloud.speech.v1.Custom" - + "ClassB\003\340A\002\"\213\001\n\030UpdateCustomClassRequest\022" - + ">\n\014custom_class\030\001 \001(\0132#.google.cloud.spe" - + "ech.v1.CustomClassB\003\340A\002\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"P\n\025GetC" - + "ustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!speech.googleapis.com/CustomClass\"|\n\030Li" - + "stCustomClassesRequest\0229\n\006parent\030\001 \001(\tB)" - + "\340A\002\372A#\022!speech.googleapis.com/CustomClas" - + "s\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" - + "\"q\n\031ListCustomClassesResponse\022;\n\016custom_" - + "classes\030\001 \003(\0132#.google.cloud.speech.v1.C" - + "ustomClass\022\027\n\017next_page_token\030\002 \001(\t\"S\n\030D" - + "eleteCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340" - + "A\002\372A#\n!speech.googleapis.com/CustomClass" - + "2\216\017\n\nAdaptation\022\301\001\n\017CreatePhraseSet\022..go" - + "ogle.cloud.speech.v1.CreatePhraseSetRequ" - + "est\032!.google.cloud.speech.v1.PhraseSet\"[" - + "\202\323\344\223\0023\"./v1/{parent=projects/*/locations" - + "/*}/phraseSets:\001*\332A\037parent,phrase_set,ph" - + "rase_set_id\022\235\001\n\014GetPhraseSet\022+.google.cl" - + "oud.speech.v1.GetPhraseSetRequest\032!.goog" - + "le.cloud.speech.v1.PhraseSet\"=\202\323\344\223\0020\022./v" - + "1/{name=projects/*/locations/*/phraseSet" - + "s/*}\332A\004name\022\255\001\n\rListPhraseSet\022,.google.c" - + "loud.speech.v1.ListPhraseSetRequest\032-.go" - + "ogle.cloud.speech.v1.ListPhraseSetRespon" - + "se\"?\202\323\344\223\0020\022./v1/{parent=projects/*/locat" - + "ions/*}/phraseSets\332A\006parent\022\314\001\n\017UpdatePh" - + "raseSet\022..google.cloud.speech.v1.UpdateP" - + "hraseSetRequest\032!.google.cloud.speech.v1" - + ".PhraseSet\"f\202\323\344\223\002G29/v1/{phrase_set.name" - + "=projects/*/locations/*/phraseSets/*}:\np" - + "hrase_set\332A\026phrase_set,update_mask\022\230\001\n\017D" - + "eletePhraseSet\022..google.cloud.speech.v1." - + "DeletePhraseSetRequest\032\026.google.protobuf" - + ".Empty\"=\202\323\344\223\0020*./v1/{name=projects/*/loc" - + "ations/*/phraseSets/*}\332A\004name\022\316\001\n\021Create" - + "CustomClass\0220.google.cloud.speech.v1.Cre" - + "ateCustomClassRequest\032#.google.cloud.spe" - + "ech.v1.CustomClass\"b\202\323\344\223\0026\"1/v1/{parent=" - + "projects/*/locations/*}/customClasses:\001*" - + "\332A#parent,custom_class,custom_class_id\022\246" - + "\001\n\016GetCustomClass\022-.google.cloud.speech." - + "v1.GetCustomClassRequest\032#.google.cloud." - + "speech.v1.CustomClass\"@\202\323\344\223\0023\0221/v1/{name" - + "=projects/*/locations/*/customClasses/*}" - + "\332A\004name\022\274\001\n\021ListCustomClasses\0220.google.c" - + "loud.speech.v1.ListCustomClassesRequest\032" - + "1.google.cloud.speech.v1.ListCustomClass" - + "esResponse\"B\202\323\344\223\0023\0221/v1/{parent=projects" - + "/*/locations/*}/customClasses\332A\006parent\022\333" - + "\001\n\021UpdateCustomClass\0220.google.cloud.spee" - + "ch.v1.UpdateCustomClassRequest\032#.google." - + "cloud.speech.v1.CustomClass\"o\202\323\344\223\002N2>/v1" - + "/{custom_class.name=projects/*/locations" - + "/*/customClasses/*}:\014custom_class\332A\030cust" - + "om_class,update_mask\022\237\001\n\021DeleteCustomCla" - + "ss\0220.google.cloud.speech.v1.DeleteCustom" - + "ClassRequest\032\026.google.protobuf.Empty\"@\202\323" - + "\344\223\0023*1/v1/{name=projects/*/locations/*/c" - + "ustomClasses/*}\332A\004name\032I\312A\025speech.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformB|\n\032com.google.cloud.sp" - + "eech.v1B\025SpeechAdaptationProtoP\001Z\n\006config\030\001 \001(\0132).google." - + "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" - + "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" - + "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" - + "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" - + "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" - + "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" - + "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" - + "\0132..google.cloud.speech.v1.TranscriptOut" - + "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" - + "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" - + "treamingRecognizeRequest\022N\n\020streaming_co" - + "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" - + "amingRecognitionConfigH\000\022\027\n\raudio_conten" - + "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" - + "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." - + "google.cloud.speech.v1.RecognitionConfig" - + "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" - + "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" - + "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" - + "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" - + "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" - + "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" - + "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" - + "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" - + "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" - + "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" - + "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" - + "speech_contexts\030\006 \003(\0132%.google.cloud.spe" - + "ech.v1.SpeechContext\022 \n\030enable_word_time" - + "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" - + "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" - + " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" - + "\032.google.protobuf.BoolValue\0228\n\024enable_sp" - + "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" - + "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" - + "le.cloud.speech.v1.SpeakerDiarizationCon" - + "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" - + "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" - + "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" - + "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" - + "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" - + "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" - + "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" - + "ionConfig\022\"\n\032enable_speaker_diarization\030" - + "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" - + "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" - + "B\005\030\001\340A\003\"\244\010\n\023RecognitionMetadata\022U\n\020inter" - + "action_type\030\001 \001(\0162;.google.cloud.speech." - + "v1.RecognitionMetadata.InteractionType\022$" - + "\n\034industry_naics_code_of_audio\030\003 \001(\r\022[\n\023" - + "microphone_distance\030\004 \001(\0162>.google.cloud" - + ".speech.v1.RecognitionMetadata.Microphon" - + "eDistance\022Z\n\023original_media_type\030\005 \001(\0162=" - + ".google.cloud.speech.v1.RecognitionMetad" - + "ata.OriginalMediaType\022^\n\025recording_devic" - + "e_type\030\006 \001(\0162?.google.cloud.speech.v1.Re" - + "cognitionMetadata.RecordingDeviceType\022\035\n" - + "\025recording_device_name\030\007 \001(\t\022\032\n\022original" - + "_mime_type\030\010 \001(\t\022\023\n\013audio_topic\030\n \001(\t\"\305\001" - + "\n\017InteractionType\022 \n\034INTERACTION_TYPE_UN" - + "SPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRESENTAT" - + "ION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020\004\022\033\n\027" - + "PROFESSIONALLY_PRODUCED\020\005\022\020\n\014VOICE_SEARC" - + "H\020\006\022\021\n\rVOICE_COMMAND\020\007\022\r\n\tDICTATION\020\010\"d\n" - + "\022MicrophoneDistance\022#\n\037MICROPHONE_DISTAN" - + "CE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010MIDFI" - + "ELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMediaType" - + "\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED\020\000\022\t\n" - + "\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDeviceT" - + "ype\022%\n!RECORDING_DEVICE_TYPE_UNSPECIFIED" - + "\020\000\022\016\n\nSMARTPHONE\020\001\022\006\n\002PC\020\002\022\016\n\nPHONE_LINE" - + "\020\003\022\013\n\007VEHICLE\020\004\022\030\n\024OTHER_OUTDOOR_DEVICE\020" - + "\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006:\002\030\001\"/\n\rSpeech" - + "Context\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"" - + "D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r" - + "\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021Recogn" - + "izeResponse\022@\n\007results\030\002 \003(\0132/.google.cl" - + "oud.speech.v1.SpeechRecognitionResult\0224\n" - + "\021total_billed_time\030\003 \001(\0132\031.google.protob" - + "uf.Duration\"\207\002\n\034LongRunningRecognizeResp" - + "onse\022@\n\007results\030\002 \003(\0132/.google.cloud.spe" - + "ech.v1.SpeechRecognitionResult\0224\n\021total_" - + "billed_time\030\003 \001(\0132\031.google.protobuf.Dura" - + "tion\022E\n\routput_config\030\006 \001(\0132..google.clo" - + "ud.speech.v1.TranscriptOutputConfig\022(\n\014o" - + "utput_error\030\007 \001(\0132\022.google.rpc.Status\"\260\001" - + "\n\034LongRunningRecognizeMetadata\022\030\n\020progre" - + "ss_percent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\0224\n\020last_update_" - + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020" - + "\n\003uri\030\004 \001(\tB\003\340A\003\"\347\002\n\032StreamingRecognizeR" - + "esponse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Stat" - + "us\022C\n\007results\030\002 \003(\01322.google.cloud.speec" - + "h.v1.StreamingRecognitionResult\022]\n\021speec" - + "h_event_type\030\004 \001(\0162B.google.cloud.speech" - + ".v1.StreamingRecognizeResponse.SpeechEve" - + "ntType\0224\n\021total_billed_time\030\005 \001(\0132\031.goog" - + "le.protobuf.Duration\"L\n\017SpeechEventType\022" - + "\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_" - + "SINGLE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognit" - + "ionResult\022J\n\014alternatives\030\001 \003(\01324.google" - + ".cloud.speech.v1.SpeechRecognitionAltern" - + "ative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstability\030\003 \001" - + "(\002\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" - + "tobuf.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rl" - + "anguage_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecogn" - + "itionResult\022J\n\014alternatives\030\001 \003(\01324.goog" - + "le.cloud.speech.v1.SpeechRecognitionAlte" - + "rnative\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_e" - + "nd_time\030\004 \001(\0132\031.google.protobuf.Duration" - + "\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRe" - + "cognitionAlternative\022\022\n\ntranscript\030\001 \001(\t" - + "\022\022\n\nconfidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .go" - + "ogle.cloud.speech.v1.WordInfo\"\242\001\n\010WordIn" - + "fo\022-\n\nstart_time\030\001 \001(\0132\031.google.protobuf" - + ".Duration\022+\n\010end_time\030\002 \001(\0132\031.google.pro" - + "tobuf.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfiden" - + "ce\030\004 \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006S" - + "peech\022\220\001\n\tRecognize\022(.google.cloud.speec" - + "h.v1.RecognizeRequest\032).google.cloud.spe" - + "ech.v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/sp" - + "eech:recognize:\001*\332A\014config,audio\022\344\001\n\024Lon" - + "gRunningRecognize\0223.google.cloud.speech." - + "v1.LongRunningRecognizeRequest\032\035.google." - + "longrunning.Operation\"x\202\323\344\223\002$\"\037/v1/speec" - + "h:longrunningrecognize:\001*\332A\014config,audio" - + "\312A<\n\034LongRunningRecognizeResponse\022\034LongR" - + "unningRecognizeMetadata\022\201\001\n\022StreamingRec" - + "ognize\0221.google.cloud.speech.v1.Streamin" - + "gRecognizeRequest\0322.google.cloud.speech." - + "v1.StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025" - + "speech.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformBr\n\032com.go" - + "ogle.cloud.speech.v1B\013SpeechProtoP\001Z - * Required. The name of the phrase set to delete. Format: - * `projects/{project}/locations/{location}/phraseSets/{phrase_set}` - *
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 05350941a..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface GetCustomClassRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 2f3e881fd..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface RecognizeRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The config. - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); - /** - * - * - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The audio. - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); - /** - * - * - *
-   * Required. The audio data to be recognized.
-   * 
- * - * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java deleted file mode 100644 index 2d3104cbb..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java +++ /dev/null @@ -1,318 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechAdaptationProto { - private SpeechAdaptationProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/speech/v1p1beta1/cloud_sp" - + "eech_adaptation.proto\022\035google.cloud.spee" - + "ch.v1p1beta1\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032,google/cloud/speech/v1p1beta1/r" - + "esource.proto\032\033google/protobuf/empty.pro" - + "to\032 google/protobuf/field_mask.proto\"\260\001\n" - + "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB" - + "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet" - + "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s" - + "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1" - + ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque" - + "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp" - + "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_" - + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L" - + "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" - + "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024" - + "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A" - + "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025" - + "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003" - + "(\0132(.google.cloud.speech.v1p1beta1.Phras" - + "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP" - + "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s" - + "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat" - + "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" - + "\372A#\022!speech.googleapis.com/CustomClass\022\034" - + "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c" - + "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet" - + "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas" - + "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google." - + "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022" - + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam" - + "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C" - + "ustomClass\"|\n\030ListCustomClassesRequest\0229" - + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi" - + "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes" - + "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c" - + "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR" - + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" - + "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326" - + "\001\n\017CreatePhraseSet\0225.google.cloud.speech" - + ".v1p1beta1.CreatePhraseSetRequest\032(.goog" - + "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344" - + "\223\002:\"5/v1p1beta1/{parent=projects/*/locat" - + "ions/*}/phraseSets:\001*\332A\037parent,phrase_se" - + "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl" - + "e.cloud.speech.v1p1beta1.GetPhraseSetReq" - + "uest\032(.google.cloud.speech.v1p1beta1.Phr" - + "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project" - + "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n" - + "\rListPhraseSet\0223.google.cloud.speech.v1p" - + "1beta1.ListPhraseSetRequest\0324.google.clo" - + "ud.speech.v1p1beta1.ListPhraseSetRespons" - + "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*" - + "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up" - + "datePhraseSet\0225.google.cloud.speech.v1p1" - + "beta1.UpdatePhraseSetRequest\032(.google.cl" - + "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@" - + "/v1p1beta1/{phrase_set.name=projects/*/l" - + "ocations/*/phraseSets/*}:\nphrase_set\332A\026p" - + "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe" - + "t\0225.google.cloud.speech.v1p1beta1.Delete" - + "PhraseSetRequest\032\026.google.protobuf.Empty" - + "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo" - + "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat" - + "eCustomClass\0227.google.cloud.speech.v1p1b" - + "eta1.CreateCustomClassRequest\032*.google.c" - + "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002" - + "=\"8/v1p1beta1/{parent=projects/*/locatio" - + "ns/*}/customClasses:\001*\332A#parent,custom_c" - + "lass,custom_class_id\022\273\001\n\016GetCustomClass\022" - + "4.google.cloud.speech.v1p1beta1.GetCusto" - + "mClassRequest\032*.google.cloud.speech.v1p1" - + "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n" - + "ame=projects/*/locations/*/customClasses" - + "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl" - + "e.cloud.speech.v1p1beta1.ListCustomClass" - + "esRequest\0328.google.cloud.speech.v1p1beta" - + "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1" - + "p1beta1/{parent=projects/*/locations/*}/" - + "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC" - + "lass\0227.google.cloud.speech.v1p1beta1.Upd" - + "ateCustomClassRequest\032*.google.cloud.spe" - + "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1" - + "beta1/{custom_class.name=projects/*/loca" - + "tions/*/customClasses/*}:\014custom_class\332A" - + "\030custom_class,update_mask\022\255\001\n\021DeleteCust" - + "omClass\0227.google.cloud.speech.v1p1beta1." - + "DeleteCustomClassRequest\032\026.google.protob" - + "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje" - + "cts/*/locations/*/customClasses/*}\332A\004nam" - + "e\032I\312A\025speech.googleapis.com\322A.https://ww" - + "w.googleapis.com/auth/cloud-platformB\212\001\n" - + "!com.google.cloud.speech.v1p1beta1B\025Spee" - + "chAdaptationProtoP\001ZCgoogle.golang.org/g" - + "enproto/googleapis/cloud/speech/v1p1beta" - + "1;speech\370\001\001\242\002\003GCSb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor, - new java.lang.String[] { - "Parent", "PhraseSetId", "PhraseSet", - }); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor, - new java.lang.String[] { - "PhraseSet", "UpdateMask", - }); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor, - new java.lang.String[] { - "PhraseSets", "NextPageToken", - }); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor, - new java.lang.String[] { - "Parent", "CustomClassId", "CustomClass", - }); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor, - new java.lang.String[] { - "CustomClass", "UpdateMask", - }); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor, - new java.lang.String[] { - "CustomClasses", "NextPageToken", - }); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor, - new java.lang.String[] { - "Name", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java deleted file mode 100644 index 2d6aa673c..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ /dev/null @@ -1,481 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechProto { - private SpeechProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/speech/v1p1beta1/cloud_sp" - + "eech.proto\022\035google.cloud.speech.v1p1beta" - + "1\032\034google/api/annotations.proto\032\027google/" - + "api/client.proto\032\037google/api/field_behav" - + "ior.proto\032,google/cloud/speech/v1p1beta1" - + "/resource.proto\032#google/longrunning/oper" - + "ations.proto\032\036google/protobuf/duration.p" - + "roto\032\037google/protobuf/timestamp.proto\032\036g" - + "oogle/protobuf/wrappers.proto\032\027google/rp" - + "c/status.proto\"\236\001\n\020RecognizeRequest\022E\n\006c" - + "onfig\030\001 \001(\01320.google.cloud.speech.v1p1be" - + "ta1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(" - + "\0132/.google.cloud.speech.v1p1beta1.Recogn" - + "itionAudioB\003\340A\002\"\374\001\n\033LongRunningRecognize" - + "Request\022E\n\006config\030\001 \001(\01320.google.cloud.s" - + "peech.v1p1beta1.RecognitionConfigB\003\340A\002\022C" - + "\n\005audio\030\002 \001(\0132/.google.cloud.speech.v1p1" - + "beta1.RecognitionAudioB\003\340A\002\022Q\n\routput_co" - + "nfig\030\004 \001(\01325.google.cloud.speech.v1p1bet" - + "a1.TranscriptOutputConfigB\003\340A\001\":\n\026Transc" - + "riptOutputConfig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013o" - + "utput_type\"\240\001\n\031StreamingRecognizeRequest" - + "\022U\n\020streaming_config\030\001 \001(\01329.google.clou" - + "d.speech.v1p1beta1.StreamingRecognitionC" - + "onfigH\000\022\027\n\raudio_content\030\002 \001(\014H\000B\023\n\021stre" - + "aming_request\"\226\001\n\032StreamingRecognitionCo" - + "nfig\022E\n\006config\030\001 \001(\01320.google.cloud.spee" - + "ch.v1p1beta1.RecognitionConfigB\003\340A\002\022\030\n\020s" - + "ingle_utterance\030\002 \001(\010\022\027\n\017interim_results" - + "\030\003 \001(\010\"\276\t\n\021RecognitionConfig\022P\n\010encoding" - + "\030\001 \001(\0162>.google.cloud.speech.v1p1beta1.R" - + "ecognitionConfig.AudioEncoding\022\031\n\021sample" - + "_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_count" - + "\030\007 \001(\005\022/\n\'enable_separate_recognition_pe" - + "r_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003" - + "\340A\002\022\"\n\032alternative_language_codes\030\022 \003(\t\022" - + "\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanity_f" - + "ilter\030\005 \001(\010\022C\n\nadaptation\030\024 \001(\0132/.google" - + ".cloud.speech.v1p1beta1.SpeechAdaptation" - + "\022X\n\030transcript_normalization\030\030 \001(\01326.goo" - + "gle.cloud.speech.v1p1beta1.TranscriptNor" - + "malization\022E\n\017speech_contexts\030\006 \003(\0132,.go" - + "ogle.cloud.speech.v1p1beta1.SpeechContex" - + "t\022 \n\030enable_word_time_offsets\030\010 \001(\010\022\036\n\026e" - + "nable_word_confidence\030\017 \001(\010\022$\n\034enable_au" - + "tomatic_punctuation\030\013 \001(\010\022=\n\031enable_spok" - + "en_punctuation\030\026 \001(\0132\032.google.protobuf.B" - + "oolValue\0228\n\024enable_spoken_emojis\030\027 \001(\0132\032" - + ".google.protobuf.BoolValue\022&\n\032enable_spe" - + "aker_diarization\030\020 \001(\010B\002\030\001\022%\n\031diarizatio" - + "n_speaker_count\030\021 \001(\005B\002\030\001\022S\n\022diarization" - + "_config\030\023 \001(\01327.google.cloud.speech.v1p1" - + "beta1.SpeakerDiarizationConfig\022D\n\010metada" - + "ta\030\t \001(\01322.google.cloud.speech.v1p1beta1" - + ".RecognitionMetadata\022\r\n\005model\030\r \001(\t\022\024\n\014u" - + "se_enhanced\030\016 \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024E" - + "NCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004F" - + "LAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_WB\020\005\022\014\n" - + "\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_BYTE\020\007\022" - + "\007\n\003MP3\020\010\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiari" - + "zationConfig\022\"\n\032enable_speaker_diarizati" - + "on\030\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021m" - + "ax_speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 " - + "\001(\005B\005\030\001\340A\003\"\333\010\n\023RecognitionMetadata\022\\\n\020in" - + "teraction_type\030\001 \001(\0162B.google.cloud.spee" - + "ch.v1p1beta1.RecognitionMetadata.Interac" - + "tionType\022$\n\034industry_naics_code_of_audio" - + "\030\003 \001(\r\022b\n\023microphone_distance\030\004 \001(\0162E.go" - + "ogle.cloud.speech.v1p1beta1.RecognitionM" - + "etadata.MicrophoneDistance\022a\n\023original_m" - + "edia_type\030\005 \001(\0162D.google.cloud.speech.v1" - + "p1beta1.RecognitionMetadata.OriginalMedi" - + "aType\022e\n\025recording_device_type\030\006 \001(\0162F.g" - + "oogle.cloud.speech.v1p1beta1.Recognition" - + "Metadata.RecordingDeviceType\022\035\n\025recordin" - + "g_device_name\030\007 \001(\t\022\032\n\022original_mime_typ" - + "e\030\010 \001(\t\022\031\n\robfuscated_id\030\t \001(\003B\002\030\001\022\023\n\013au" - + "dio_topic\030\n \001(\t\"\305\001\n\017InteractionType\022 \n\034I" - + "NTERACTION_TYPE_UNSPECIFIED\020\000\022\016\n\nDISCUSS" - + "ION\020\001\022\020\n\014PRESENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022" - + "\r\n\tVOICEMAIL\020\004\022\033\n\027PROFESSIONALLY_PRODUCE" - + "D\020\005\022\020\n\014VOICE_SEARCH\020\006\022\021\n\rVOICE_COMMAND\020\007" - + "\022\r\n\tDICTATION\020\010\"d\n\022MicrophoneDistance\022#\n" - + "\037MICROPHONE_DISTANCE_UNSPECIFIED\020\000\022\r\n\tNE" - + "ARFIELD\020\001\022\014\n\010MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n" - + "\021OriginalMediaType\022#\n\037ORIGINAL_MEDIA_TYP" - + "E_UNSPECIFIED\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001" - + "\n\023RecordingDeviceType\022%\n!RECORDING_DEVIC" - + "E_TYPE_UNSPECIFIED\020\000\022\016\n\nSMARTPHONE\020\001\022\006\n\002" - + "PC\020\002\022\016\n\nPHONE_LINE\020\003\022\013\n\007VEHICLE\020\004\022\030\n\024OTH" - + "ER_OUTDOOR_DEVICE\020\005\022\027\n\023OTHER_INDOOR_DEVI" - + "CE\020\006:\002\030\001\"/\n\rSpeechContext\022\017\n\007phrases\030\001 \003" - + "(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020RecognitionAudio\022\021\n" - + "\007content\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio" - + "_source\"\222\001\n\021RecognizeResponse\022G\n\007results" - + "\030\002 \003(\01326.google.cloud.speech.v1p1beta1.S" - + "peechRecognitionResult\0224\n\021total_billed_t" - + "ime\030\003 \001(\0132\031.google.protobuf.Duration\"\225\002\n" - + "\034LongRunningRecognizeResponse\022G\n\007results" - + "\030\002 \003(\01326.google.cloud.speech.v1p1beta1.S" - + "peechRecognitionResult\0224\n\021total_billed_t" - + "ime\030\003 \001(\0132\031.google.protobuf.Duration\022L\n\r" - + "output_config\030\006 \001(\01325.google.cloud.speec" - + "h.v1p1beta1.TranscriptOutputConfig\022(\n\014ou" - + "tput_error\030\007 \001(\0132\022.google.rpc.Status\"\203\002\n" - + "\034LongRunningRecognizeMetadata\022\030\n\020progres" - + "s_percent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\0224\n\020last_update_t" - + "ime\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n" - + "\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_config\030\005 \001(\01325" - + ".google.cloud.speech.v1p1beta1.Transcrip" - + "tOutputConfigB\003\340A\003\"\365\002\n\032StreamingRecogniz" - + "eResponse\022!\n\005error\030\001 \001(\0132\022.google.rpc.St" - + "atus\022J\n\007results\030\002 \003(\01329.google.cloud.spe" - + "ech.v1p1beta1.StreamingRecognitionResult" - + "\022d\n\021speech_event_type\030\004 \001(\0162I.google.clo" - + "ud.speech.v1p1beta1.StreamingRecognizeRe" - + "sponse.SpeechEventType\0224\n\021total_billed_t" - + "ime\030\005 \001(\0132\031.google.protobuf.Duration\"L\n\017" - + "SpeechEventType\022\034\n\030SPEECH_EVENT_UNSPECIF" - + "IED\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032S" - + "treamingRecognitionResult\022Q\n\014alternative" - + "s\030\001 \003(\0132;.google.cloud.speech.v1p1beta1." - + "SpeechRecognitionAlternative\022\020\n\010is_final" - + "\030\002 \001(\010\022\021\n\tstability\030\003 \001(\002\0222\n\017result_end_" - + "time\030\004 \001(\0132\031.google.protobuf.Duration\022\023\n" - + "\013channel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(" - + "\tB\003\340A\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014al" - + "ternatives\030\001 \003(\0132;.google.cloud.speech.v" - + "1p1beta1.SpeechRecognitionAlternative\022\023\n" - + "\013channel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 " - + "\001(\0132\031.google.protobuf.Duration\022\032\n\rlangua" - + "ge_code\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionA" - + "lternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfid" - + "ence\030\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud" - + ".speech.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022" - + "-\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Du" - + "ration\022+\n\010end_time\030\002 \001(\0132\031.google.protob" - + "uf.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030" - + "\004 \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Spee" - + "ch\022\245\001\n\tRecognize\022/.google.cloud.speech.v" - + "1p1beta1.RecognizeRequest\0320.google.cloud" - + ".speech.v1p1beta1.RecognizeResponse\"5\202\323\344" - + "\223\002 \"\033/v1p1beta1/speech:recognize:\001*\332A\014co" - + "nfig,audio\022\362\001\n\024LongRunningRecognize\022:.go" - + "ogle.cloud.speech.v1p1beta1.LongRunningR" - + "ecognizeRequest\032\035.google.longrunning.Ope" - + "ration\"\177\202\323\344\223\002+\"&/v1p1beta1/speech:longru" - + "nningrecognize:\001*\332A\014config,audio\312A<\n\034Lon" - + "gRunningRecognizeResponse\022\034LongRunningRe" - + "cognizeMetadata\022\217\001\n\022StreamingRecognize\0228" - + ".google.cloud.speech.v1p1beta1.Streaming" - + "RecognizeRequest\0329.google.cloud.speech.v" - + "1p1beta1.StreamingRecognizeResponse\"\000(\0010" - + "\001\032I\312A\025speech.googleapis.com\322A.https://ww" - + "w.googleapis.com/auth/cloud-platformB\200\001\n" - + "!com.google.cloud.speech.v1p1beta1B\013Spee" - + "chProtoP\001ZCgoogle.golang.org/genproto/go" - + "ogleapis/cloud/speech/v1p1beta1;speech\370\001" - + "\001\242\002\003GCSb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, - new java.lang.String[] { - "Config", "Audio", - }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, - new java.lang.String[] { - "Config", "Audio", "OutputConfig", - }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, - new java.lang.String[] { - "GcsUri", "OutputType", - }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, - new java.lang.String[] { - "StreamingConfig", "AudioContent", "StreamingRequest", - }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, - new java.lang.String[] { - "Config", "SingleUtterance", "InterimResults", - }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, - new java.lang.String[] { - "Encoding", - "SampleRateHertz", - "AudioChannelCount", - "EnableSeparateRecognitionPerChannel", - "LanguageCode", - "AlternativeLanguageCodes", - "MaxAlternatives", - "ProfanityFilter", - "Adaptation", - "TranscriptNormalization", - "SpeechContexts", - "EnableWordTimeOffsets", - "EnableWordConfidence", - "EnableAutomaticPunctuation", - "EnableSpokenPunctuation", - "EnableSpokenEmojis", - "EnableSpeakerDiarization", - "DiarizationSpeakerCount", - "DiarizationConfig", - "Metadata", - "Model", - "UseEnhanced", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, - new java.lang.String[] { - "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", - }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, - new java.lang.String[] { - "InteractionType", - "IndustryNaicsCodeOfAudio", - "MicrophoneDistance", - "OriginalMediaType", - "RecordingDeviceType", - "RecordingDeviceName", - "OriginalMimeType", - "ObfuscatedId", - "AudioTopic", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, - new java.lang.String[] { - "Phrases", "Boost", - }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, - new java.lang.String[] { - "Content", "Uri", "AudioSource", - }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, - new java.lang.String[] { - "Results", "TotalBilledTime", - }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, - new java.lang.String[] { - "Results", "TotalBilledTime", "OutputConfig", "OutputError", - }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, - new java.lang.String[] { - "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", - }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, - new java.lang.String[] { - "Error", "Results", "SpeechEventType", "TotalBilledTime", - }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, - new java.lang.String[] { - "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, - new java.lang.String[] { - "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, - new java.lang.String[] { - "Transcript", "Confidence", "Words", - }); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, - new java.lang.String[] { - "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java deleted file mode 100644 index 006c71cf0..000000000 --- a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/resource.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechResourceProto { - private SpeechResourceProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/speech/v1p1beta1/resource" - + ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" - + "oogle/api/resource.proto\"\203\002\n\013CustomClass" - + "\022\014\n\004name\030\001 \001(\t\022\027\n\017custom_class_id\030\002 \001(\t\022" - + "C\n\005items\030\003 \003(\01324.google.cloud.speech.v1p" - + "1beta1.CustomClass.ClassItem\032\032\n\tClassIte" - + "m\022\r\n\005value\030\001 \001(\t:l\352Ai\n!speech.googleapis" - + ".com/CustomClass\022Dprojects/{project}/loc" - + "ations/{location}/customClasses/{custom_" - + "class}\"\371\001\n\tPhraseSet\022\014\n\004name\030\001 \001(\t\022@\n\007ph" - + "rases\030\002 \003(\0132/.google.cloud.speech.v1p1be" - + "ta1.PhraseSet.Phrase\022\r\n\005boost\030\004 \001(\002\032&\n\006P" - + "hrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab" - + "\n\037speech.googleapis.com/PhraseSet\022?proje" - + "cts/{project}/locations/{location}/phras" - + "eSets/{phrase_set}\"\332\001\n\020SpeechAdaptation\022" - + "=\n\013phrase_sets\030\001 \003(\0132(.google.cloud.spee" - + "ch.v1p1beta1.PhraseSet\022C\n\025phrase_set_ref" - + "erences\030\002 \003(\tB$\372A!\n\037speech.googleapis.co" - + "m/PhraseSet\022B\n\016custom_classes\030\003 \003(\0132*.go" - + "ogle.cloud.speech.v1p1beta1.CustomClass\"" - + "\252\001\n\027TranscriptNormalization\022M\n\007entries\030\001" - + " \003(\0132<.google.cloud.speech.v1p1beta1.Tra" - + "nscriptNormalization.Entry\032@\n\005Entry\022\016\n\006s" - + "earch\030\001 \001(\t\022\017\n\007replace\030\002 \001(\t\022\026\n\016case_sen" - + "sitive\030\003 \001(\010B\210\001\n!com.google.cloud.speech" - + ".v1p1beta1B\023SpeechResourceProtoP\001ZCgoogl" - + "e.golang.org/genproto/googleapis/cloud/s" - + "peech/v1p1beta1;speech\370\001\001\242\002\003GCSb\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, - new java.lang.String[] { - "Name", "CustomClassId", "Items", - }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, - new java.lang.String[] { - "Value", - }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, - new java.lang.String[] { - "Name", "Phrases", "Boost", - }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, - new java.lang.String[] { - "Value", "Boost", - }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, - new java.lang.String[] { - "PhraseSets", "PhraseSetReferences", "CustomClasses", - }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, - new java.lang.String[] { - "Entries", - }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, - new java.lang.String[] { - "Search", "Replace", "CaseSensitive", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 257d4d11d4a8f219460868522f1c7f1a679cde12 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:03:16 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../cloud/speech/v1/AdaptationClient.java | 26 +- .../cloud/speech/v1/AdaptationSettings.java | 7 +- .../google/cloud/speech/v1/SpeechClient.java | 6 +- .../cloud/speech/v1/SpeechSettings.java | 7 +- .../cloud/speech/v1/gapic_metadata.json | 0 .../google/cloud/speech/v1/package-info.java | 0 .../cloud/speech/v1/stub/AdaptationStub.java | 0 .../v1/stub/AdaptationStubSettings.java | 9 +- .../stub/GrpcAdaptationCallableFactory.java | 0 .../speech/v1/stub/GrpcAdaptationStub.java | 1 - .../v1/stub/GrpcSpeechCallableFactory.java | 0 .../cloud/speech/v1/stub/GrpcSpeechStub.java | 0 .../HttpJsonAdaptationCallableFactory.java | 0 .../v1/stub/HttpJsonAdaptationStub.java | 0 .../stub/HttpJsonSpeechCallableFactory.java | 0 .../speech/v1/stub/HttpJsonSpeechStub.java | 1 - .../cloud/speech/v1/stub/SpeechStub.java | 0 .../speech/v1/stub/SpeechStubSettings.java | 6 +- .../speech/v1p1beta1/AdaptationClient.java | 26 +- .../speech/v1p1beta1/AdaptationSettings.java | 7 +- .../cloud/speech/v1p1beta1/SpeechClient.java | 6 +- .../speech/v1p1beta1/SpeechSettings.java | 7 +- .../speech/v1p1beta1/gapic_metadata.json | 0 .../cloud/speech/v1p1beta1/package-info.java | 0 .../speech/v1p1beta1/stub/AdaptationStub.java | 0 .../stub/AdaptationStubSettings.java | 9 +- .../stub/GrpcAdaptationCallableFactory.java | 0 .../v1p1beta1/stub/GrpcAdaptationStub.java | 1 - .../stub/GrpcSpeechCallableFactory.java | 0 .../speech/v1p1beta1/stub/GrpcSpeechStub.java | 0 .../HttpJsonAdaptationCallableFactory.java | 0 .../stub/HttpJsonAdaptationStub.java | 0 .../stub/HttpJsonSpeechCallableFactory.java | 0 .../v1p1beta1/stub/HttpJsonSpeechStub.java | 1 - .../speech/v1p1beta1/stub/SpeechStub.java | 0 .../v1p1beta1/stub/SpeechStubSettings.java | 6 +- .../v1/AdaptationClientHttpJsonTest.java | 0 .../cloud/speech/v1/AdaptationClientTest.java | 0 .../cloud/speech/v1/MockAdaptation.java | 0 .../cloud/speech/v1/MockAdaptationImpl.java | 0 .../google/cloud/speech/v1/MockSpeech.java | 0 .../cloud/speech/v1/MockSpeechImpl.java | 0 .../speech/v1/SpeechClientHttpJsonTest.java | 2 +- .../cloud/speech/v1/SpeechClientTest.java | 0 .../AdaptationClientHttpJsonTest.java | 0 .../v1p1beta1/AdaptationClientTest.java | 0 .../speech/v1p1beta1/MockAdaptation.java | 0 .../speech/v1p1beta1/MockAdaptationImpl.java | 0 .../cloud/speech/v1p1beta1/MockSpeech.java | 0 .../speech/v1p1beta1/MockSpeechImpl.java | 0 .../v1p1beta1/SpeechClientHttpJsonTest.java | 2 +- .../speech/v1p1beta1/SpeechClientTest.java | 0 .../cloud/speech/v1/AdaptationGrpc.java | 1393 ++++++++++++ .../google/cloud/speech/v1/SpeechGrpc.java | 579 +++++ .../speech/v1p1beta1/AdaptationGrpc.java | 1424 ++++++++++++ .../cloud/speech/v1p1beta1/SpeechGrpc.java | 589 +++++ .../cloud/speech/v1/AdaptationGrpc.java | 1085 --------- .../google/cloud/speech/v1/SpeechGrpc.java | 479 ---- .../v1/DeletePhraseSetRequestOrBuilder.java | 31 - .../v1/GetCustomClassRequestOrBuilder.java | 31 - .../speech/v1/RecognizeRequestOrBuilder.java | 66 - .../speech/v1/SpeechAdaptationProto.java | 285 --- .../google/cloud/speech/v1/SpeechProto.java | 406 ---- .../cloud/speech/v1/SpeechResourceProto.java | 121 - .../speech/v1p1beta1/AdaptationGrpc.java | 1085 --------- .../cloud/speech/v1p1beta1/SpeechGrpc.java | 479 ---- .../DeletePhraseSetRequestOrBuilder.java | 31 - .../GetCustomClassRequestOrBuilder.java | 31 - .../v1p1beta1/RecognizeRequestOrBuilder.java | 66 - .../v1p1beta1/SpeechAdaptationProto.java | 292 --- .../cloud/speech/v1p1beta1/SpeechProto.java | 420 ---- .../speech/v1p1beta1/SpeechResourceProto.java | 148 -- .../speech/v1/CreateCustomClassRequest.java | 567 +++-- .../v1/CreateCustomClassRequestOrBuilder.java | 64 +- .../speech/v1/CreatePhraseSetRequest.java | 567 +++-- .../v1/CreatePhraseSetRequestOrBuilder.java | 64 +- .../google/cloud/speech/v1/CustomClass.java | 823 ++++--- .../cloud/speech/v1/CustomClassName.java | 0 .../cloud/speech/v1/CustomClassOrBuilder.java | 54 +- .../speech/v1/DeleteCustomClassRequest.java | 339 +-- .../v1/DeleteCustomClassRequestOrBuilder.java | 35 +- .../speech/v1/DeletePhraseSetRequest.java | 339 +-- .../v1/DeletePhraseSetRequestOrBuilder.java | 56 + .../speech/v1/GetCustomClassRequest.java | 336 +-- .../v1/GetCustomClassRequestOrBuilder.java | 56 + .../cloud/speech/v1/GetPhraseSetRequest.java | 329 +-- .../v1/GetPhraseSetRequestOrBuilder.java | 35 +- .../speech/v1/ListCustomClassesRequest.java | 452 ++-- .../v1/ListCustomClassesRequestOrBuilder.java | 47 +- .../speech/v1/ListCustomClassesResponse.java | 455 ++-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../cloud/speech/v1/ListPhraseSetRequest.java | 445 ++-- .../v1/ListPhraseSetRequestOrBuilder.java | 47 +- .../speech/v1/ListPhraseSetResponse.java | 456 ++-- .../v1/ListPhraseSetResponseOrBuilder.java | 45 +- .../google/cloud/speech/v1/LocationName.java | 0 .../v1/LongRunningRecognizeMetadata.java | 536 +++-- ...LongRunningRecognizeMetadataOrBuilder.java | 46 +- .../v1/LongRunningRecognizeRequest.java | 685 ++++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../v1/LongRunningRecognizeResponse.java | 665 ++++-- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../com/google/cloud/speech/v1/PhraseSet.java | 812 ++++--- .../google/cloud/speech/v1/PhraseSetName.java | 0 .../cloud/speech/v1/PhraseSetOrBuilder.java | 48 +- .../cloud/speech/v1/RecognitionAudio.java | 417 ++-- .../speech/v1/RecognitionAudioOrBuilder.java | 36 +- .../cloud/speech/v1/RecognitionConfig.java | 1658 +++++++++----- .../speech/v1/RecognitionConfigOrBuilder.java | 145 +- .../cloud/speech/v1/RecognitionMetadata.java | 1222 +++++++---- .../v1/RecognitionMetadataOrBuilder.java | 93 +- .../cloud/speech/v1/RecognizeRequest.java | 525 +++-- .../speech/v1/RecognizeRequestOrBuilder.java | 110 + .../cloud/speech/v1/RecognizeResponse.java | 470 ++-- .../speech/v1/RecognizeResponseOrBuilder.java | 44 +- .../speech/v1/SpeakerDiarizationConfig.java | 414 ++-- .../v1/SpeakerDiarizationConfigOrBuilder.java | 40 +- .../cloud/speech/v1/SpeechAdaptation.java | 663 +++--- .../speech/v1/SpeechAdaptationOrBuilder.java | 84 +- .../speech/v1/SpeechAdaptationProto.java | 311 +++ .../google/cloud/speech/v1/SpeechContext.java | 367 ++-- .../speech/v1/SpeechContextOrBuilder.java | 39 +- .../google/cloud/speech/v1/SpeechProto.java | 463 ++++ .../v1/SpeechRecognitionAlternative.java | 499 +++-- ...SpeechRecognitionAlternativeOrBuilder.java | 49 +- .../speech/v1/SpeechRecognitionResult.java | 604 +++-- .../v1/SpeechRecognitionResultOrBuilder.java | 53 +- .../cloud/speech/v1/SpeechResourceProto.java | 140 ++ .../speech/v1/StreamingRecognitionConfig.java | 461 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../speech/v1/StreamingRecognitionResult.java | 681 +++--- .../StreamingRecognitionResultOrBuilder.java | 59 +- .../speech/v1/StreamingRecognizeRequest.java | 459 ++-- .../StreamingRecognizeRequestOrBuilder.java | 35 +- .../speech/v1/StreamingRecognizeResponse.java | 727 +++--- .../StreamingRecognizeResponseOrBuilder.java | 64 +- .../speech/v1/TranscriptOutputConfig.java | 368 ++-- .../v1/TranscriptOutputConfigOrBuilder.java | 30 +- .../speech/v1/UpdateCustomClassRequest.java | 480 ++-- .../v1/UpdateCustomClassRequestOrBuilder.java | 46 +- .../speech/v1/UpdatePhraseSetRequest.java | 480 ++-- .../v1/UpdatePhraseSetRequestOrBuilder.java | 46 +- .../com/google/cloud/speech/v1/WordInfo.java | 541 +++-- .../cloud/speech/v1/WordInfoOrBuilder.java | 49 +- .../google/cloud/speech/v1/cloud_speech.proto | 0 .../speech/v1/cloud_speech_adaptation.proto | 0 .../google/cloud/speech/v1/resource.proto | 0 .../v1p1beta1/CreateCustomClassRequest.java | 567 +++-- .../CreateCustomClassRequestOrBuilder.java | 64 +- .../v1p1beta1/CreatePhraseSetRequest.java | 567 +++-- .../CreatePhraseSetRequestOrBuilder.java | 64 +- .../cloud/speech/v1p1beta1/CustomClass.java | 831 ++++--- .../speech/v1p1beta1/CustomClassName.java | 0 .../v1p1beta1/CustomClassOrBuilder.java | 54 +- .../v1p1beta1/DeleteCustomClassRequest.java | 342 +-- .../DeleteCustomClassRequestOrBuilder.java | 35 +- .../v1p1beta1/DeletePhraseSetRequest.java | 342 +-- .../DeletePhraseSetRequestOrBuilder.java | 56 + .../v1p1beta1/GetCustomClassRequest.java | 342 +-- .../GetCustomClassRequestOrBuilder.java | 56 + .../speech/v1p1beta1/GetPhraseSetRequest.java | 342 +-- .../GetPhraseSetRequestOrBuilder.java | 35 +- .../v1p1beta1/ListCustomClassesRequest.java | 455 ++-- .../ListCustomClassesRequestOrBuilder.java | 47 +- .../v1p1beta1/ListCustomClassesResponse.java | 441 ++-- .../ListCustomClassesResponseOrBuilder.java | 45 +- .../v1p1beta1/ListPhraseSetRequest.java | 455 ++-- .../ListPhraseSetRequestOrBuilder.java | 47 +- .../v1p1beta1/ListPhraseSetResponse.java | 464 ++-- .../ListPhraseSetResponseOrBuilder.java | 45 +- .../cloud/speech/v1p1beta1/LocationName.java | 0 .../LongRunningRecognizeMetadata.java | 715 +++--- ...LongRunningRecognizeMetadataOrBuilder.java | 66 +- .../LongRunningRecognizeRequest.java | 701 ++++-- .../LongRunningRecognizeRequestOrBuilder.java | 78 +- .../LongRunningRecognizeResponse.java | 704 ++++-- ...LongRunningRecognizeResponseOrBuilder.java | 60 +- .../cloud/speech/v1p1beta1/PhraseSet.java | 826 ++++--- .../cloud/speech/v1p1beta1/PhraseSetName.java | 0 .../speech/v1p1beta1/PhraseSetOrBuilder.java | 48 +- .../speech/v1p1beta1/RecognitionAudio.java | 427 ++-- .../v1p1beta1/RecognitionAudioOrBuilder.java | 36 +- .../speech/v1p1beta1/RecognitionConfig.java | 1951 +++++++++++------ .../v1p1beta1/RecognitionConfigOrBuilder.java | 188 +- .../speech/v1p1beta1/RecognitionMetadata.java | 1340 +++++++---- .../RecognitionMetadataOrBuilder.java | 116 +- .../speech/v1p1beta1/RecognizeRequest.java | 531 +++-- .../v1p1beta1/RecognizeRequestOrBuilder.java | 110 + .../speech/v1p1beta1/RecognizeResponse.java | 489 +++-- .../v1p1beta1/RecognizeResponseOrBuilder.java | 44 +- .../v1p1beta1/SpeakerDiarizationConfig.java | 401 ++-- .../SpeakerDiarizationConfigOrBuilder.java | 36 +- .../speech/v1p1beta1/SpeechAdaptation.java | 658 ++++-- .../v1p1beta1/SpeechAdaptationOrBuilder.java | 84 +- .../v1p1beta1/SpeechAdaptationProto.java | 318 +++ .../cloud/speech/v1p1beta1/SpeechContext.java | 373 ++-- .../v1p1beta1/SpeechContextOrBuilder.java | 39 +- .../cloud/speech/v1p1beta1/SpeechProto.java | 481 ++++ .../SpeechRecognitionAlternative.java | 518 +++-- ...SpeechRecognitionAlternativeOrBuilder.java | 48 +- .../v1p1beta1/SpeechRecognitionResult.java | 702 +++--- .../SpeechRecognitionResultOrBuilder.java | 67 +- .../speech/v1p1beta1/SpeechResourceProto.java | 173 ++ .../v1p1beta1/StreamingRecognitionConfig.java | 466 ++-- .../StreamingRecognitionConfigOrBuilder.java | 44 +- .../v1p1beta1/StreamingRecognitionResult.java | 783 ++++--- .../StreamingRecognitionResultOrBuilder.java | 73 +- .../v1p1beta1/StreamingRecognizeRequest.java | 470 ++-- .../StreamingRecognizeRequestOrBuilder.java | 38 +- .../v1p1beta1/StreamingRecognizeResponse.java | 760 ++++--- .../StreamingRecognizeResponseOrBuilder.java | 63 +- .../v1p1beta1/TranscriptNormalization.java | 931 +++++--- .../TranscriptNormalizationOrBuilder.java | 33 +- .../v1p1beta1/TranscriptOutputConfig.java | 371 ++-- .../TranscriptOutputConfigOrBuilder.java | 33 +- .../v1p1beta1/UpdateCustomClassRequest.java | 480 ++-- .../UpdateCustomClassRequestOrBuilder.java | 46 +- .../v1p1beta1/UpdatePhraseSetRequest.java | 480 ++-- .../UpdatePhraseSetRequestOrBuilder.java | 46 +- .../cloud/speech/v1p1beta1/WordInfo.java | 548 +++-- .../speech/v1p1beta1/WordInfoOrBuilder.java | 49 +- .../cloud/speech/v1p1beta1/cloud_speech.proto | 0 .../v1p1beta1/cloud_speech_adaptation.proto | 0 .../cloud/speech/v1p1beta1/resource.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateCustomClass.java | 0 .../SyncCreateCustomClass.java | 0 ...tomClassLocationnameCustomclassString.java | 0 ...ateCustomClassStringCustomclassString.java | 0 .../createphraseset/AsyncCreatePhraseSet.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 ...ePhraseSetLocationnamePhrasesetString.java | 0 ...cCreatePhraseSetStringPhrasesetString.java | 0 .../AsyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClass.java | 1 - .../SyncDeleteCustomClassCustomclassname.java | 1 - .../SyncDeleteCustomClassString.java | 1 - .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 1 - .../SyncDeletePhraseSetPhrasesetname.java | 1 - .../SyncDeletePhraseSetString.java | 1 - .../getcustomclass/AsyncGetCustomClass.java | 0 .../getcustomclass/SyncGetCustomClass.java | 0 .../SyncGetCustomClassCustomclassname.java | 0 .../SyncGetCustomClassString.java | 0 .../getphraseset/AsyncGetPhraseSet.java | 0 .../getphraseset/SyncGetPhraseSet.java | 0 .../SyncGetPhraseSetPhrasesetname.java | 0 .../getphraseset/SyncGetPhraseSetString.java | 0 .../AsyncListCustomClasses.java | 0 .../AsyncListCustomClassesPaged.java | 0 .../SyncListCustomClasses.java | 0 .../SyncListCustomClassesLocationname.java | 0 .../SyncListCustomClassesString.java | 0 .../listphraseset/AsyncListPhraseSet.java | 0 .../AsyncListPhraseSetPaged.java | 0 .../listphraseset/SyncListPhraseSet.java | 0 .../SyncListPhraseSetLocationname.java | 0 .../SyncListPhraseSetString.java | 0 .../AsyncUpdateCustomClass.java | 0 .../SyncUpdateCustomClass.java | 0 ...UpdateCustomClassCustomclassFieldmask.java | 0 .../updatephraseset/AsyncUpdatePhraseSet.java | 0 .../updatephraseset/SyncUpdatePhraseSet.java | 0 ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 6 +- .../recognize/AsyncRecognize.java | 0 .../speechclient/recognize/SyncRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../AsyncStreamingRecognize.java | 0 .../recognize/SyncRecognize.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../recognize/SyncRecognize.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncCreateCustomClass.java | 0 .../SyncCreateCustomClass.java | 0 ...tomClassLocationnameCustomclassString.java | 6 +- ...ateCustomClassStringCustomclassString.java | 3 +- .../createphraseset/AsyncCreatePhraseSet.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 ...ePhraseSetLocationnamePhrasesetString.java | 6 +- ...cCreatePhraseSetStringPhrasesetString.java | 0 .../AsyncDeleteCustomClass.java | 0 .../SyncDeleteCustomClass.java | 1 - .../SyncDeleteCustomClassCustomclassname.java | 1 - .../SyncDeleteCustomClassString.java | 1 - .../deletephraseset/AsyncDeletePhraseSet.java | 0 .../deletephraseset/SyncDeletePhraseSet.java | 1 - .../SyncDeletePhraseSetPhrasesetname.java | 1 - .../SyncDeletePhraseSetString.java | 1 - .../getcustomclass/AsyncGetCustomClass.java | 0 .../getcustomclass/SyncGetCustomClass.java | 0 .../SyncGetCustomClassCustomclassname.java | 0 .../SyncGetCustomClassString.java | 0 .../getphraseset/AsyncGetPhraseSet.java | 0 .../getphraseset/SyncGetPhraseSet.java | 0 .../SyncGetPhraseSetPhrasesetname.java | 0 .../getphraseset/SyncGetPhraseSetString.java | 0 .../AsyncListCustomClasses.java | 0 .../AsyncListCustomClassesPaged.java | 0 .../SyncListCustomClasses.java | 0 .../SyncListCustomClassesLocationname.java | 0 .../SyncListCustomClassesString.java | 0 .../listphraseset/AsyncListPhraseSet.java | 0 .../AsyncListPhraseSetPaged.java | 0 .../listphraseset/SyncListPhraseSet.java | 0 .../SyncListPhraseSetLocationname.java | 0 .../SyncListPhraseSetString.java | 0 .../AsyncUpdateCustomClass.java | 0 .../SyncUpdateCustomClass.java | 0 ...UpdateCustomClassCustomclassFieldmask.java | 0 .../updatephraseset/AsyncUpdatePhraseSet.java | 0 .../updatephraseset/SyncUpdatePhraseSet.java | 0 ...SyncUpdatePhraseSetPhrasesetFieldmask.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../AsyncLongRunningRecognize.java | 0 .../AsyncLongRunningRecognizeLRO.java | 0 .../SyncLongRunningRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 6 +- .../recognize/AsyncRecognize.java | 0 .../speechclient/recognize/SyncRecognize.java | 0 ...nizeRecognitionconfigRecognitionaudio.java | 0 .../AsyncStreamingRecognize.java | 0 .../recognize/SyncRecognize.java | 0 .../createphraseset/SyncCreatePhraseSet.java | 0 .../recognize/SyncRecognize.java | 0 340 files changed, 34079 insertions(+), 20471 deletions(-) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java (98%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechClient.java (98%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java (99%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java (99%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java (97%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java (96%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java (98%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java (99%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java (99%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeech.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java (99%) rename {owl-bot-staging/v1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java (100%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java (99%) rename {owl-bot-staging/v1p1beta1/google-cloud-speech => google-cloud-speech}/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java (100%) create mode 100644 grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java create mode 100644 grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java create mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java create mode 100644 grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java delete mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java delete mode 100644 owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java delete mode 100644 owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClass.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClassName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java (65%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java (66%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java (59%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LocationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSet.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java (94%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java (76%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java (61%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java (79%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContext.java (80%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java (85%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternative.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java (78%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java (83%) create mode 100644 proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java (85%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java (79%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java (83%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfo.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/cloud_speech.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-speech-v1 => proto-google-cloud-speech-v1}/src/main/proto/google/cloud/speech/v1/resource.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java (65%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java (65%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java (66%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java (66%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java (59%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java (67%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java (60%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java (51%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java (81%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java (79%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java (82%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java (93%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java (69%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java (61%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java (68%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java (79%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java (80%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java (80%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java (85%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java (76%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java (79%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java (74%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java (79%) create mode 100644 proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java (75%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java (82%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java (78%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java (76%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java (81%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java (73%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java (78%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java (70%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java (61%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java (71%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java (72%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java (77%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java (84%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto (100%) rename {owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1 => proto-google-cloud-speech-v1p1beta1}/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java (88%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java (94%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java (88%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java (98%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java (97%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java (97%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java (97%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java (97%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java (97%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java (88%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java (100%) rename {owl-bot-staging/v1p1beta1/samples => samples}/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java index 7f0a4d188..39b4f486b 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationClient.java @@ -59,13 +59,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1389,7 +1389,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListPhraseSetPagedResponse extends AbstractPagedListResponse< - ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, + ListPhraseSetRequest, + ListPhraseSetResponse, + PhraseSet, + ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { public static ApiFuture createAsync( @@ -1439,7 +1442,10 @@ public ApiFuture createPageAsync( public static class ListPhraseSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, + ListPhraseSetRequest, + ListPhraseSetResponse, + PhraseSet, + ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { private ListPhraseSetFixedSizeCollection(List pages, int collectionSize) { @@ -1459,7 +1465,10 @@ protected ListPhraseSetFixedSizeCollection createCollection( public static class ListCustomClassesPagedResponse extends AbstractPagedListResponse< - ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, + ListCustomClassesRequest, + ListCustomClassesResponse, + CustomClass, + ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1509,7 +1518,10 @@ public ApiFuture createPageAsync( public static class ListCustomClassesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, + ListCustomClassesRequest, + ListCustomClassesResponse, + CustomClass, + ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java index 96948bc91..950ea3f3a 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/AdaptationSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.speech.v1.stub.AdaptationStubSettings; @@ -45,9 +44,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java index afe749c81..48b4ee2ef 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechClient.java @@ -53,13 +53,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java index 0dadc2818..8dcb2260a 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/SpeechSettings.java @@ -27,7 +27,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.speech.v1.stub.SpeechStubSettings; @@ -43,9 +42,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStub.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java index e15941b0a..8bff48218 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/AdaptationStubSettings.java @@ -74,9 +74,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -218,7 +218,8 @@ public ApiFuture getFuturePagedResponse( ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse> LIST_CUSTOM_CLASSES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCustomClassesRequest, ListCustomClassesResponse, + ListCustomClassesRequest, + ListCustomClassesResponse, ListCustomClassesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java index 45bd5bdce..881efcbe3 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcAdaptationStub.java @@ -45,7 +45,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonAdaptationStub.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java index 92497e95f..e4a54b26b 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/HttpJsonSpeechStub.java @@ -28,7 +28,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStub.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java index d99deb73f..a60e60640 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java @@ -63,9 +63,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java similarity index 98% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java index d1406f4b0..8c37f7e1f 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationClient.java @@ -60,13 +60,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1391,7 +1391,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListPhraseSetPagedResponse extends AbstractPagedListResponse< - ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, + ListPhraseSetRequest, + ListPhraseSetResponse, + PhraseSet, + ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { public static ApiFuture createAsync( @@ -1441,7 +1444,10 @@ public ApiFuture createPageAsync( public static class ListPhraseSetFixedSizeCollection extends AbstractFixedSizeCollection< - ListPhraseSetRequest, ListPhraseSetResponse, PhraseSet, ListPhraseSetPage, + ListPhraseSetRequest, + ListPhraseSetResponse, + PhraseSet, + ListPhraseSetPage, ListPhraseSetFixedSizeCollection> { private ListPhraseSetFixedSizeCollection(List pages, int collectionSize) { @@ -1461,7 +1467,10 @@ protected ListPhraseSetFixedSizeCollection createCollection( public static class ListCustomClassesPagedResponse extends AbstractPagedListResponse< - ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, + ListCustomClassesRequest, + ListCustomClassesResponse, + CustomClass, + ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { public static ApiFuture createAsync( @@ -1511,7 +1520,10 @@ public ApiFuture createPageAsync( public static class ListCustomClassesFixedSizeCollection extends AbstractFixedSizeCollection< - ListCustomClassesRequest, ListCustomClassesResponse, CustomClass, ListCustomClassesPage, + ListCustomClassesRequest, + ListCustomClassesResponse, + CustomClass, + ListCustomClassesPage, ListCustomClassesFixedSizeCollection> { private ListCustomClassesFixedSizeCollection( diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java similarity index 97% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java index e2dd2ccb4..65f40a764 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.speech.v1p1beta1.stub.AdaptationStubSettings; @@ -45,9 +44,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java similarity index 98% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java index 406f97873..8ba542d63 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechClient.java @@ -54,13 +54,13 @@ * methods: * *

    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java similarity index 96% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java index 3d3153a97..57cc1b81f 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechSettings.java @@ -27,7 +27,6 @@ import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.speech.v1p1beta1.stub.SpeechStubSettings; @@ -43,9 +42,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/package-info.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java similarity index 98% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java index 631825f9d..4b78381bc 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java @@ -74,9 +74,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -219,7 +219,8 @@ public ApiFuture getFuturePagedResponse( ListCustomClassesRequest, ListCustomClassesResponse, ListCustomClassesPagedResponse> LIST_CUSTOM_CLASSES_PAGE_STR_FACT = new PagedListResponseFactory< - ListCustomClassesRequest, ListCustomClassesResponse, + ListCustomClassesRequest, + ListCustomClassesResponse, ListCustomClassesPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java similarity index 99% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java index 526e244c2..8875ab91a 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcAdaptationStub.java @@ -46,7 +46,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/GrpcSpeechStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonAdaptationStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechCallableFactory.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java similarity index 99% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java index b2e330646..734bccaaa 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/HttpJsonSpeechStub.java @@ -28,7 +28,6 @@ import com.google.api.gax.httpjson.ProtoMessageResponseParser; import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; -import com.google.api.gax.longrunning.OperationSnapshot; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStub.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java similarity index 98% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java rename to google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java index 7f1121465..0dd3efd4c 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java +++ b/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java @@ -63,9 +63,9 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (speech.googleapis.com) and default port (443) are used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • The default service address (speech.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/AdaptationClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptation.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockAdaptationImpl.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeech.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/MockSpeechImpl.java diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java index 48a8fa5ec..f924cc6c4 100644 --- a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java +++ b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientHttpJsonTest.java @@ -181,6 +181,6 @@ public void longRunningRecognizeExceptionTest() throws Exception { @Test public void streamingRecognizeUnsupportedMethodTest() throws Exception { // The streamingRecognize() method is not supported in REST transport. - //This empty test is generated for technical reasons. + // This empty test is generated for technical reasons. } } diff --git a/owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechClientTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientHttpJsonTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/AdaptationClientTest.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptation.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockAdaptationImpl.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeech.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/MockSpeechImpl.java diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java similarity index 99% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java index ec6318911..565f69611 100644 --- a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java +++ b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientHttpJsonTest.java @@ -181,6 +181,6 @@ public void longRunningRecognizeExceptionTest() throws Exception { @Test public void streamingRecognizeUnsupportedMethodTest() throws Exception { // The streamingRecognize() method is not supported in REST transport. - //This empty test is generated for technical reasons. + // This empty test is generated for technical reasons. } } diff --git a/owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java b/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java similarity index 100% rename from owl-bot-staging/v1p1beta1/google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java rename to google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechClientTest.java diff --git a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java new file mode 100644 index 000000000..5a6d1e037 --- /dev/null +++ b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java @@ -0,0 +1,1393 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Service that implements Google Cloud Speech Adaptation API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1/cloud_speech_adaptation.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdaptationGrpc { + + private AdaptationGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1.Adaptation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.CreatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> + getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v1.CreatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.CreatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> + getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.CreatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> + getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + AdaptationGrpc.getCreatePhraseSetMethod = + getCreatePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CreatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.GetPhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> + getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v1.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.GetPhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> + getGetPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.GetPhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> + getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + AdaptationGrpc.getGetPhraseSetMethod = + getGetPhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.GetPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.ListPhraseSetRequest, + com.google.cloud.speech.v1.ListPhraseSetResponse> + getListPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", + requestType = com.google.cloud.speech.v1.ListPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1.ListPhraseSetResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.ListPhraseSetRequest, + com.google.cloud.speech.v1.ListPhraseSetResponse> + getListPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.ListPhraseSetRequest, + com.google.cloud.speech.v1.ListPhraseSetResponse> + getListPhraseSetMethod; + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + AdaptationGrpc.getListPhraseSetMethod = + getListPhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.ListPhraseSetRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.ListPhraseSetResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) + .build(); + } + } + } + return getListPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.UpdatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> + getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.UpdatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> + getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.UpdatePhraseSetRequest, com.google.cloud.speech.v1.PhraseSet> + getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + AdaptationGrpc.getUpdatePhraseSetMethod = + getUpdatePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.UpdatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) + .build(); + } + } + } + return getUpdatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", + requestType = com.google.cloud.speech.v1.DeletePhraseSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + AdaptationGrpc.getDeletePhraseSetMethod = + getDeletePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.DeletePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.CreateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass> + getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v1.CreateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.CreateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass> + getCreateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.CreateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass> + getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + AdaptationGrpc.getCreateCustomClassMethod = + getCreateCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CreateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.GetCustomClassRequest, com.google.cloud.speech.v1.CustomClass> + getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v1.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.GetCustomClassRequest, com.google.cloud.speech.v1.CustomClass> + getGetCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.GetCustomClassRequest, + com.google.cloud.speech.v1.CustomClass> + getGetCustomClassMethod; + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + AdaptationGrpc.getGetCustomClassMethod = + getGetCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.GetCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.ListCustomClassesRequest, + com.google.cloud.speech.v1.ListCustomClassesResponse> + getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v1.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v1.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.ListCustomClassesRequest, + com.google.cloud.speech.v1.ListCustomClassesResponse> + getListCustomClassesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.ListCustomClassesRequest, + com.google.cloud.speech.v1.ListCustomClassesResponse> + getListCustomClassesMethod; + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + AdaptationGrpc.getListCustomClassesMethod = + getListCustomClassesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.ListCustomClassesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.ListCustomClassesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.UpdateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass> + getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v1.UpdateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.UpdateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass> + getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.UpdateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass> + getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + AdaptationGrpc.getUpdateCustomClassMethod = + getUpdateCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.UpdateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) + .build(); + } + } + } + return getUpdateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", + requestType = com.google.cloud.speech.v1.DeleteCustomClassRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + AdaptationGrpc.getDeleteCustomClassMethod = + getDeleteCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.DeleteCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AdaptationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + }; + return AdaptationStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdaptationBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + }; + return AdaptationBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AdaptationFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + }; + return AdaptationFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public abstract static class AdaptationImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet( + com.google.cloud.speech.v1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomClassesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomClassMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.CreatePhraseSetRequest, + com.google.cloud.speech.v1.PhraseSet>(this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.GetPhraseSetRequest, + com.google.cloud.speech.v1.PhraseSet>(this, METHODID_GET_PHRASE_SET))) + .addMethod( + getListPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.ListPhraseSetRequest, + com.google.cloud.speech.v1.ListPhraseSetResponse>( + this, METHODID_LIST_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1.PhraseSet>(this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.DeletePhraseSetRequest, com.google.protobuf.Empty>( + this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.CreateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass>(this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.GetCustomClassRequest, + com.google.cloud.speech.v1.CustomClass>(this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.ListCustomClassesRequest, + com.google.cloud.speech.v1.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.UpdateCustomClassRequest, + com.google.cloud.speech.v1.CustomClass>(this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.DeleteCustomClassRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CUSTOM_CLASS))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { + private AdaptationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet( + com.google.cloud.speech.v1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AdaptationBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.cloud.speech.v1.PhraseSet createPhraseSet( + com.google.cloud.speech.v1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1.PhraseSet getPhraseSet( + com.google.cloud.speech.v1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public com.google.cloud.speech.v1.ListPhraseSetResponse listPhraseSet( + com.google.cloud.speech.v1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1.PhraseSet updatePhraseSet( + com.google.cloud.speech.v1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.protobuf.Empty deletePhraseSet( + com.google.cloud.speech.v1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1.CustomClass createCustomClass( + com.google.cloud.speech.v1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1.CustomClass getCustomClass( + com.google.cloud.speech.v1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public com.google.cloud.speech.v1.ListCustomClassesResponse listCustomClasses( + com.google.cloud.speech.v1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1.CustomClass updateCustomClass( + com.google.cloud.speech.v1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.protobuf.Empty deleteCustomClass( + com.google.cloud.speech.v1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AdaptationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createPhraseSet(com.google.cloud.speech.v1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + getPhraseSet(com.google.cloud.speech.v1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1.ListPhraseSetResponse> + listPhraseSet(com.google.cloud.speech.v1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + updatePhraseSet(com.google.cloud.speech.v1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePhraseSet(com.google.cloud.speech.v1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1.CustomClass> + createCustomClass(com.google.cloud.speech.v1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1.CustomClass> + getCustomClass(com.google.cloud.speech.v1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1.ListCustomClassesResponse> + listCustomClasses(com.google.cloud.speech.v1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1.CustomClass> + updateCustomClass(com.google.cloud.speech.v1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCustomClass(com.google.cloud.speech.v1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_PHRASE_SET = 0; + private static final int METHODID_GET_PHRASE_SET = 1; + private static final int METHODID_LIST_PHRASE_SET = 2; + private static final int METHODID_UPDATE_PHRASE_SET = 3; + private static final int METHODID_DELETE_PHRASE_SET = 4; + private static final int METHODID_CREATE_CUSTOM_CLASS = 5; + private static final int METHODID_GET_CUSTOM_CLASS = 6; + private static final int METHODID_LIST_CUSTOM_CLASSES = 7; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; + private static final int METHODID_DELETE_CUSTOM_CLASS = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AdaptationImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet( + (com.google.cloud.speech.v1.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet( + (com.google.cloud.speech.v1.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_PHRASE_SET: + serviceImpl.listPhraseSet( + (com.google.cloud.speech.v1.ListPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet( + (com.google.cloud.speech.v1.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet( + (com.google.cloud.speech.v1.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass( + (com.google.cloud.speech.v1.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass( + (com.google.cloud.speech.v1.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses( + (com.google.cloud.speech.v1.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass( + (com.google.cloud.speech.v1.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass( + (com.google.cloud.speech.v1.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdaptationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Adaptation"); + } + } + + private static final class AdaptationFileDescriptorSupplier + extends AdaptationBaseDescriptorSupplier { + AdaptationFileDescriptorSupplier() {} + } + + private static final class AdaptationMethodDescriptorSupplier + extends AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdaptationMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdaptationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getListPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java new file mode 100644 index 000000000..846458da2 --- /dev/null +++ b/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java @@ -0,0 +1,579 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> + getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.RecognizeRequest, com.google.cloud.speech.v1.RecognizeResponse> + getRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.RecognizeRequest, + com.google.cloud.speech.v1.RecognizeResponse> + getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = + getRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, com.google.longrunning.Operation> + getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = + getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.LongRunningRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse> + getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = + getStreamingRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1.StreamingRecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public abstract static class SpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLongRunningRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.RecognizeRequest, + com.google.cloud.speech.v1.RecognizeResponse>(this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1.StreamingRecognizeRequest, + com.google.cloud.speech.v1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1.RecognizeResponse recognize( + com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize( + com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1.RecognizeResponse> + recognize(com.google.cloud.speech.v1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize( + (com.google.cloud.speech.v1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize( + (com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1.StreamingRecognizeResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java new file mode 100644 index 000000000..5a5395620 --- /dev/null +++ b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/AdaptationGrpc.java @@ -0,0 +1,1424 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service that implements Google Cloud Speech Adaptation API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdaptationGrpc { + + private AdaptationGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getCreatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getCreatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getCreatePhraseSetMethod; + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { + AdaptationGrpc.getCreatePhraseSetMethod = + getCreatePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) + .build(); + } + } + } + return getCreatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getGetPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getGetPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getGetPhraseSetMethod; + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { + AdaptationGrpc.getGetPhraseSetMethod = + getGetPhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) + .build(); + } + } + } + return getGetPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + getListPhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + getListPhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + getListPhraseSetMethod; + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { + AdaptationGrpc.getListPhraseSetMethod = + getListPhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) + .build(); + } + } + } + return getListPhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getUpdatePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getUpdatePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet> + getUpdatePhraseSetMethod; + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { + AdaptationGrpc.getUpdatePhraseSetMethod = + getUpdatePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) + .build(); + } + } + } + return getUpdatePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", + requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, com.google.protobuf.Empty> + getDeletePhraseSetMethod; + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { + AdaptationGrpc.getDeletePhraseSetMethod = + getDeletePhraseSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) + .build(); + } + } + } + return getDeletePhraseSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getCreateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getCreateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getCreateCustomClassMethod; + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { + AdaptationGrpc.getCreateCustomClassMethod = + getCreateCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("CreateCustomClass")) + .build(); + } + } + } + return getCreateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getGetCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getGetCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getGetCustomClassMethod; + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { + AdaptationGrpc.getGetCustomClassMethod = + getGetCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) + .build(); + } + } + } + return getGetCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + getListCustomClassesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", + requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + getListCustomClassesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + getListCustomClassesMethod; + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { + AdaptationGrpc.getListCustomClassesMethod = + getListCustomClassesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("ListCustomClasses")) + .build(); + } + } + } + return getListCustomClassesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getUpdateCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getUpdateCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass> + getUpdateCustomClassMethod; + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { + AdaptationGrpc.getUpdateCustomClassMethod = + getUpdateCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) + .build(); + } + } + } + return getUpdateCustomClassMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", + requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, com.google.protobuf.Empty> + getDeleteCustomClassMethod; + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + synchronized (AdaptationGrpc.class) { + if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { + AdaptationGrpc.getDeleteCustomClassMethod = + getDeleteCustomClassMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) + .build(); + } + } + } + return getDeleteCustomClassMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AdaptationStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + }; + return AdaptationStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdaptationBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + }; + return AdaptationBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AdaptationFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdaptationFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + }; + return AdaptationFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public abstract static class AdaptationImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePhraseSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomClassesMethod(), responseObserver); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomClassMethod(), responseObserver); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCustomClassMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_CREATE_PHRASE_SET))) + .addMethod( + getGetPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>(this, METHODID_GET_PHRASE_SET))) + .addMethod( + getListPhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( + this, METHODID_LIST_PHRASE_SET))) + .addMethod( + getUpdatePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, + com.google.cloud.speech.v1p1beta1.PhraseSet>( + this, METHODID_UPDATE_PHRASE_SET))) + .addMethod( + getDeletePhraseSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_PHRASE_SET))) + .addMethod( + getCreateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_CREATE_CUSTOM_CLASS))) + .addMethod( + getGetCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_GET_CUSTOM_CLASS))) + .addMethod( + getListCustomClassesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( + this, METHODID_LIST_CUSTOM_CLASSES))) + .addMethod( + getUpdateCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, + com.google.cloud.speech.v1p1beta1.CustomClass>( + this, METHODID_UPDATE_CUSTOM_CLASS))) + .addMethod( + getDeleteCustomClassMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CUSTOM_CLASS))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { + private AdaptationStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public void createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public void getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public void listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public void updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public void deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public void createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public void getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public void listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public void updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public void deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AdaptationBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.protobuf.Empty deletePhraseSet( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomClassesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.protobuf.Empty deleteCustomClass( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech Adaptation API.
+   * 
+ */ + public static final class AdaptationFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AdaptationFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdaptationFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdaptationFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Create a set of phrase hints. Each item in the set can be a single word or
+     * a multi-word phrase. The items in the PhraseSet are favored by the
+     * recognition model when you send a call that includes the PhraseSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.PhraseSet> + createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.PhraseSet> + getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List phrase sets.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse> + listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.PhraseSet> + updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a phrase set.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.CustomClass> + createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.CustomClass> + getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * List custom classes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse> + listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Update a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.CustomClass> + updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Delete a custom class.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_PHRASE_SET = 0; + private static final int METHODID_GET_PHRASE_SET = 1; + private static final int METHODID_LIST_PHRASE_SET = 2; + private static final int METHODID_UPDATE_PHRASE_SET = 3; + private static final int METHODID_DELETE_PHRASE_SET = 4; + private static final int METHODID_CREATE_CUSTOM_CLASS = 5; + private static final int METHODID_GET_CUSTOM_CLASS = 6; + private static final int METHODID_LIST_CUSTOM_CLASSES = 7; + private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; + private static final int METHODID_DELETE_CUSTOM_CLASS = 9; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AdaptationImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_PHRASE_SET: + serviceImpl.createPhraseSet( + (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_PHRASE_SET: + serviceImpl.getPhraseSet( + (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PHRASE_SET: + serviceImpl.listPhraseSet( + (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_PHRASE_SET: + serviceImpl.updatePhraseSet( + (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_PHRASE_SET: + serviceImpl.deletePhraseSet( + (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_CUSTOM_CLASS: + serviceImpl.createCustomClass( + (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CUSTOM_CLASS: + serviceImpl.getCustomClass( + (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_CLASSES: + serviceImpl.listCustomClasses( + (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_CLASS: + serviceImpl.updateCustomClass( + (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CUSTOM_CLASS: + serviceImpl.deleteCustomClass( + (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdaptationBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Adaptation"); + } + } + + private static final class AdaptationFileDescriptorSupplier + extends AdaptationBaseDescriptorSupplier { + AdaptationFileDescriptorSupplier() {} + } + + private static final class AdaptationMethodDescriptorSupplier + extends AdaptationBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdaptationMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AdaptationGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) + .addMethod(getCreatePhraseSetMethod()) + .addMethod(getGetPhraseSetMethod()) + .addMethod(getListPhraseSetMethod()) + .addMethod(getUpdatePhraseSetMethod()) + .addMethod(getDeletePhraseSetMethod()) + .addMethod(getCreateCustomClassMethod()) + .addMethod(getGetCustomClassMethod()) + .addMethod(getListCustomClassesMethod()) + .addMethod(getUpdateCustomClassMethod()) + .addMethod(getDeleteCustomClassMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java new file mode 100644 index 000000000..c3bc87f0f --- /dev/null +++ b/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java @@ -0,0 +1,589 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.speech.v1p1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service that implements Google Cloud Speech API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpeechGrpc { + + private SpeechGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + getRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "Recognize", + requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + getRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + getRecognizeMethod; + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { + SpeechGrpc.getRecognizeMethod = + getRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.RecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) + .build(); + } + } + } + return getRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", + requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation> + getLongRunningRecognizeMethod; + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { + SpeechGrpc.getLongRunningRecognizeMethod = + getLongRunningRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new SpeechMethodDescriptorSupplier("LongRunningRecognize")) + .build(); + } + } + } + return getLongRunningRecognizeMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", + requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, + responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + getStreamingRecognizeMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + getStreamingRecognizeMethod; + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + synchronized (SpeechGrpc.class) { + if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { + SpeechGrpc.getStreamingRecognizeMethod = + getStreamingRecognizeMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse + .getDefaultInstance())) + .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) + .build(); + } + } + } + return getStreamingRecognizeMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static SpeechStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + }; + return SpeechStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static SpeechBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + }; + return SpeechBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static SpeechFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public SpeechFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + }; + return SpeechFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public abstract static class SpeechImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getLongRunningRecognizeMethod(), responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamingRecognizeMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.RecognizeRequest, + com.google.cloud.speech.v1p1beta1.RecognizeResponse>( + this, METHODID_RECOGNIZE))) + .addMethod( + getLongRunningRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, + com.google.longrunning.Operation>(this, METHODID_LONG_RUNNING_RECOGNIZE))) + .addMethod( + getStreamingRecognizeMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( + this, METHODID_STREAMING_RECOGNIZE))) + .build(); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { + private SpeechStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public void recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public void longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Performs bidirectional streaming speech recognition: receive results while
+     * sending audio. This method is only available via the gRPC API (not REST).
+     * 
+ */ + public io.grpc.stub.StreamObserver + streamingRecognize( + io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private SpeechBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize( + com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRecognizeMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.longrunning.Operation longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service that implements Google Cloud Speech API.
+   * 
+ */ + public static final class SpeechFutureStub + extends io.grpc.stub.AbstractFutureStub { + private SpeechFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected SpeechFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new SpeechFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Performs synchronous speech recognition: receive results after all audio
+     * has been sent and processed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.speech.v1p1beta1.RecognizeResponse> + recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Performs asynchronous speech recognition: receive results via the
+     * google.longrunning.Operations interface. Returns either an
+     * `Operation.error` or an `Operation.response` which contains
+     * a `LongRunningRecognizeResponse` message.
+     * For more information on asynchronous speech recognition, see the
+     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + longRunningRecognize( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RECOGNIZE = 0; + private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; + private static final int METHODID_STREAMING_RECOGNIZE = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final SpeechImplBase serviceImpl; + private final int methodId; + + MethodHandlers(SpeechImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_RECOGNIZE: + serviceImpl.recognize( + (com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LONG_RUNNING_RECOGNIZE: + serviceImpl.longRunningRecognize( + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAMING_RECOGNIZE: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamingRecognize( + (io.grpc.stub.StreamObserver< + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>) + responseObserver); + default: + throw new AssertionError(); + } + } + } + + private abstract static class SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + SpeechBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Speech"); + } + } + + private static final class SpeechFileDescriptorSupplier extends SpeechBaseDescriptorSupplier { + SpeechFileDescriptorSupplier() {} + } + + private static final class SpeechMethodDescriptorSupplier extends SpeechBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + SpeechMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (SpeechGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) + .addMethod(getRecognizeMethod()) + .addMethod(getLongRunningRecognizeMethod()) + .addMethod(getStreamingRecognizeMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java deleted file mode 100644 index b536dba14..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/AdaptationGrpc.java +++ /dev/null @@ -1,1085 +0,0 @@ -package com.google.cloud.speech.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service that implements Google Cloud Speech Adaptation API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1/cloud_speech_adaptation.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdaptationGrpc { - - private AdaptationGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1.Adaptation"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v1.CreatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - AdaptationGrpc.getCreatePhraseSetMethod = getCreatePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CreatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v1.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { - io.grpc.MethodDescriptor getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - AdaptationGrpc.getGetPhraseSetMethod = getGetPhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.GetPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", - requestType = com.google.cloud.speech.v1.ListPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1.ListPhraseSetResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPhraseSetMethod() { - io.grpc.MethodDescriptor getListPhraseSetMethod; - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - AdaptationGrpc.getListPhraseSetMethod = getListPhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.ListPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.ListPhraseSetResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) - .build(); - } - } - } - return getListPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - AdaptationGrpc.getUpdatePhraseSetMethod = getUpdatePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.UpdatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) - .build(); - } - } - } - return getUpdatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", - requestType = com.google.cloud.speech.v1.DeletePhraseSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - AdaptationGrpc.getDeletePhraseSetMethod = getDeletePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.DeletePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v1.CreateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { - io.grpc.MethodDescriptor getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - AdaptationGrpc.getCreateCustomClassMethod = getCreateCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CreateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v1.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomClassMethod() { - io.grpc.MethodDescriptor getGetCustomClassMethod; - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - AdaptationGrpc.getGetCustomClassMethod = getGetCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.GetCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v1.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v1.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomClassesMethod() { - io.grpc.MethodDescriptor getListCustomClassesMethod; - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - AdaptationGrpc.getListCustomClassesMethod = getListCustomClassesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.ListCustomClassesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.ListCustomClassesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v1.UpdateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - AdaptationGrpc.getUpdateCustomClassMethod = getUpdateCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.UpdateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) - .build(); - } - } - } - return getUpdateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", - requestType = com.google.cloud.speech.v1.DeleteCustomClassRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - AdaptationGrpc.getDeleteCustomClassMethod = getDeleteCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.DeleteCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AdaptationStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - }; - return AdaptationStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdaptationBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - }; - return AdaptationBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AdaptationFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - }; - return AdaptationFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static abstract class AdaptationImplBase implements io.grpc.BindableService { - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet(com.google.cloud.speech.v1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetMethod(), responseObserver); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.CreatePhraseSetRequest, - com.google.cloud.speech.v1.PhraseSet>( - this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.GetPhraseSetRequest, - com.google.cloud.speech.v1.PhraseSet>( - this, METHODID_GET_PHRASE_SET))) - .addMethod( - getListPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.ListPhraseSetRequest, - com.google.cloud.speech.v1.ListPhraseSetResponse>( - this, METHODID_LIST_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1.PhraseSet>( - this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.DeletePhraseSetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.CreateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass>( - this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.GetCustomClassRequest, - com.google.cloud.speech.v1.CustomClass>( - this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.ListCustomClassesRequest, - com.google.cloud.speech.v1.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.UpdateCustomClassRequest, - com.google.cloud.speech.v1.CustomClass>( - this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.DeleteCustomClassRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_CUSTOM_CLASS))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { - private AdaptationStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet(com.google.cloud.speech.v1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AdaptationBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.cloud.speech.v1.PhraseSet createPhraseSet(com.google.cloud.speech.v1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1.PhraseSet getPhraseSet(com.google.cloud.speech.v1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public com.google.cloud.speech.v1.ListPhraseSetResponse listPhraseSet(com.google.cloud.speech.v1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1.PhraseSet updatePhraseSet(com.google.cloud.speech.v1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.protobuf.Empty deletePhraseSet(com.google.cloud.speech.v1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public com.google.cloud.speech.v1.CustomClass createCustomClass(com.google.cloud.speech.v1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public com.google.cloud.speech.v1.CustomClass getCustomClass(com.google.cloud.speech.v1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public com.google.cloud.speech.v1.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public com.google.cloud.speech.v1.CustomClass updateCustomClass(com.google.cloud.speech.v1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public com.google.protobuf.Empty deleteCustomClass(com.google.cloud.speech.v1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationFutureStub extends io.grpc.stub.AbstractFutureStub { - private AdaptationFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPhraseSet( - com.google.cloud.speech.v1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPhraseSet( - com.google.cloud.speech.v1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPhraseSet( - com.google.cloud.speech.v1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( - com.google.cloud.speech.v1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( - com.google.cloud.speech.v1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomClass( - com.google.cloud.speech.v1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomClass( - com.google.cloud.speech.v1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomClasses( - com.google.cloud.speech.v1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomClass( - com.google.cloud.speech.v1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( - com.google.cloud.speech.v1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PHRASE_SET = 0; - private static final int METHODID_GET_PHRASE_SET = 1; - private static final int METHODID_LIST_PHRASE_SET = 2; - private static final int METHODID_UPDATE_PHRASE_SET = 3; - private static final int METHODID_DELETE_PHRASE_SET = 4; - private static final int METHODID_CREATE_CUSTOM_CLASS = 5; - private static final int METHODID_GET_CUSTOM_CLASS = 6; - private static final int METHODID_LIST_CUSTOM_CLASSES = 7; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; - private static final int METHODID_DELETE_CUSTOM_CLASS = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AdaptationImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet((com.google.cloud.speech.v1.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet((com.google.cloud.speech.v1.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PHRASE_SET: - serviceImpl.listPhraseSet((com.google.cloud.speech.v1.ListPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet((com.google.cloud.speech.v1.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet((com.google.cloud.speech.v1.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass((com.google.cloud.speech.v1.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass((com.google.cloud.speech.v1.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses((com.google.cloud.speech.v1.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass((com.google.cloud.speech.v1.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass((com.google.cloud.speech.v1.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdaptationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Adaptation"); - } - } - - private static final class AdaptationFileDescriptorSupplier - extends AdaptationBaseDescriptorSupplier { - AdaptationFileDescriptorSupplier() {} - } - - private static final class AdaptationMethodDescriptorSupplier - extends AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdaptationMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AdaptationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getListPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java deleted file mode 100644 index 46b71822a..000000000 --- a/owl-bot-staging/v1/grpc-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechGrpc.java +++ /dev/null @@ -1,479 +0,0 @@ -package com.google.cloud.speech.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRecognizeMethod() { - io.grpc.MethodDescriptor getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = getRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.LongRunningRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1.StreamingRecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SpeechFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static abstract class SpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.RecognizeRequest, - com.google.cloud.speech.v1.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>( - this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1.StreamingRecognizeRequest, - com.google.cloud.speech.v1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1.RecognizeResponse recognize(com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture recognize( - com.google.cloud.speech.v1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( - com.google.cloud.speech.v1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize((com.google.cloud.speech.v1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize((com.google.cloud.speech.v1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier - extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier - extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index 6e63a397a..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1; - -public interface DeletePhraseSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.DeletePhraseSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 61476aadb..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1; - -public interface GetCustomClassRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 5811af703..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech.proto - -package com.google.cloud.speech.v1; - -public interface RecognizeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The config. - */ - com.google.cloud.speech.v1.RecognitionConfig getConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The audio. - */ - com.google.cloud.speech.v1.RecognitionAudio getAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java deleted file mode 100644 index 314543722..000000000 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java +++ /dev/null @@ -1,285 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1; - -public final class SpeechAdaptationProto { - private SpeechAdaptationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/cloud/speech/v1/cloud_speech_ad" + - "aptation.proto\022\026google.cloud.speech.v1\032\034" + - "google/api/annotations.proto\032\027google/api" + - "/client.proto\032\037google/api/field_behavior" + - ".proto\032\031google/api/resource.proto\032%googl" + - "e/cloud/speech/v1/resource.proto\032\033google" + - "/protobuf/empty.proto\032 google/protobuf/f" + - "ield_mask.proto\"\251\001\n\026CreatePhraseSetReque" + - "st\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037speech.googl" + - "eapis.com/PhraseSet\022\032\n\rphrase_set_id\030\002 \001" + - "(\tB\003\340A\002\022:\n\nphrase_set\030\003 \001(\0132!.google.clo" + - "ud.speech.v1.PhraseSetB\003\340A\002\"\205\001\n\026UpdatePh" + - "raseSetRequest\022:\n\nphrase_set\030\001 \001(\0132!.goo" + - "gle.cloud.speech.v1.PhraseSetB\003\340A\002\022/\n\013up" + - "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + - "ask\"L\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\t" + - "B\'\340A\002\372A!\n\037speech.googleapis.com/PhraseSe" + - "t\"v\n\024ListPhraseSetRequest\0227\n\006parent\030\001 \001(" + - "\tB\'\340A\002\372A!\022\037speech.googleapis.com/PhraseS" + - "et\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + - "\t\"h\n\025ListPhraseSetResponse\0226\n\013phrase_set" + - "s\030\001 \003(\0132!.google.cloud.speech.v1.PhraseS" + - "et\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeletePhr" + - "aseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spe" + - "ech.googleapis.com/PhraseSet\"\263\001\n\030CreateC" + - "ustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" + - "#\022!speech.googleapis.com/CustomClass\022\034\n\017" + - "custom_class_id\030\002 \001(\tB\003\340A\002\022>\n\014custom_cla" + - "ss\030\003 \001(\0132#.google.cloud.speech.v1.Custom" + - "ClassB\003\340A\002\"\213\001\n\030UpdateCustomClassRequest\022" + - ">\n\014custom_class\030\001 \001(\0132#.google.cloud.spe" + - "ech.v1.CustomClassB\003\340A\002\022/\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMask\"P\n\025GetC" + - "ustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n" + - "!speech.googleapis.com/CustomClass\"|\n\030Li" + - "stCustomClassesRequest\0229\n\006parent\030\001 \001(\tB)" + - "\340A\002\372A#\022!speech.googleapis.com/CustomClas" + - "s\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t" + - "\"q\n\031ListCustomClassesResponse\022;\n\016custom_" + - "classes\030\001 \003(\0132#.google.cloud.speech.v1.C" + - "ustomClass\022\027\n\017next_page_token\030\002 \001(\t\"S\n\030D" + - "eleteCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340" + - "A\002\372A#\n!speech.googleapis.com/CustomClass" + - "2\216\017\n\nAdaptation\022\301\001\n\017CreatePhraseSet\022..go" + - "ogle.cloud.speech.v1.CreatePhraseSetRequ" + - "est\032!.google.cloud.speech.v1.PhraseSet\"[" + - "\202\323\344\223\0023\"./v1/{parent=projects/*/locations" + - "/*}/phraseSets:\001*\332A\037parent,phrase_set,ph" + - "rase_set_id\022\235\001\n\014GetPhraseSet\022+.google.cl" + - "oud.speech.v1.GetPhraseSetRequest\032!.goog" + - "le.cloud.speech.v1.PhraseSet\"=\202\323\344\223\0020\022./v" + - "1/{name=projects/*/locations/*/phraseSet" + - "s/*}\332A\004name\022\255\001\n\rListPhraseSet\022,.google.c" + - "loud.speech.v1.ListPhraseSetRequest\032-.go" + - "ogle.cloud.speech.v1.ListPhraseSetRespon" + - "se\"?\202\323\344\223\0020\022./v1/{parent=projects/*/locat" + - "ions/*}/phraseSets\332A\006parent\022\314\001\n\017UpdatePh" + - "raseSet\022..google.cloud.speech.v1.UpdateP" + - "hraseSetRequest\032!.google.cloud.speech.v1" + - ".PhraseSet\"f\202\323\344\223\002G29/v1/{phrase_set.name" + - "=projects/*/locations/*/phraseSets/*}:\np" + - "hrase_set\332A\026phrase_set,update_mask\022\230\001\n\017D" + - "eletePhraseSet\022..google.cloud.speech.v1." + - "DeletePhraseSetRequest\032\026.google.protobuf" + - ".Empty\"=\202\323\344\223\0020*./v1/{name=projects/*/loc" + - "ations/*/phraseSets/*}\332A\004name\022\316\001\n\021Create" + - "CustomClass\0220.google.cloud.speech.v1.Cre" + - "ateCustomClassRequest\032#.google.cloud.spe" + - "ech.v1.CustomClass\"b\202\323\344\223\0026\"1/v1/{parent=" + - "projects/*/locations/*}/customClasses:\001*" + - "\332A#parent,custom_class,custom_class_id\022\246" + - "\001\n\016GetCustomClass\022-.google.cloud.speech." + - "v1.GetCustomClassRequest\032#.google.cloud." + - "speech.v1.CustomClass\"@\202\323\344\223\0023\0221/v1/{name" + - "=projects/*/locations/*/customClasses/*}" + - "\332A\004name\022\274\001\n\021ListCustomClasses\0220.google.c" + - "loud.speech.v1.ListCustomClassesRequest\032" + - "1.google.cloud.speech.v1.ListCustomClass" + - "esResponse\"B\202\323\344\223\0023\0221/v1/{parent=projects" + - "/*/locations/*}/customClasses\332A\006parent\022\333" + - "\001\n\021UpdateCustomClass\0220.google.cloud.spee" + - "ch.v1.UpdateCustomClassRequest\032#.google." + - "cloud.speech.v1.CustomClass\"o\202\323\344\223\002N2>/v1" + - "/{custom_class.name=projects/*/locations" + - "/*/customClasses/*}:\014custom_class\332A\030cust" + - "om_class,update_mask\022\237\001\n\021DeleteCustomCla" + - "ss\0220.google.cloud.speech.v1.DeleteCustom" + - "ClassRequest\032\026.google.protobuf.Empty\"@\202\323" + - "\344\223\0023*1/v1/{name=projects/*/locations/*/c" + - "ustomClasses/*}\332A\004name\032I\312A\025speech.google" + - "apis.com\322A.https://www.googleapis.com/au" + - "th/cloud-platformB|\n\032com.google.cloud.sp" + - "eech.v1B\025SpeechAdaptationProtoP\001Z\n\006config\030\001 \001(\0132).google." + - "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" + - "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" + - "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" + - "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" + - "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" + - "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" + - "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" + - "\0132..google.cloud.speech.v1.TranscriptOut" + - "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" + - "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" + - "treamingRecognizeRequest\022N\n\020streaming_co" + - "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" + - "amingRecognitionConfigH\000\022\027\n\raudio_conten" + - "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" + - "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." + - "google.cloud.speech.v1.RecognitionConfig" + - "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" + - "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" + - "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" + - "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" + - "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" + - "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" + - "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" + - "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" + - "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" + - "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" + - "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" + - "speech_contexts\030\006 \003(\0132%.google.cloud.spe" + - "ech.v1.SpeechContext\022 \n\030enable_word_time" + - "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" + - "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" + - " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" + - "\032.google.protobuf.BoolValue\0228\n\024enable_sp" + - "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" + - "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" + - "le.cloud.speech.v1.SpeakerDiarizationCon" + - "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" + - "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" + - "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" + - "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" + - "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" + - "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" + - "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" + - "ionConfig\022\"\n\032enable_speaker_diarization\030" + - "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" + - "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" + - "B\005\030\001\340A\003\"\244\010\n\023RecognitionMetadata\022U\n\020inter" + - "action_type\030\001 \001(\0162;.google.cloud.speech." + - "v1.RecognitionMetadata.InteractionType\022$" + - "\n\034industry_naics_code_of_audio\030\003 \001(\r\022[\n\023" + - "microphone_distance\030\004 \001(\0162>.google.cloud" + - ".speech.v1.RecognitionMetadata.Microphon" + - "eDistance\022Z\n\023original_media_type\030\005 \001(\0162=" + - ".google.cloud.speech.v1.RecognitionMetad" + - "ata.OriginalMediaType\022^\n\025recording_devic" + - "e_type\030\006 \001(\0162?.google.cloud.speech.v1.Re" + - "cognitionMetadata.RecordingDeviceType\022\035\n" + - "\025recording_device_name\030\007 \001(\t\022\032\n\022original" + - "_mime_type\030\010 \001(\t\022\023\n\013audio_topic\030\n \001(\t\"\305\001" + - "\n\017InteractionType\022 \n\034INTERACTION_TYPE_UN" + - "SPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRESENTAT" + - "ION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020\004\022\033\n\027" + - "PROFESSIONALLY_PRODUCED\020\005\022\020\n\014VOICE_SEARC" + - "H\020\006\022\021\n\rVOICE_COMMAND\020\007\022\r\n\tDICTATION\020\010\"d\n" + - "\022MicrophoneDistance\022#\n\037MICROPHONE_DISTAN" + - "CE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010MIDFI" + - "ELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMediaType" + - "\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED\020\000\022\t\n" + - "\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDeviceT" + - "ype\022%\n!RECORDING_DEVICE_TYPE_UNSPECIFIED" + - "\020\000\022\016\n\nSMARTPHONE\020\001\022\006\n\002PC\020\002\022\016\n\nPHONE_LINE" + - "\020\003\022\013\n\007VEHICLE\020\004\022\030\n\024OTHER_OUTDOOR_DEVICE\020" + - "\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006:\002\030\001\"/\n\rSpeech" + - "Context\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"" + - "D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r" + - "\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021Recogn" + - "izeResponse\022@\n\007results\030\002 \003(\0132/.google.cl" + - "oud.speech.v1.SpeechRecognitionResult\0224\n" + - "\021total_billed_time\030\003 \001(\0132\031.google.protob" + - "uf.Duration\"\207\002\n\034LongRunningRecognizeResp" + - "onse\022@\n\007results\030\002 \003(\0132/.google.cloud.spe" + - "ech.v1.SpeechRecognitionResult\0224\n\021total_" + - "billed_time\030\003 \001(\0132\031.google.protobuf.Dura" + - "tion\022E\n\routput_config\030\006 \001(\0132..google.clo" + - "ud.speech.v1.TranscriptOutputConfig\022(\n\014o" + - "utput_error\030\007 \001(\0132\022.google.rpc.Status\"\260\001" + - "\n\034LongRunningRecognizeMetadata\022\030\n\020progre" + - "ss_percent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.g" + - "oogle.protobuf.Timestamp\0224\n\020last_update_" + - "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020" + - "\n\003uri\030\004 \001(\tB\003\340A\003\"\347\002\n\032StreamingRecognizeR" + - "esponse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Stat" + - "us\022C\n\007results\030\002 \003(\01322.google.cloud.speec" + - "h.v1.StreamingRecognitionResult\022]\n\021speec" + - "h_event_type\030\004 \001(\0162B.google.cloud.speech" + - ".v1.StreamingRecognizeResponse.SpeechEve" + - "ntType\0224\n\021total_billed_time\030\005 \001(\0132\031.goog" + - "le.protobuf.Duration\"L\n\017SpeechEventType\022" + - "\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_" + - "SINGLE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognit" + - "ionResult\022J\n\014alternatives\030\001 \003(\01324.google" + - ".cloud.speech.v1.SpeechRecognitionAltern" + - "ative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstability\030\003 \001" + - "(\002\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" + - "tobuf.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rl" + - "anguage_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecogn" + - "itionResult\022J\n\014alternatives\030\001 \003(\01324.goog" + - "le.cloud.speech.v1.SpeechRecognitionAlte" + - "rnative\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_e" + - "nd_time\030\004 \001(\0132\031.google.protobuf.Duration" + - "\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRe" + - "cognitionAlternative\022\022\n\ntranscript\030\001 \001(\t" + - "\022\022\n\nconfidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .go" + - "ogle.cloud.speech.v1.WordInfo\"\242\001\n\010WordIn" + - "fo\022-\n\nstart_time\030\001 \001(\0132\031.google.protobuf" + - ".Duration\022+\n\010end_time\030\002 \001(\0132\031.google.pro" + - "tobuf.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfiden" + - "ce\030\004 \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006S" + - "peech\022\220\001\n\tRecognize\022(.google.cloud.speec" + - "h.v1.RecognizeRequest\032).google.cloud.spe" + - "ech.v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/sp" + - "eech:recognize:\001*\332A\014config,audio\022\344\001\n\024Lon" + - "gRunningRecognize\0223.google.cloud.speech." + - "v1.LongRunningRecognizeRequest\032\035.google." + - "longrunning.Operation\"x\202\323\344\223\002$\"\037/v1/speec" + - "h:longrunningrecognize:\001*\332A\014config,audio" + - "\312A<\n\034LongRunningRecognizeResponse\022\034LongR" + - "unningRecognizeMetadata\022\201\001\n\022StreamingRec" + - "ognize\0221.google.cloud.speech.v1.Streamin" + - "gRecognizeRequest\0322.google.cloud.speech." + - "v1.StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025" + - "speech.googleapis.com\322A.https://www.goog" + - "leapis.com/auth/cloud-platformBr\n\032com.go" + - "ogle.cloud.speech.v1B\013SpeechProtoP\001Z - * Service that implements Google Cloud Speech Adaptation API. - *
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdaptationGrpc { - - private AdaptationGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Adaptation"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePhraseSetMethod() { - io.grpc.MethodDescriptor getCreatePhraseSetMethod; - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreatePhraseSetMethod = AdaptationGrpc.getCreatePhraseSetMethod) == null) { - AdaptationGrpc.getCreatePhraseSetMethod = getCreatePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreatePhraseSet")) - .build(); - } - } - } - return getCreatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPhraseSetMethod() { - io.grpc.MethodDescriptor getGetPhraseSetMethod; - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetPhraseSetMethod = AdaptationGrpc.getGetPhraseSetMethod) == null) { - AdaptationGrpc.getGetPhraseSetMethod = getGetPhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetPhraseSet")) - .build(); - } - } - } - return getGetPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPhraseSetMethod() { - io.grpc.MethodDescriptor getListPhraseSetMethod; - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListPhraseSetMethod = AdaptationGrpc.getListPhraseSetMethod) == null) { - AdaptationGrpc.getListPhraseSetMethod = getListPhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListPhraseSet")) - .build(); - } - } - } - return getListPhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.PhraseSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePhraseSetMethod() { - io.grpc.MethodDescriptor getUpdatePhraseSetMethod; - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdatePhraseSetMethod = AdaptationGrpc.getUpdatePhraseSetMethod) == null) { - AdaptationGrpc.getUpdatePhraseSetMethod = getUpdatePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdatePhraseSet")) - .build(); - } - } - } - return getUpdatePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePhraseSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePhraseSet", - requestType = com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePhraseSetMethod() { - io.grpc.MethodDescriptor getDeletePhraseSetMethod; - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeletePhraseSetMethod = AdaptationGrpc.getDeletePhraseSetMethod) == null) { - AdaptationGrpc.getDeletePhraseSetMethod = getDeletePhraseSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePhraseSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeletePhraseSet")) - .build(); - } - } - } - return getDeletePhraseSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomClassMethod() { - io.grpc.MethodDescriptor getCreateCustomClassMethod; - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getCreateCustomClassMethod = AdaptationGrpc.getCreateCustomClassMethod) == null) { - AdaptationGrpc.getCreateCustomClassMethod = getCreateCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("CreateCustomClass")) - .build(); - } - } - } - return getCreateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomClassMethod() { - io.grpc.MethodDescriptor getGetCustomClassMethod; - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getGetCustomClassMethod = AdaptationGrpc.getGetCustomClassMethod) == null) { - AdaptationGrpc.getGetCustomClassMethod = getGetCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("GetCustomClass")) - .build(); - } - } - } - return getGetCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomClassesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomClasses", - requestType = com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomClassesMethod() { - io.grpc.MethodDescriptor getListCustomClassesMethod; - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getListCustomClassesMethod = AdaptationGrpc.getListCustomClassesMethod) == null) { - AdaptationGrpc.getListCustomClassesMethod = getListCustomClassesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomClasses")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("ListCustomClasses")) - .build(); - } - } - } - return getListCustomClassesMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.CustomClass.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomClassMethod() { - io.grpc.MethodDescriptor getUpdateCustomClassMethod; - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getUpdateCustomClassMethod = AdaptationGrpc.getUpdateCustomClassMethod) == null) { - AdaptationGrpc.getUpdateCustomClassMethod = getUpdateCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("UpdateCustomClass")) - .build(); - } - } - } - return getUpdateCustomClassMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteCustomClassMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteCustomClass", - requestType = com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteCustomClassMethod() { - io.grpc.MethodDescriptor getDeleteCustomClassMethod; - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - synchronized (AdaptationGrpc.class) { - if ((getDeleteCustomClassMethod = AdaptationGrpc.getDeleteCustomClassMethod) == null) { - AdaptationGrpc.getDeleteCustomClassMethod = getDeleteCustomClassMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomClass")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AdaptationMethodDescriptorSupplier("DeleteCustomClass")) - .build(); - } - } - } - return getDeleteCustomClassMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AdaptationStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - }; - return AdaptationStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdaptationBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - }; - return AdaptationBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AdaptationFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdaptationFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - }; - return AdaptationFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static abstract class AdaptationImplBase implements io.grpc.BindableService { - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPhraseSetMethod(), responseObserver); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPhraseSetMethod(), responseObserver); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePhraseSetMethod(), responseObserver); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomClassMethod(), responseObserver); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomClassesMethod(), responseObserver); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomClassMethod(), responseObserver); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomClassMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_CREATE_PHRASE_SET))) - .addMethod( - getGetPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_GET_PHRASE_SET))) - .addMethod( - getListPhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest, - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse>( - this, METHODID_LIST_PHRASE_SET))) - .addMethod( - getUpdatePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest, - com.google.cloud.speech.v1p1beta1.PhraseSet>( - this, METHODID_UPDATE_PHRASE_SET))) - .addMethod( - getDeletePhraseSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_PHRASE_SET))) - .addMethod( - getCreateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_CREATE_CUSTOM_CLASS))) - .addMethod( - getGetCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_GET_CUSTOM_CLASS))) - .addMethod( - getListCustomClassesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest, - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse>( - this, METHODID_LIST_CUSTOM_CLASSES))) - .addMethod( - getUpdateCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest, - com.google.cloud.speech.v1p1beta1.CustomClass>( - this, METHODID_UPDATE_CUSTOM_CLASS))) - .addMethod( - getDeleteCustomClassMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_CUSTOM_CLASS))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationStub extends io.grpc.stub.AbstractAsyncStub { - private AdaptationStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public void createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public void getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public void listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public void updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public void deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public void createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public void getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public void listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public void updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public void deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private AdaptationBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationBlockingStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet createPhraseSet(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse listPhraseSet(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.PhraseSet updatePhraseSet(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.protobuf.Empty deletePhraseSet(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePhraseSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass createCustomClass(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse listCustomClasses(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomClassesMethod(), getCallOptions(), request); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.CustomClass updateCustomClass(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomClassMethod(), getCallOptions(), request); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public com.google.protobuf.Empty deleteCustomClass(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteCustomClassMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech Adaptation API.
-   * 
- */ - public static final class AdaptationFutureStub extends io.grpc.stub.AbstractFutureStub { - private AdaptationFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdaptationFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdaptationFutureStub(channel, callOptions); - } - - /** - *
-     * Create a set of phrase hints. Each item in the set can be a single word or
-     * a multi-word phrase. The items in the PhraseSet are favored by the
-     * recognition model when you send a call that includes the PhraseSet.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createPhraseSet( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getPhraseSet( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * List phrase sets.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listPhraseSet( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updatePhraseSet( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a phrase set.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deletePhraseSet( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePhraseSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomClass( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Get a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomClass( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * List custom classes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomClasses( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomClassesMethod(), getCallOptions()), request); - } - - /** - *
-     * Update a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomClass( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomClassMethod(), getCallOptions()), request); - } - - /** - *
-     * Delete a custom class.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteCustomClass( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteCustomClassMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_PHRASE_SET = 0; - private static final int METHODID_GET_PHRASE_SET = 1; - private static final int METHODID_LIST_PHRASE_SET = 2; - private static final int METHODID_UPDATE_PHRASE_SET = 3; - private static final int METHODID_DELETE_PHRASE_SET = 4; - private static final int METHODID_CREATE_CUSTOM_CLASS = 5; - private static final int METHODID_GET_CUSTOM_CLASS = 6; - private static final int METHODID_LIST_CUSTOM_CLASSES = 7; - private static final int METHODID_UPDATE_CUSTOM_CLASS = 8; - private static final int METHODID_DELETE_CUSTOM_CLASS = 9; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AdaptationImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdaptationImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_PHRASE_SET: - serviceImpl.createPhraseSet((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PHRASE_SET: - serviceImpl.getPhraseSet((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PHRASE_SET: - serviceImpl.listPhraseSet((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PHRASE_SET: - serviceImpl.updatePhraseSet((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PHRASE_SET: - serviceImpl.deletePhraseSet((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_CLASS: - serviceImpl.createCustomClass((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_CLASS: - serviceImpl.getCustomClass((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_CLASSES: - serviceImpl.listCustomClasses((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_CLASS: - serviceImpl.updateCustomClass((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CUSTOM_CLASS: - serviceImpl.deleteCustomClass((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdaptationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Adaptation"); - } - } - - private static final class AdaptationFileDescriptorSupplier - extends AdaptationBaseDescriptorSupplier { - AdaptationFileDescriptorSupplier() {} - } - - private static final class AdaptationMethodDescriptorSupplier - extends AdaptationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdaptationMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AdaptationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdaptationFileDescriptorSupplier()) - .addMethod(getCreatePhraseSetMethod()) - .addMethod(getGetPhraseSetMethod()) - .addMethod(getListPhraseSetMethod()) - .addMethod(getUpdatePhraseSetMethod()) - .addMethod(getDeletePhraseSetMethod()) - .addMethod(getCreateCustomClassMethod()) - .addMethod(getGetCustomClassMethod()) - .addMethod(getListCustomClassesMethod()) - .addMethod(getUpdateCustomClassMethod()) - .addMethod(getDeleteCustomClassMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java b/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java deleted file mode 100644 index 5879fdc44..000000000 --- a/owl-bot-staging/v1p1beta1/grpc-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechGrpc.java +++ /dev/null @@ -1,479 +0,0 @@ -package com.google.cloud.speech.v1p1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service that implements Google Cloud Speech API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/speech/v1p1beta1/cloud_speech.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class SpeechGrpc { - - private SpeechGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.speech.v1p1beta1.Speech"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "Recognize", - requestType = com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRecognizeMethod() { - io.grpc.MethodDescriptor getRecognizeMethod; - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getRecognizeMethod = SpeechGrpc.getRecognizeMethod) == null) { - SpeechGrpc.getRecognizeMethod = getRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Recognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.RecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("Recognize")) - .build(); - } - } - } - return getRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LongRunningRecognize", - requestType = com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLongRunningRecognizeMethod() { - io.grpc.MethodDescriptor getLongRunningRecognizeMethod; - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getLongRunningRecognizeMethod = SpeechGrpc.getLongRunningRecognizeMethod) == null) { - SpeechGrpc.getLongRunningRecognizeMethod = getLongRunningRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LongRunningRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("LongRunningRecognize")) - .build(); - } - } - } - return getLongRunningRecognizeMethod; - } - - private static volatile io.grpc.MethodDescriptor getStreamingRecognizeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StreamingRecognize", - requestType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, - responseType = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - public static io.grpc.MethodDescriptor getStreamingRecognizeMethod() { - io.grpc.MethodDescriptor getStreamingRecognizeMethod; - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - synchronized (SpeechGrpc.class) { - if ((getStreamingRecognizeMethod = SpeechGrpc.getStreamingRecognizeMethod) == null) { - SpeechGrpc.getStreamingRecognizeMethod = getStreamingRecognizeMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamingRecognize")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance())) - .setSchemaDescriptor(new SpeechMethodDescriptorSupplier("StreamingRecognize")) - .build(); - } - } - } - return getStreamingRecognizeMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static SpeechStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - }; - return SpeechStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static SpeechBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - }; - return SpeechBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static SpeechFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public SpeechFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - }; - return SpeechFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static abstract class SpeechImplBase implements io.grpc.BindableService { - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLongRunningRecognizeMethod(), responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamingRecognizeMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.RecognizeRequest, - com.google.cloud.speech.v1p1beta1.RecognizeResponse>( - this, METHODID_RECOGNIZE))) - .addMethod( - getLongRunningRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest, - com.google.longrunning.Operation>( - this, METHODID_LONG_RUNNING_RECOGNIZE))) - .addMethod( - getStreamingRecognizeMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest, - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse>( - this, METHODID_STREAMING_RECOGNIZE))) - .build(); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechStub extends io.grpc.stub.AbstractAsyncStub { - private SpeechStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public void recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public void longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Performs bidirectional streaming speech recognition: receive results while
-     * sending audio. This method is only available via the gRPC API (not REST).
-     * 
- */ - public io.grpc.stub.StreamObserver streamingRecognize( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( - getChannel().newCall(getStreamingRecognizeMethod(), getCallOptions()), responseObserver); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private SpeechBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechBlockingStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.cloud.speech.v1p1beta1.RecognizeResponse recognize(com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRecognizeMethod(), getCallOptions(), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.longrunning.Operation longRunningRecognize(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLongRunningRecognizeMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service that implements Google Cloud Speech API.
-   * 
- */ - public static final class SpeechFutureStub extends io.grpc.stub.AbstractFutureStub { - private SpeechFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected SpeechFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new SpeechFutureStub(channel, callOptions); - } - - /** - *
-     * Performs synchronous speech recognition: receive results after all audio
-     * has been sent and processed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture recognize( - com.google.cloud.speech.v1p1beta1.RecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRecognizeMethod(), getCallOptions()), request); - } - - /** - *
-     * Performs asynchronous speech recognition: receive results via the
-     * google.longrunning.Operations interface. Returns either an
-     * `Operation.error` or an `Operation.response` which contains
-     * a `LongRunningRecognizeResponse` message.
-     * For more information on asynchronous speech recognition, see the
-     * [how-to](https://cloud.google.com/speech-to-text/docs/async-recognize).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture longRunningRecognize( - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLongRunningRecognizeMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RECOGNIZE = 0; - private static final int METHODID_LONG_RUNNING_RECOGNIZE = 1; - private static final int METHODID_STREAMING_RECOGNIZE = 2; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final SpeechImplBase serviceImpl; - private final int methodId; - - MethodHandlers(SpeechImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_RECOGNIZE: - serviceImpl.recognize((com.google.cloud.speech.v1p1beta1.RecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LONG_RUNNING_RECOGNIZE: - serviceImpl.longRunningRecognize((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_STREAMING_RECOGNIZE: - return (io.grpc.stub.StreamObserver) serviceImpl.streamingRecognize( - (io.grpc.stub.StreamObserver) responseObserver); - default: - throw new AssertionError(); - } - } - } - - private static abstract class SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - SpeechBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("Speech"); - } - } - - private static final class SpeechFileDescriptorSupplier - extends SpeechBaseDescriptorSupplier { - SpeechFileDescriptorSupplier() {} - } - - private static final class SpeechMethodDescriptorSupplier - extends SpeechBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - SpeechMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (SpeechGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new SpeechFileDescriptorSupplier()) - .addMethod(getRecognizeMethod()) - .addMethod(getLongRunningRecognizeMethod()) - .addMethod(getStreamingRecognizeMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java deleted file mode 100644 index 246c425ca..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface DeletePhraseSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the phrase set to delete. Format:
-   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java deleted file mode 100644 index 721b97fda..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface GetCustomClassRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the custom class to retrieve. Format:
-   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java deleted file mode 100644 index 2e594dfdd..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public interface RecognizeRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the config field is set. - */ - boolean hasConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The config. - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); - /** - *
-   * Required. Provides information to the recognizer that specifies how to
-   * process the request.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); - - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audio field is set. - */ - boolean hasAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The audio. - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); - /** - *
-   * Required. The audio data to be recognized.
-   * 
- * - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java deleted file mode 100644 index 0322b2c20..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java +++ /dev/null @@ -1,292 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechAdaptationProto { - private SpeechAdaptationProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n;google/cloud/speech/v1p1beta1/cloud_sp" + - "eech_adaptation.proto\022\035google.cloud.spee" + - "ch.v1p1beta1\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032,google/cloud/speech/v1p1beta1/r" + - "esource.proto\032\033google/protobuf/empty.pro" + - "to\032 google/protobuf/field_mask.proto\"\260\001\n" + - "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB" + - "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet" + - "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s" + - "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1" + - ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque" + - "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp" + - "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_" + - "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L" + - "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002" + - "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024" + - "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A" + - "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025" + - "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003" + - "(\0132(.google.cloud.speech.v1p1beta1.Phras" + - "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP" + - "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s" + - "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat" + - "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" + - "\372A#\022!speech.googleapis.com/CustomClass\022\034" + - "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c" + - "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet" + - "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas" + - "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google." + - "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022" + - "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + - "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam" + - "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C" + - "ustomClass\"|\n\030ListCustomClassesRequest\0229" + - "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi" + - "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + - "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes" + - "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c" + - "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR" + - "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo" + - "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326" + - "\001\n\017CreatePhraseSet\0225.google.cloud.speech" + - ".v1p1beta1.CreatePhraseSetRequest\032(.goog" + - "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344" + - "\223\002:\"5/v1p1beta1/{parent=projects/*/locat" + - "ions/*}/phraseSets:\001*\332A\037parent,phrase_se" + - "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl" + - "e.cloud.speech.v1p1beta1.GetPhraseSetReq" + - "uest\032(.google.cloud.speech.v1p1beta1.Phr" + - "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project" + - "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n" + - "\rListPhraseSet\0223.google.cloud.speech.v1p" + - "1beta1.ListPhraseSetRequest\0324.google.clo" + - "ud.speech.v1p1beta1.ListPhraseSetRespons" + - "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*" + - "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up" + - "datePhraseSet\0225.google.cloud.speech.v1p1" + - "beta1.UpdatePhraseSetRequest\032(.google.cl" + - "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@" + - "/v1p1beta1/{phrase_set.name=projects/*/l" + - "ocations/*/phraseSets/*}:\nphrase_set\332A\026p" + - "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe" + - "t\0225.google.cloud.speech.v1p1beta1.Delete" + - "PhraseSetRequest\032\026.google.protobuf.Empty" + - "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo" + - "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat" + - "eCustomClass\0227.google.cloud.speech.v1p1b" + - "eta1.CreateCustomClassRequest\032*.google.c" + - "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002" + - "=\"8/v1p1beta1/{parent=projects/*/locatio" + - "ns/*}/customClasses:\001*\332A#parent,custom_c" + - "lass,custom_class_id\022\273\001\n\016GetCustomClass\022" + - "4.google.cloud.speech.v1p1beta1.GetCusto" + - "mClassRequest\032*.google.cloud.speech.v1p1" + - "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n" + - "ame=projects/*/locations/*/customClasses" + - "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl" + - "e.cloud.speech.v1p1beta1.ListCustomClass" + - "esRequest\0328.google.cloud.speech.v1p1beta" + - "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1" + - "p1beta1/{parent=projects/*/locations/*}/" + - "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC" + - "lass\0227.google.cloud.speech.v1p1beta1.Upd" + - "ateCustomClassRequest\032*.google.cloud.spe" + - "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1" + - "beta1/{custom_class.name=projects/*/loca" + - "tions/*/customClasses/*}:\014custom_class\332A" + - "\030custom_class,update_mask\022\255\001\n\021DeleteCust" + - "omClass\0227.google.cloud.speech.v1p1beta1." + - "DeleteCustomClassRequest\032\026.google.protob" + - "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje" + - "cts/*/locations/*/customClasses/*}\332A\004nam" + - "e\032I\312A\025speech.googleapis.com\322A.https://ww" + - "w.googleapis.com/auth/cloud-platformB\212\001\n" + - "!com.google.cloud.speech.v1p1beta1B\025Spee" + - "chAdaptationProtoP\001ZCgoogle.golang.org/g" + - "enproto/googleapis/cloud/speech/v1p1beta" + - "1;speech\370\001\001\242\002\003GCSb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor, - new java.lang.String[] { "Parent", "PhraseSetId", "PhraseSet", }); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor, - new java.lang.String[] { "PhraseSet", "UpdateMask", }); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor, - new java.lang.String[] { "PhraseSets", "NextPageToken", }); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor, - new java.lang.String[] { "Parent", "CustomClassId", "CustomClass", }); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor, - new java.lang.String[] { "CustomClass", "UpdateMask", }); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor, - new java.lang.String[] { "CustomClasses", "NextPageToken", }); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java deleted file mode 100644 index 914c6bec3..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java +++ /dev/null @@ -1,420 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/cloud_speech.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechProto { - private SpeechProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n0google/cloud/speech/v1p1beta1/cloud_sp" + - "eech.proto\022\035google.cloud.speech.v1p1beta" + - "1\032\034google/api/annotations.proto\032\027google/" + - "api/client.proto\032\037google/api/field_behav" + - "ior.proto\032,google/cloud/speech/v1p1beta1" + - "/resource.proto\032#google/longrunning/oper" + - "ations.proto\032\036google/protobuf/duration.p" + - "roto\032\037google/protobuf/timestamp.proto\032\036g" + - "oogle/protobuf/wrappers.proto\032\027google/rp" + - "c/status.proto\"\236\001\n\020RecognizeRequest\022E\n\006c" + - "onfig\030\001 \001(\01320.google.cloud.speech.v1p1be" + - "ta1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(" + - "\0132/.google.cloud.speech.v1p1beta1.Recogn" + - "itionAudioB\003\340A\002\"\374\001\n\033LongRunningRecognize" + - "Request\022E\n\006config\030\001 \001(\01320.google.cloud.s" + - "peech.v1p1beta1.RecognitionConfigB\003\340A\002\022C" + - "\n\005audio\030\002 \001(\0132/.google.cloud.speech.v1p1" + - "beta1.RecognitionAudioB\003\340A\002\022Q\n\routput_co" + - "nfig\030\004 \001(\01325.google.cloud.speech.v1p1bet" + - "a1.TranscriptOutputConfigB\003\340A\001\":\n\026Transc" + - "riptOutputConfig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013o" + - "utput_type\"\240\001\n\031StreamingRecognizeRequest" + - "\022U\n\020streaming_config\030\001 \001(\01329.google.clou" + - "d.speech.v1p1beta1.StreamingRecognitionC" + - "onfigH\000\022\027\n\raudio_content\030\002 \001(\014H\000B\023\n\021stre" + - "aming_request\"\226\001\n\032StreamingRecognitionCo" + - "nfig\022E\n\006config\030\001 \001(\01320.google.cloud.spee" + - "ch.v1p1beta1.RecognitionConfigB\003\340A\002\022\030\n\020s" + - "ingle_utterance\030\002 \001(\010\022\027\n\017interim_results" + - "\030\003 \001(\010\"\276\t\n\021RecognitionConfig\022P\n\010encoding" + - "\030\001 \001(\0162>.google.cloud.speech.v1p1beta1.R" + - "ecognitionConfig.AudioEncoding\022\031\n\021sample" + - "_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_count" + - "\030\007 \001(\005\022/\n\'enable_separate_recognition_pe" + - "r_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003" + - "\340A\002\022\"\n\032alternative_language_codes\030\022 \003(\t\022" + - "\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanity_f" + - "ilter\030\005 \001(\010\022C\n\nadaptation\030\024 \001(\0132/.google" + - ".cloud.speech.v1p1beta1.SpeechAdaptation" + - "\022X\n\030transcript_normalization\030\030 \001(\01326.goo" + - "gle.cloud.speech.v1p1beta1.TranscriptNor" + - "malization\022E\n\017speech_contexts\030\006 \003(\0132,.go" + - "ogle.cloud.speech.v1p1beta1.SpeechContex" + - "t\022 \n\030enable_word_time_offsets\030\010 \001(\010\022\036\n\026e" + - "nable_word_confidence\030\017 \001(\010\022$\n\034enable_au" + - "tomatic_punctuation\030\013 \001(\010\022=\n\031enable_spok" + - "en_punctuation\030\026 \001(\0132\032.google.protobuf.B" + - "oolValue\0228\n\024enable_spoken_emojis\030\027 \001(\0132\032" + - ".google.protobuf.BoolValue\022&\n\032enable_spe" + - "aker_diarization\030\020 \001(\010B\002\030\001\022%\n\031diarizatio" + - "n_speaker_count\030\021 \001(\005B\002\030\001\022S\n\022diarization" + - "_config\030\023 \001(\01327.google.cloud.speech.v1p1" + - "beta1.SpeakerDiarizationConfig\022D\n\010metada" + - "ta\030\t \001(\01322.google.cloud.speech.v1p1beta1" + - ".RecognitionMetadata\022\r\n\005model\030\r \001(\t\022\024\n\014u" + - "se_enhanced\030\016 \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024E" + - "NCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004F" + - "LAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_WB\020\005\022\014\n" + - "\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_BYTE\020\007\022" + - "\007\n\003MP3\020\010\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiari" + - "zationConfig\022\"\n\032enable_speaker_diarizati" + - "on\030\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021m" + - "ax_speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 " + - "\001(\005B\005\030\001\340A\003\"\333\010\n\023RecognitionMetadata\022\\\n\020in" + - "teraction_type\030\001 \001(\0162B.google.cloud.spee" + - "ch.v1p1beta1.RecognitionMetadata.Interac" + - "tionType\022$\n\034industry_naics_code_of_audio" + - "\030\003 \001(\r\022b\n\023microphone_distance\030\004 \001(\0162E.go" + - "ogle.cloud.speech.v1p1beta1.RecognitionM" + - "etadata.MicrophoneDistance\022a\n\023original_m" + - "edia_type\030\005 \001(\0162D.google.cloud.speech.v1" + - "p1beta1.RecognitionMetadata.OriginalMedi" + - "aType\022e\n\025recording_device_type\030\006 \001(\0162F.g" + - "oogle.cloud.speech.v1p1beta1.Recognition" + - "Metadata.RecordingDeviceType\022\035\n\025recordin" + - "g_device_name\030\007 \001(\t\022\032\n\022original_mime_typ" + - "e\030\010 \001(\t\022\031\n\robfuscated_id\030\t \001(\003B\002\030\001\022\023\n\013au" + - "dio_topic\030\n \001(\t\"\305\001\n\017InteractionType\022 \n\034I" + - "NTERACTION_TYPE_UNSPECIFIED\020\000\022\016\n\nDISCUSS" + - "ION\020\001\022\020\n\014PRESENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022" + - "\r\n\tVOICEMAIL\020\004\022\033\n\027PROFESSIONALLY_PRODUCE" + - "D\020\005\022\020\n\014VOICE_SEARCH\020\006\022\021\n\rVOICE_COMMAND\020\007" + - "\022\r\n\tDICTATION\020\010\"d\n\022MicrophoneDistance\022#\n" + - "\037MICROPHONE_DISTANCE_UNSPECIFIED\020\000\022\r\n\tNE" + - "ARFIELD\020\001\022\014\n\010MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n" + - "\021OriginalMediaType\022#\n\037ORIGINAL_MEDIA_TYP" + - "E_UNSPECIFIED\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001" + - "\n\023RecordingDeviceType\022%\n!RECORDING_DEVIC" + - "E_TYPE_UNSPECIFIED\020\000\022\016\n\nSMARTPHONE\020\001\022\006\n\002" + - "PC\020\002\022\016\n\nPHONE_LINE\020\003\022\013\n\007VEHICLE\020\004\022\030\n\024OTH" + - "ER_OUTDOOR_DEVICE\020\005\022\027\n\023OTHER_INDOOR_DEVI" + - "CE\020\006:\002\030\001\"/\n\rSpeechContext\022\017\n\007phrases\030\001 \003" + - "(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020RecognitionAudio\022\021\n" + - "\007content\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio" + - "_source\"\222\001\n\021RecognizeResponse\022G\n\007results" + - "\030\002 \003(\01326.google.cloud.speech.v1p1beta1.S" + - "peechRecognitionResult\0224\n\021total_billed_t" + - "ime\030\003 \001(\0132\031.google.protobuf.Duration\"\225\002\n" + - "\034LongRunningRecognizeResponse\022G\n\007results" + - "\030\002 \003(\01326.google.cloud.speech.v1p1beta1.S" + - "peechRecognitionResult\0224\n\021total_billed_t" + - "ime\030\003 \001(\0132\031.google.protobuf.Duration\022L\n\r" + - "output_config\030\006 \001(\01325.google.cloud.speec" + - "h.v1p1beta1.TranscriptOutputConfig\022(\n\014ou" + - "tput_error\030\007 \001(\0132\022.google.rpc.Status\"\203\002\n" + - "\034LongRunningRecognizeMetadata\022\030\n\020progres" + - "s_percent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\0224\n\020last_update_t" + - "ime\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n" + - "\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_config\030\005 \001(\01325" + - ".google.cloud.speech.v1p1beta1.Transcrip" + - "tOutputConfigB\003\340A\003\"\365\002\n\032StreamingRecogniz" + - "eResponse\022!\n\005error\030\001 \001(\0132\022.google.rpc.St" + - "atus\022J\n\007results\030\002 \003(\01329.google.cloud.spe" + - "ech.v1p1beta1.StreamingRecognitionResult" + - "\022d\n\021speech_event_type\030\004 \001(\0162I.google.clo" + - "ud.speech.v1p1beta1.StreamingRecognizeRe" + - "sponse.SpeechEventType\0224\n\021total_billed_t" + - "ime\030\005 \001(\0132\031.google.protobuf.Duration\"L\n\017" + - "SpeechEventType\022\034\n\030SPEECH_EVENT_UNSPECIF" + - "IED\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032S" + - "treamingRecognitionResult\022Q\n\014alternative" + - "s\030\001 \003(\0132;.google.cloud.speech.v1p1beta1." + - "SpeechRecognitionAlternative\022\020\n\010is_final" + - "\030\002 \001(\010\022\021\n\tstability\030\003 \001(\002\0222\n\017result_end_" + - "time\030\004 \001(\0132\031.google.protobuf.Duration\022\023\n" + - "\013channel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(" + - "\tB\003\340A\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014al" + - "ternatives\030\001 \003(\0132;.google.cloud.speech.v" + - "1p1beta1.SpeechRecognitionAlternative\022\023\n" + - "\013channel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 " + - "\001(\0132\031.google.protobuf.Duration\022\032\n\rlangua" + - "ge_code\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionA" + - "lternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfid" + - "ence\030\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud" + - ".speech.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022" + - "-\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Du" + - "ration\022+\n\010end_time\030\002 \001(\0132\031.google.protob" + - "uf.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030" + - "\004 \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Spee" + - "ch\022\245\001\n\tRecognize\022/.google.cloud.speech.v" + - "1p1beta1.RecognizeRequest\0320.google.cloud" + - ".speech.v1p1beta1.RecognizeResponse\"5\202\323\344" + - "\223\002 \"\033/v1p1beta1/speech:recognize:\001*\332A\014co" + - "nfig,audio\022\362\001\n\024LongRunningRecognize\022:.go" + - "ogle.cloud.speech.v1p1beta1.LongRunningR" + - "ecognizeRequest\032\035.google.longrunning.Ope" + - "ration\"\177\202\323\344\223\002+\"&/v1p1beta1/speech:longru" + - "nningrecognize:\001*\332A\014config,audio\312A<\n\034Lon" + - "gRunningRecognizeResponse\022\034LongRunningRe" + - "cognizeMetadata\022\217\001\n\022StreamingRecognize\0228" + - ".google.cloud.speech.v1p1beta1.Streaming" + - "RecognizeRequest\0329.google.cloud.speech.v" + - "1p1beta1.StreamingRecognizeResponse\"\000(\0010" + - "\001\032I\312A\025speech.googleapis.com\322A.https://ww" + - "w.googleapis.com/auth/cloud-platformB\200\001\n" + - "!com.google.cloud.speech.v1p1beta1B\013Spee" + - "chProtoP\001ZCgoogle.golang.org/genproto/go" + - "ogleapis/cloud/speech/v1p1beta1;speech\370\001" + - "\001\242\002\003GCSb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, - new java.lang.String[] { "Config", "Audio", }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, - new java.lang.String[] { "Config", "Audio", "OutputConfig", }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, - new java.lang.String[] { "GcsUri", "OutputType", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, - new java.lang.String[] { "StreamingConfig", "AudioContent", "StreamingRequest", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, - new java.lang.String[] { "Config", "SingleUtterance", "InterimResults", }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, - new java.lang.String[] { "Encoding", "SampleRateHertz", "AudioChannelCount", "EnableSeparateRecognitionPerChannel", "LanguageCode", "AlternativeLanguageCodes", "MaxAlternatives", "ProfanityFilter", "Adaptation", "TranscriptNormalization", "SpeechContexts", "EnableWordTimeOffsets", "EnableWordConfidence", "EnableAutomaticPunctuation", "EnableSpokenPunctuation", "EnableSpokenEmojis", "EnableSpeakerDiarization", "DiarizationSpeakerCount", "DiarizationConfig", "Metadata", "Model", "UseEnhanced", }); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, - new java.lang.String[] { "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, - new java.lang.String[] { "InteractionType", "IndustryNaicsCodeOfAudio", "MicrophoneDistance", "OriginalMediaType", "RecordingDeviceType", "RecordingDeviceName", "OriginalMimeType", "ObfuscatedId", "AudioTopic", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, - new java.lang.String[] { "Phrases", "Boost", }); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, - new java.lang.String[] { "Content", "Uri", "AudioSource", }); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, - new java.lang.String[] { "Results", "TotalBilledTime", }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, - new java.lang.String[] { "Results", "TotalBilledTime", "OutputConfig", "OutputError", }); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, - new java.lang.String[] { "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, - new java.lang.String[] { "Error", "Results", "SpeechEventType", "TotalBilledTime", }); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, - new java.lang.String[] { "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, - new java.lang.String[] { "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, - new java.lang.String[] { "Transcript", "Confidence", "Words", }); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, - new java.lang.String[] { "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.longrunning.OperationsProto.operationInfo); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java deleted file mode 100644 index 64362624d..000000000 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java +++ /dev/null @@ -1,148 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/speech/v1p1beta1/resource.proto - -package com.google.cloud.speech.v1p1beta1; - -public final class SpeechResourceProto { - private SpeechResourceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n,google/cloud/speech/v1p1beta1/resource" + - ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" + - "oogle/api/resource.proto\"\203\002\n\013CustomClass" + - "\022\014\n\004name\030\001 \001(\t\022\027\n\017custom_class_id\030\002 \001(\t\022" + - "C\n\005items\030\003 \003(\01324.google.cloud.speech.v1p" + - "1beta1.CustomClass.ClassItem\032\032\n\tClassIte" + - "m\022\r\n\005value\030\001 \001(\t:l\352Ai\n!speech.googleapis" + - ".com/CustomClass\022Dprojects/{project}/loc" + - "ations/{location}/customClasses/{custom_" + - "class}\"\371\001\n\tPhraseSet\022\014\n\004name\030\001 \001(\t\022@\n\007ph" + - "rases\030\002 \003(\0132/.google.cloud.speech.v1p1be" + - "ta1.PhraseSet.Phrase\022\r\n\005boost\030\004 \001(\002\032&\n\006P" + - "hrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab" + - "\n\037speech.googleapis.com/PhraseSet\022?proje" + - "cts/{project}/locations/{location}/phras" + - "eSets/{phrase_set}\"\332\001\n\020SpeechAdaptation\022" + - "=\n\013phrase_sets\030\001 \003(\0132(.google.cloud.spee" + - "ch.v1p1beta1.PhraseSet\022C\n\025phrase_set_ref" + - "erences\030\002 \003(\tB$\372A!\n\037speech.googleapis.co" + - "m/PhraseSet\022B\n\016custom_classes\030\003 \003(\0132*.go" + - "ogle.cloud.speech.v1p1beta1.CustomClass\"" + - "\252\001\n\027TranscriptNormalization\022M\n\007entries\030\001" + - " \003(\0132<.google.cloud.speech.v1p1beta1.Tra" + - "nscriptNormalization.Entry\032@\n\005Entry\022\016\n\006s" + - "earch\030\001 \001(\t\022\017\n\007replace\030\002 \001(\t\022\026\n\016case_sen" + - "sitive\030\003 \001(\010B\210\001\n!com.google.cloud.speech" + - ".v1p1beta1B\023SpeechResourceProtoP\001ZCgoogl" + - "e.golang.org/genproto/googleapis/cloud/s" + - "peech/v1p1beta1;speech\370\001\001\242\002\003GCSb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, - new java.lang.String[] { "Name", "CustomClassId", "Items", }); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = - internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, - new java.lang.String[] { "Name", "Phrases", "Boost", }); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, - new java.lang.String[] { "Value", "Boost", }); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, - new java.lang.String[] { "PhraseSets", "PhraseSetReferences", "CustomClasses", }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, - new java.lang.String[] { "Entries", }); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, - new java.lang.String[] { "Search", "Replace", "CaseSensitive", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java index 9484bfd6c..14edd0a70 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `CreateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.CreateCustomClassRequest} */ -public final class CreateCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CreateCustomClassRequest) CreateCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateCustomClassRequest.newBuilder() to construct. private CreateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateCustomClassRequest() { parent_ = ""; customClassId_ = ""; @@ -26,16 +44,15 @@ private CreateCustomClassRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - customClassId_ = s; - break; - } - case 26: { - com.google.cloud.speech.v1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); + parent_ = s; + break; } - customClass_ = input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + customClassId_ = s; + break; } + case 26: + { + com.google.cloud.speech.v1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,29 +115,33 @@ private CreateCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CreateCustomClassRequest.class, com.google.cloud.speech.v1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.CreateCustomClassRequest.class, + com.google.cloud.speech.v1.CreateCustomClassRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -126,7 +152,10 @@ private CreateCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -135,14 +164,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -153,17 +183,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -174,6 +205,8 @@ public java.lang.String getParent() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -182,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ @java.lang.Override @@ -190,14 +224,15 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -206,16 +241,15 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -226,11 +260,16 @@ public java.lang.String getCustomClassId() { public static final int CUSTOM_CLASS_FIELD_NUMBER = 3; private com.google.cloud.speech.v1.CustomClass customClass_; /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCustomClass()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomClass()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.CreateCustomClassRequest other = (com.google.cloud.speech.v1.CreateCustomClassRequest) obj; + com.google.cloud.speech.v1.CreateCustomClassRequest other = + (com.google.cloud.speech.v1.CreateCustomClassRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +399,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CreateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.CreateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `CreateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.CreateCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CreateCustomClassRequest) com.google.cloud.speech.v1.CreateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CreateCustomClassRequest.class, com.google.cloud.speech.v1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.CreateCustomClassRequest.class, + com.google.cloud.speech.v1.CreateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.CreateCustomClassRequest.newBuilder() @@ -470,16 +526,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor; } @java.lang.Override @@ -518,7 +573,8 @@ public com.google.cloud.speech.v1.CreateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1.CreateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1.CreateCustomClassRequest result = new com.google.cloud.speech.v1.CreateCustomClassRequest(this); + com.google.cloud.speech.v1.CreateCustomClassRequest result = + new com.google.cloud.speech.v1.CreateCustomClassRequest(this); result.parent_ = parent_; result.customClassId_ = customClassId_; if (customClassBuilder_ == null) { @@ -534,38 +590,39 @@ public com.google.cloud.speech.v1.CreateCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.CreateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1.CreateCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1.CreateCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +630,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.CreateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1.CreateCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.CreateCustomClassRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +662,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.CreateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.CreateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,6 +675,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -626,14 +687,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -642,6 +705,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -652,16 +717,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -669,6 +735,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -679,21 +747,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -704,16 +776,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -724,17 +801,19 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -742,6 +821,8 @@ public Builder setParentBytes( private java.lang.Object customClassId_ = ""; /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -750,13 +831,13 @@ public Builder setParentBytes(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -765,6 +846,8 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -773,15 +856,14 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -789,6 +871,8 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -797,20 +881,22 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -819,15 +905,18 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -836,16 +925,16 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; @@ -853,39 +942,58 @@ public Builder setCustomClassIdBytes( private com.google.cloud.speech.v1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> customClassBuilder_; + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder> + customClassBuilder_; /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) { if (customClassBuilder_ == null) { @@ -901,14 +1009,17 @@ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) { return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCustomClass( - com.google.cloud.speech.v1.CustomClass.Builder builderForValue) { + public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); onChanged(); @@ -919,17 +1030,23 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.CustomClass.newBuilder(customClass_) + .mergeFrom(value) + .buildPartial(); } else { customClass_ = value; } @@ -941,11 +1058,15 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) { return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -959,55 +1080,71 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1017,12 +1154,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.CreateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.CreateCustomClassRequest) private static final com.google.cloud.speech.v1.CreateCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.CreateCustomClassRequest(); } @@ -1031,16 +1168,16 @@ public static com.google.cloud.speech.v1.CreateCustomClassRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1192,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java index f9dbb4e97..14ccf162c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreateCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface CreateCustomClassRequestOrBuilder extends +public interface CreateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -18,11 +36,16 @@ public interface CreateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -33,13 +56,17 @@ public interface CreateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -48,10 +75,13 @@ public interface CreateCustomClassRequestOrBuilder extends
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -60,35 +90,49 @@ public interface CreateCustomClassRequestOrBuilder extends
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v1.CustomClass getCustomClass(); /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java index 04813cef2..c04029dba 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `CreatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.CreatePhraseSetRequest} */ -public final class CreatePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CreatePhraseSetRequest) CreatePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatePhraseSetRequest.newBuilder() to construct. private CreatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreatePhraseSetRequest() { parent_ = ""; phraseSetId_ = ""; @@ -26,16 +44,15 @@ private CreatePhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreatePhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - phraseSetId_ = s; - break; - } - case 26: { - com.google.cloud.speech.v1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); + parent_ = s; + break; } - phraseSet_ = input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + phraseSetId_ = s; + break; } + case 26: + { + com.google.cloud.speech.v1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,29 +115,33 @@ private CreatePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.CreatePhraseSetRequest.class, + com.google.cloud.speech.v1.CreatePhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -126,7 +152,10 @@ private CreatePhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -135,14 +164,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -153,17 +183,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -174,6 +205,8 @@ public java.lang.String getParent() { public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object phraseSetId_; /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -182,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ @java.lang.Override @@ -190,14 +224,15 @@ public java.lang.String getPhraseSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -206,16 +241,15 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phraseSetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhraseSetIdBytes() { + public com.google.protobuf.ByteString getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -226,11 +260,16 @@ public java.lang.String getPhraseSetId() { public static final int PHRASE_SET_FIELD_NUMBER = 3; private com.google.cloud.speech.v1.PhraseSet phraseSet_; /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phraseSetId_); } if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPhraseSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.CreatePhraseSetRequest other = (com.google.cloud.speech.v1.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v1.CreatePhraseSetRequest other = + (com.google.cloud.speech.v1.CreatePhraseSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPhraseSetId() - .equals(other.getPhraseSetId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +399,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CreatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.CreatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `CreatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.CreatePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CreatePhraseSetRequest) com.google.cloud.speech.v1.CreatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.CreatePhraseSetRequest.class, + com.google.cloud.speech.v1.CreatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.CreatePhraseSetRequest.newBuilder() @@ -470,16 +526,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +552,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor; } @java.lang.Override @@ -518,7 +573,8 @@ public com.google.cloud.speech.v1.CreatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.CreatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1.CreatePhraseSetRequest(this); + com.google.cloud.speech.v1.CreatePhraseSetRequest result = + new com.google.cloud.speech.v1.CreatePhraseSetRequest(this); result.parent_ = parent_; result.phraseSetId_ = phraseSetId_; if (phraseSetBuilder_ == null) { @@ -534,38 +590,39 @@ public com.google.cloud.speech.v1.CreatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.CreatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.CreatePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1.CreatePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +630,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.CreatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1.CreatePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.CreatePhraseSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +662,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.CreatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.CreatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,6 +675,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -626,14 +687,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -642,6 +705,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -652,16 +717,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -669,6 +735,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -679,21 +747,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -704,16 +776,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -724,17 +801,19 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -742,6 +821,8 @@ public Builder setParentBytes( private java.lang.Object phraseSetId_ = ""; /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -750,13 +831,13 @@ public Builder setParentBytes(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ public java.lang.String getPhraseSetId() { java.lang.Object ref = phraseSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; @@ -765,6 +846,8 @@ public java.lang.String getPhraseSetId() { } } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -773,15 +856,14 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phraseSetId. */ - public com.google.protobuf.ByteString - getPhraseSetIdBytes() { + public com.google.protobuf.ByteString getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -789,6 +871,8 @@ public java.lang.String getPhraseSetId() { } } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -797,20 +881,22 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId( - java.lang.String value) { + public Builder setPhraseSetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phraseSetId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -819,15 +905,18 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { - + phraseSetId_ = getDefaultInstance().getPhraseSetId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -836,16 +925,16 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phraseSetId_ = value; onChanged(); return this; @@ -853,39 +942,58 @@ public Builder setPhraseSetIdBytes( private com.google.cloud.speech.v1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetBuilder_; + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder> + phraseSetBuilder_; /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -901,14 +1009,17 @@ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPhraseSet( - com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); onChanged(); @@ -919,17 +1030,23 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.PhraseSet.newBuilder(phraseSet_) + .mergeFrom(value) + .buildPartial(); } else { phraseSet_ = value; } @@ -941,11 +1058,15 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -959,55 +1080,71 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1017,12 +1154,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.CreatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.CreatePhraseSetRequest) private static final com.google.cloud.speech.v1.CreatePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.CreatePhraseSetRequest(); } @@ -1031,16 +1168,16 @@ public static com.google.cloud.speech.v1.CreatePhraseSetRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1192,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java index 913da08c2..f8fffaec1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CreatePhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface CreatePhraseSetRequestOrBuilder extends +public interface CreatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -18,11 +36,16 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -33,13 +56,17 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -48,10 +75,13 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ java.lang.String getPhraseSetId(); /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -60,35 +90,49 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phraseSetId. */ - com.google.protobuf.ByteString - getPhraseSetIdBytes(); + com.google.protobuf.ByteString getPhraseSetIdBytes(); /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v1.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java index bcbf30da2..f5f4d764d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClass.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** + * + * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.CustomClass}
  */
-public final class CustomClass extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass)
     CustomClassOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -29,16 +47,15 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,34 +75,40 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            customClassId_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              items_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              customClassId_ = s;
+              break;
             }
-            items_.add(
-                input.readMessage(com.google.cloud.speech.v1.CustomClass.ClassItem.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                items_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              items_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.CustomClass.ClassItem.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,8 +116,7 @@ private CustomClass(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -103,75 +125,86 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1.CustomClass.class,
+            com.google.cloud.speech.v1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder extends
+  public interface ClassItemOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class ClassItem extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -190,19 +223,20 @@ private ClassItem( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -210,34 +244,39 @@ private ClassItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -246,29 +285,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -277,6 +316,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +328,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -313,15 +352,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1.CustomClass.ClassItem other = (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1.CustomClass.ClassItem other = + (com.google.cloud.speech.v1.CustomClass.ClassItem) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -341,87 +380,93 @@ public int hashCode() { } public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.CustomClass.ClassItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CustomClass.ClassItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.CustomClass.ClassItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -431,27 +476,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1.CustomClass.ClassItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass.ClassItem) com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.CustomClass.ClassItem.class, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1.CustomClass.ClassItem.newBuilder() @@ -459,16 +509,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +527,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; } @java.lang.Override @@ -499,7 +548,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1.CustomClass.ClassItem result = new com.google.cloud.speech.v1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -509,38 +559,41 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem)other); + return mergeFrom((com.google.cloud.speech.v1.CustomClass.ClassItem) other); } else { super.mergeFrom(other); return this; @@ -548,7 +601,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()) + return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -572,7 +626,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -584,18 +639,20 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -604,20 +661,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -625,58 +683,66 @@ public java.lang.String getValue() { } } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -689,12 +755,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.CustomClass.ClassItem) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.CustomClass.ClassItem) private static final com.google.cloud.speech.v1.CustomClass.ClassItem DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.CustomClass.ClassItem(); } @@ -703,16 +769,16 @@ public static com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -727,17 +793,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -746,29 +814,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -779,12 +847,15 @@ public java.lang.String getName() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ @java.lang.Override @@ -793,30 +864,30 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -827,6 +898,8 @@ public java.lang.String getCustomClassId() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -838,6 +911,8 @@ public java.util.List getItems return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -845,11 +920,13 @@ public java.util.List getItems * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -861,6 +938,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -872,6 +951,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -879,12 +960,12 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ @java.lang.Override - public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index) { + public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { return items_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -896,8 +977,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -923,8 +1003,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -934,19 +1013,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.CustomClass)) { return super.equals(obj); } com.google.cloud.speech.v1.CustomClass other = (com.google.cloud.speech.v1.CustomClass) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -971,97 +1047,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.CustomClass parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.CustomClass parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CustomClass parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.CustomClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CustomClass parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.CustomClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.CustomClass parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.CustomClass parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CustomClass parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.CustomClass parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CustomClass parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.CustomClass parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.CustomClass parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.CustomClass prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A set of words or phrases that represents a common concept likely to appear
    * in your audio, for example a list of passenger ship names. CustomClass items
@@ -1070,21 +1153,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.CustomClass}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.CustomClass)
       com.google.cloud.speech.v1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.CustomClass.class, com.google.cloud.speech.v1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1.CustomClass.class,
+              com.google.cloud.speech.v1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.CustomClass.newBuilder()
@@ -1092,17 +1177,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1120,9 +1205,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_CustomClass_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_CustomClass_descriptor;
     }
 
     @java.lang.Override
@@ -1141,7 +1226,8 @@ public com.google.cloud.speech.v1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1.CustomClass result = new com.google.cloud.speech.v1.CustomClass(this);
+      com.google.cloud.speech.v1.CustomClass result =
+          new com.google.cloud.speech.v1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1162,38 +1248,39 @@ public com.google.cloud.speech.v1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1.CustomClass)other);
+        return mergeFrom((com.google.cloud.speech.v1.CustomClass) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1228,9 +1315,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1264,22 +1352,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1288,20 +1379,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1309,54 +1401,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1364,19 +1463,21 @@ public Builder setNameBytes( private java.lang.Object customClassId_ = ""; /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -1385,21 +1486,22 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -1407,75 +1509,88 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> itemsBuilder_; + com.google.cloud.speech.v1.CustomClass.ClassItem, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> + itemsBuilder_; /** + * + * *
      * A collection of class items.
      * 
@@ -1490,6 +1605,8 @@ public java.util.List getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1504,6 +1621,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1518,14 +1637,15 @@ public com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index) { } } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public Builder setItems( - int index, com.google.cloud.speech.v1.CustomClass.ClassItem value) { + public Builder setItems(int index, com.google.cloud.speech.v1.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1539,6 +1659,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1557,6 +1679,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1577,14 +1701,15 @@ public Builder addItems(com.google.cloud.speech.v1.CustomClass.ClassItem value) return this; } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public Builder addItems( - int index, com.google.cloud.speech.v1.CustomClass.ClassItem value) { + public Builder addItems(int index, com.google.cloud.speech.v1.CustomClass.ClassItem value) { if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1598,6 +1723,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1616,6 +1743,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1634,6 +1763,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1644,8 +1775,7 @@ public Builder addAllItems( java.lang.Iterable values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -1653,6 +1783,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1670,6 +1802,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1687,39 +1821,44 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder getItemsBuilder( - int index) { + public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder getItemsBuilder(int index) { return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index) { + public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index) { if (itemsBuilder_ == null) { - return items_.get(index); } else { + return items_.get(index); + } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -1727,6 +1866,8 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild } } /** + * + * *
      * A collection of class items.
      * 
@@ -1734,49 +1875,55 @@ public com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuild * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder(com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); + public com.google.cloud.speech.v1.CustomClass.ClassItem.Builder addItemsBuilder(int index) { + return getItemsFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1.CustomClass.ClassItem, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass.ClassItem, com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass.ClassItem, + com.google.cloud.speech.v1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1786,12 +1933,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.CustomClass) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.CustomClass) private static final com.google.cloud.speech.v1.CustomClass DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.CustomClass(); } @@ -1800,16 +1947,16 @@ public static com.google.cloud.speech.v1.CustomClass getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1824,6 +1971,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java index d22bd6cc0..a32a11ff4 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/CustomClassOrBuilder.java @@ -1,64 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface CustomClassOrBuilder extends +public interface CustomClassOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.CustomClass) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * A collection of class items.
    * 
@@ -67,6 +96,8 @@ public interface CustomClassOrBuilder extends */ com.google.cloud.speech.v1.CustomClass.ClassItem getItems(int index); /** + * + * *
    * A collection of class items.
    * 
@@ -75,21 +106,24 @@ public interface CustomClassOrBuilder extends */ int getItemsCount(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java index f07ccb28d..553b01385 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `DeleteCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.DeleteCustomClassRequest} */ -public final class DeleteCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.DeleteCustomClassRequest) DeleteCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteCustomClassRequest.newBuilder() to construct. private DeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private DeleteCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.DeleteCustomClassRequest.class, + com.google.cloud.speech.v1.DeleteCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -106,7 +128,10 @@ private DeleteCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -115,14 +140,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -133,17 +159,18 @@ public java.lang.String getName() {
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -152,6 +179,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -188,15 +215,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.DeleteCustomClassRequest other = (com.google.cloud.speech.v1.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v1.DeleteCustomClassRequest other = + (com.google.cloud.speech.v1.DeleteCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -216,117 +243,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.DeleteCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.DeleteCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `DeleteCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.DeleteCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.DeleteCustomClassRequest) com.google.cloud.speech.v1.DeleteCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.DeleteCustomClassRequest.class, + com.google.cloud.speech.v1.DeleteCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.DeleteCustomClassRequest.newBuilder() @@ -334,16 +370,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor; } @java.lang.Override @@ -374,7 +409,8 @@ public com.google.cloud.speech.v1.DeleteCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1.DeleteCustomClassRequest buildPartial() { - com.google.cloud.speech.v1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1.DeleteCustomClassRequest(this); + com.google.cloud.speech.v1.DeleteCustomClassRequest result = + new com.google.cloud.speech.v1.DeleteCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -384,38 +420,39 @@ public com.google.cloud.speech.v1.DeleteCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.DeleteCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1.DeleteCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1.DeleteCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -423,7 +460,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.DeleteCustomClassRequest other) { - if (other == com.google.cloud.speech.v1.DeleteCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.DeleteCustomClassRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -447,7 +485,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.DeleteCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.DeleteCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -459,6 +498,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -469,14 +510,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -485,6 +528,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -495,16 +540,17 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -512,6 +558,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -522,21 +570,25 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -547,16 +599,21 @@ public Builder setName(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -567,24 +624,26 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +653,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.DeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.DeleteCustomClassRequest) private static final com.google.cloud.speech.v1.DeleteCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.DeleteCustomClassRequest(); } @@ -608,16 +667,16 @@ public static com.google.cloud.speech.v1.DeleteCustomClassRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,6 +691,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java index a534c8411..9fdb35391 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeleteCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface DeleteCustomClassRequestOrBuilder extends +public interface DeleteCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -18,11 +36,16 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -33,9 +56,11 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java index c16d6b374..cb7ba1e7e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `DeletePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.DeletePhraseSetRequest} */ -public final class DeletePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.DeletePhraseSetRequest) DeletePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePhraseSetRequest.newBuilder() to construct. private DeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeletePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeletePhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeletePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.DeletePhraseSetRequest.class, + com.google.cloud.speech.v1.DeletePhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.DeletePhraseSetRequest other = (com.google.cloud.speech.v1.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v1.DeletePhraseSetRequest other = + (com.google.cloud.speech.v1.DeletePhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.DeletePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.DeletePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `DeletePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.DeletePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.DeletePhraseSetRequest) com.google.cloud.speech.v1.DeletePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.DeletePhraseSetRequest.class, + com.google.cloud.speech.v1.DeletePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.DeletePhraseSetRequest.newBuilder() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.speech.v1.DeletePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.DeletePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1.DeletePhraseSetRequest(this); + com.google.cloud.speech.v1.DeletePhraseSetRequest result = + new com.google.cloud.speech.v1.DeletePhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.speech.v1.DeletePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.DeletePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.DeletePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1.DeletePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.DeletePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1.DeletePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.DeletePhraseSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +475,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.DeletePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.DeletePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +488,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +513,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +538,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +618,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.DeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.DeletePhraseSetRequest) private static final com.google.cloud.speech.v1.DeletePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.DeletePhraseSetRequest(); } @@ -573,16 +632,16 @@ public static com.google.cloud.speech.v1.DeletePhraseSetRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeletePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +656,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000..acfe28df3 --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/DeletePhraseSetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1; + +public interface DeletePhraseSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.DeletePhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java index d9a29a78b..bd859ff09 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `GetCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.GetCustomClassRequest} */ -public final class GetCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.GetCustomClassRequest) GetCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetCustomClassRequest.newBuilder() to construct. private GetCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.GetCustomClassRequest.class, com.google.cloud.speech.v1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.GetCustomClassRequest.class, + com.google.cloud.speech.v1.GetCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.GetCustomClassRequest other = (com.google.cloud.speech.v1.GetCustomClassRequest) obj; + com.google.cloud.speech.v1.GetCustomClassRequest other = + (com.google.cloud.speech.v1.GetCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,118 +232,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.GetCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.GetCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.GetCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `GetCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.GetCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.GetCustomClassRequest) com.google.cloud.speech.v1.GetCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.GetCustomClassRequest.class, com.google.cloud.speech.v1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.GetCustomClassRequest.class, + com.google.cloud.speech.v1.GetCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.GetCustomClassRequest.newBuilder() @@ -324,16 +360,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +378,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor; } @java.lang.Override @@ -364,7 +399,8 @@ public com.google.cloud.speech.v1.GetCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1.GetCustomClassRequest buildPartial() { - com.google.cloud.speech.v1.GetCustomClassRequest result = new com.google.cloud.speech.v1.GetCustomClassRequest(this); + com.google.cloud.speech.v1.GetCustomClassRequest result = + new com.google.cloud.speech.v1.GetCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +410,39 @@ public com.google.cloud.speech.v1.GetCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.GetCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1.GetCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1.GetCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +450,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.GetCustomClassRequest other) { - if (other == com.google.cloud.speech.v1.GetCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.GetCustomClassRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -449,19 +487,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +512,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +537,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +617,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.GetCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.GetCustomClassRequest) private static final com.google.cloud.speech.v1.GetCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.GetCustomClassRequest(); } @@ -573,16 +631,16 @@ public static com.google.cloud.speech.v1.GetCustomClassRequest getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +655,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000..73e1fc4cc --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetCustomClassRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1; + +public interface GetCustomClassRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java index b38cf58c7..f3a898271 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `GetPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.GetPhraseSetRequest} */ -public final class GetPhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.GetPhraseSetRequest) GetPhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPhraseSetRequest.newBuilder() to construct. private GetPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetPhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetPhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.GetPhraseSetRequest.class, com.google.cloud.speech.v1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.GetPhraseSetRequest.class, + com.google.cloud.speech.v1.GetPhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -106,7 +128,10 @@ private GetPhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -115,14 +140,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -133,17 +159,18 @@ public java.lang.String getName() {
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -152,6 +179,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -188,15 +215,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.GetPhraseSetRequest other = (com.google.cloud.speech.v1.GetPhraseSetRequest) obj; + com.google.cloud.speech.v1.GetPhraseSetRequest other = + (com.google.cloud.speech.v1.GetPhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -215,118 +242,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.GetPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.GetPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `GetPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.GetPhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.GetPhraseSetRequest) com.google.cloud.speech.v1.GetPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.GetPhraseSetRequest.class, com.google.cloud.speech.v1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.GetPhraseSetRequest.class, + com.google.cloud.speech.v1.GetPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.GetPhraseSetRequest.newBuilder() @@ -334,16 +370,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +388,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor; } @java.lang.Override @@ -374,7 +409,8 @@ public com.google.cloud.speech.v1.GetPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.GetPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.GetPhraseSetRequest result = new com.google.cloud.speech.v1.GetPhraseSetRequest(this); + com.google.cloud.speech.v1.GetPhraseSetRequest result = + new com.google.cloud.speech.v1.GetPhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -384,38 +420,39 @@ public com.google.cloud.speech.v1.GetPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.GetPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.GetPhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1.GetPhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -459,6 +496,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -469,14 +508,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -485,6 +526,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -495,16 +538,17 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -512,6 +556,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -522,21 +568,25 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -547,16 +597,21 @@ public Builder setName(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -567,24 +622,26 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +651,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.GetPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.GetPhraseSetRequest) private static final com.google.cloud.speech.v1.GetPhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.GetPhraseSetRequest(); } @@ -608,16 +665,16 @@ public static com.google.cloud.speech.v1.GetPhraseSetRequest getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,6 +689,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java index a7aa5beac..84f560a79 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/GetPhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface GetPhraseSetRequestOrBuilder extends +public interface GetPhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.GetPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -18,11 +36,16 @@ public interface GetPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -33,9 +56,11 @@ public interface GetPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java index 0ec369dc1..ada0fbdc7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.ListCustomClassesRequest} */ -public final class ListCustomClassesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCustomClassesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.ListCustomClassesRequest) ListCustomClassesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCustomClassesRequest.newBuilder() to construct. private ListCustomClassesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCustomClassesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListCustomClassesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCustomClassesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCustomClassesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListCustomClassesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +104,33 @@ private ListCustomClassesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListCustomClassesRequest.class, com.google.cloud.speech.v1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1.ListCustomClassesRequest.class, + com.google.cloud.speech.v1.ListCustomClassesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -118,7 +141,10 @@ private ListCustomClassesRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -127,14 +153,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -145,17 +172,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,6 +194,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -174,6 +204,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -184,6 +215,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -192,6 +225,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +234,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -216,16 +251,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -234,6 +268,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +280,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,8 +303,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -283,19 +316,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.ListCustomClassesRequest other = (com.google.cloud.speech.v1.ListCustomClassesRequest) obj; + com.google.cloud.speech.v1.ListCustomClassesRequest other = + (com.google.cloud.speech.v1.ListCustomClassesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -319,117 +350,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListCustomClassesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.ListCustomClassesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.ListCustomClassesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.ListCustomClassesRequest) com.google.cloud.speech.v1.ListCustomClassesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListCustomClassesRequest.class, com.google.cloud.speech.v1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1.ListCustomClassesRequest.class, + com.google.cloud.speech.v1.ListCustomClassesRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.ListCustomClassesRequest.newBuilder() @@ -437,16 +477,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor; } @java.lang.Override @@ -481,7 +520,8 @@ public com.google.cloud.speech.v1.ListCustomClassesRequest build() { @java.lang.Override public com.google.cloud.speech.v1.ListCustomClassesRequest buildPartial() { - com.google.cloud.speech.v1.ListCustomClassesRequest result = new com.google.cloud.speech.v1.ListCustomClassesRequest(this); + com.google.cloud.speech.v1.ListCustomClassesRequest result = + new com.google.cloud.speech.v1.ListCustomClassesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -493,38 +533,39 @@ public com.google.cloud.speech.v1.ListCustomClassesRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.ListCustomClassesRequest) { - return mergeFrom((com.google.cloud.speech.v1.ListCustomClassesRequest)other); + return mergeFrom((com.google.cloud.speech.v1.ListCustomClassesRequest) other); } else { super.mergeFrom(other); return this; @@ -532,7 +573,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.ListCustomClassesRequest other) { - if (other == com.google.cloud.speech.v1.ListCustomClassesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.ListCustomClassesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -563,7 +605,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.ListCustomClassesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.ListCustomClassesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -575,6 +618,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -585,14 +630,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -601,6 +648,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -611,16 +660,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -628,6 +678,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -638,21 +690,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -663,16 +719,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -683,24 +744,28 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -709,6 +774,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -716,6 +782,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -724,16 +792,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -742,10 +813,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -753,6 +825,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -761,13 +835,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -776,6 +850,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -784,15 +860,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -800,6 +875,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -808,20 +885,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -830,15 +909,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -847,23 +929,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +955,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.ListCustomClassesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.ListCustomClassesRequest) private static final com.google.cloud.speech.v1.ListCustomClassesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.ListCustomClassesRequest(); } @@ -887,16 +969,16 @@ public static com.google.cloud.speech.v1.ListCustomClassesRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +993,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java index 5e2d443bf..8644a1066 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface ListCustomClassesRequestOrBuilder extends +public interface ListCustomClassesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -18,11 +36,16 @@ public interface ListCustomClassesRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -33,13 +56,17 @@ public interface ListCustomClassesRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -48,11 +75,14 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -61,10 +91,13 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -73,8 +106,8 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java index 702ef6bb2..d1a337045 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message returned to the client by the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.ListCustomClassesResponse} */ -public final class ListCustomClassesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCustomClassesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.ListCustomClassesResponse) ListCustomClassesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCustomClassesResponse.newBuilder() to construct. private ListCustomClassesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCustomClassesResponse() { customClasses_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListCustomClassesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCustomClassesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCustomClassesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListCustomClassesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListCustomClassesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -94,22 +113,27 @@ private ListCustomClassesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListCustomClassesResponse.class, com.google.cloud.speech.v1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1.ListCustomClassesResponse.class, + com.google.cloud.speech.v1.ListCustomClassesResponse.Builder.class); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1; private java.util.List customClasses_; /** + * + * *
    * The custom classes.
    * 
@@ -121,6 +145,8 @@ public java.util.List getCustomClassesLi return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -128,11 +154,13 @@ public java.util.List getCustomClassesLi * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCustomClassesOrBuilderList() { return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -144,6 +172,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The custom classes.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { return customClasses_.get(index); } /** + * + * *
    * The custom classes.
    * 
@@ -162,20 +194,22 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ @java.lang.Override - public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder( - int index) { + public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { return customClasses_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +218,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < customClasses_.size(); i++) { output.writeMessage(1, customClasses_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < customClasses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, customClasses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customClasses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.ListCustomClassesResponse other = (com.google.cloud.speech.v1.ListCustomClassesResponse) obj; + com.google.cloud.speech.v1.ListCustomClassesResponse other = + (com.google.cloud.speech.v1.ListCustomClassesResponse) obj; - if (!getCustomClassesList() - .equals(other.getCustomClassesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getCustomClassesList().equals(other.getCustomClassesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +325,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListCustomClassesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.ListCustomClassesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message returned to the client by the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.ListCustomClassesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.ListCustomClassesResponse) com.google.cloud.speech.v1.ListCustomClassesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListCustomClassesResponse.class, com.google.cloud.speech.v1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1.ListCustomClassesResponse.class, + com.google.cloud.speech.v1.ListCustomClassesResponse.Builder.class); } // Construct using com.google.cloud.speech.v1.ListCustomClassesResponse.newBuilder() @@ -411,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor; } @java.lang.Override @@ -458,7 +499,8 @@ public com.google.cloud.speech.v1.ListCustomClassesResponse build() { @java.lang.Override public com.google.cloud.speech.v1.ListCustomClassesResponse buildPartial() { - com.google.cloud.speech.v1.ListCustomClassesResponse result = new com.google.cloud.speech.v1.ListCustomClassesResponse(this); + com.google.cloud.speech.v1.ListCustomClassesResponse result = + new com.google.cloud.speech.v1.ListCustomClassesResponse(this); int from_bitField0_ = bitField0_; if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +520,39 @@ public com.google.cloud.speech.v1.ListCustomClassesResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.ListCustomClassesResponse) { - return mergeFrom((com.google.cloud.speech.v1.ListCustomClassesResponse)other); + return mergeFrom((com.google.cloud.speech.v1.ListCustomClassesResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.ListCustomClassesResponse other) { - if (other == com.google.cloud.speech.v1.ListCustomClassesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.ListCustomClassesResponse.getDefaultInstance()) + return this; if (customClassesBuilder_ == null) { if (!other.customClasses_.isEmpty()) { if (customClasses_.isEmpty()) { @@ -536,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.ListCustomClassesResponse ot customClassesBuilder_ = null; customClasses_ = other.customClasses_; bitField0_ = (bitField0_ & ~0x00000001); - customClassesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomClassesFieldBuilder() : null; + customClassesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomClassesFieldBuilder() + : null; } else { customClassesBuilder_.addAllMessages(other.customClasses_); } @@ -567,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.ListCustomClassesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.ListCustomClassesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +622,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List customClasses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - customClasses_ = new java.util.ArrayList(customClasses_); + customClasses_ = + new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> customClassesBuilder_; + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder> + customClassesBuilder_; /** + * + * *
      * The custom classes.
      * 
@@ -605,6 +659,8 @@ public java.util.List getCustomClassesLi } } /** + * + * *
      * The custom classes.
      * 
@@ -619,6 +675,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The custom classes.
      * 
@@ -633,14 +691,15 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) { } } /** + * + * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public Builder setCustomClasses( - int index, com.google.cloud.speech.v1.CustomClass value) { + public Builder setCustomClasses(int index, com.google.cloud.speech.v1.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +713,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -672,6 +733,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -692,14 +755,15 @@ public Builder addCustomClasses(com.google.cloud.speech.v1.CustomClass value) { return this; } /** + * + * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public Builder addCustomClasses( - int index, com.google.cloud.speech.v1.CustomClass value) { + public Builder addCustomClasses(int index, com.google.cloud.speech.v1.CustomClass value) { if (customClassesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +777,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -731,6 +797,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -749,6 +817,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -759,8 +829,7 @@ public Builder addAllCustomClasses( java.lang.Iterable values) { if (customClassesBuilder_ == null) { ensureCustomClassesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customClasses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customClasses_); onChanged(); } else { customClassesBuilder_.addAllMessages(values); @@ -768,6 +837,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -785,6 +856,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -802,39 +875,44 @@ public Builder removeCustomClasses(int index) { return this; } /** + * + * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder( - int index) { + public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder(int index) { return getCustomClassesFieldBuilder().getBuilder(index); } /** + * + * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder( - int index) { + public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) { if (customClassesBuilder_ == null) { - return customClasses_.get(index); } else { + return customClasses_.get(index); + } else { return customClassesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesOrBuilderList() { + public java.util.List + getCustomClassesOrBuilderList() { if (customClassesBuilder_ != null) { return customClassesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +920,8 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder } } /** + * + * *
      * The custom classes.
      * 
@@ -849,38 +929,47 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder() { - return getCustomClassesFieldBuilder().addBuilder( - com.google.cloud.speech.v1.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder() + .addBuilder(com.google.cloud.speech.v1.CustomClass.getDefaultInstance()); } /** + * + * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder( - int index) { - return getCustomClassesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1.CustomClass.getDefaultInstance()); + public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(int index) { + return getCustomClassesFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1.CustomClass.getDefaultInstance()); } /** + * + * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesBuilderList() { + public java.util.List + getCustomClassesBuilderList() { return getCustomClassesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder> getCustomClassesFieldBuilder() { if (customClassesBuilder_ == null) { - customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder>( + customClassesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder>( customClasses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,19 +981,21 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1004,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1027,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1101,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.ListCustomClassesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.ListCustomClassesResponse) private static final com.google.cloud.speech.v1.ListCustomClassesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.ListCustomClassesResponse(); } @@ -1016,16 +1115,16 @@ public static com.google.cloud.speech.v1.ListCustomClassesResponse getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1139,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java index 59b5c44f8..187213b4a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListCustomClassesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface ListCustomClassesResponseOrBuilder extends +public interface ListCustomClassesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - java.util.List - getCustomClassesList(); + java.util.List getCustomClassesList(); /** + * + * *
    * The custom classes.
    * 
@@ -25,6 +44,8 @@ public interface ListCustomClassesResponseOrBuilder extends */ com.google.cloud.speech.v1.CustomClass getCustomClasses(int index); /** + * + * *
    * The custom classes.
    * 
@@ -33,43 +54,51 @@ public interface ListCustomClassesResponseOrBuilder extends */ int getCustomClassesCount(); /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder( - int index); + com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java index e574eaab8..06e4098cc 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.ListPhraseSetRequest} */ -public final class ListPhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.ListPhraseSetRequest) ListPhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPhraseSetRequest.newBuilder() to construct. private ListPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPhraseSetRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListPhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListPhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +104,33 @@ private ListPhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListPhraseSetRequest.class, com.google.cloud.speech.v1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.ListPhraseSetRequest.class, + com.google.cloud.speech.v1.ListPhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -118,7 +141,10 @@ private ListPhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -127,14 +153,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -145,17 +172,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,6 +194,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -174,6 +204,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -184,6 +215,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -192,6 +225,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +234,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -216,16 +251,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -234,6 +268,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +280,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,8 +303,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -283,19 +316,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.ListPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.ListPhraseSetRequest other = (com.google.cloud.speech.v1.ListPhraseSetRequest) obj; + com.google.cloud.speech.v1.ListPhraseSetRequest other = + (com.google.cloud.speech.v1.ListPhraseSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -318,118 +349,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.ListPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.ListPhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.ListPhraseSetRequest) com.google.cloud.speech.v1.ListPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListPhraseSetRequest.class, com.google.cloud.speech.v1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.ListPhraseSetRequest.class, + com.google.cloud.speech.v1.ListPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.ListPhraseSetRequest.newBuilder() @@ -437,16 +477,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor; } @java.lang.Override @@ -481,7 +520,8 @@ public com.google.cloud.speech.v1.ListPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.ListPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.ListPhraseSetRequest result = new com.google.cloud.speech.v1.ListPhraseSetRequest(this); + com.google.cloud.speech.v1.ListPhraseSetRequest result = + new com.google.cloud.speech.v1.ListPhraseSetRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -493,38 +533,39 @@ public com.google.cloud.speech.v1.ListPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.ListPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.ListPhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1.ListPhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -532,7 +573,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.ListPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1.ListPhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.ListPhraseSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -575,6 +617,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -585,14 +629,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -601,6 +647,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -611,16 +659,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -628,6 +677,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -638,21 +689,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -663,16 +718,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -683,24 +743,28 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -709,6 +773,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -716,6 +781,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -724,16 +791,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -742,10 +812,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -753,6 +824,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -761,13 +834,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -776,6 +849,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -784,15 +859,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -800,6 +874,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -808,20 +884,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -830,15 +908,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -847,23 +928,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +954,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.ListPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.ListPhraseSetRequest) private static final com.google.cloud.speech.v1.ListPhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.ListPhraseSetRequest(); } @@ -887,16 +968,16 @@ public static com.google.cloud.speech.v1.ListPhraseSetRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +992,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java index 007794345..21e2b44cf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface ListPhraseSetRequestOrBuilder extends +public interface ListPhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.ListPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -18,11 +36,16 @@ public interface ListPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -33,13 +56,17 @@ public interface ListPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -48,11 +75,14 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -61,10 +91,13 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -73,8 +106,8 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java index e03484719..8936d24c9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message returned to the client by the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.ListPhraseSetResponse} */ -public final class ListPhraseSetResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPhraseSetResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.ListPhraseSetResponse) ListPhraseSetResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPhraseSetResponse.newBuilder() to construct. private ListPhraseSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPhraseSetResponse() { phraseSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListPhraseSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPhraseSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPhraseSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,31 @@ private ListPhraseSetResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private ListPhraseSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -94,22 +113,27 @@ private ListPhraseSetResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListPhraseSetResponse.class, com.google.cloud.speech.v1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1.ListPhraseSetResponse.class, + com.google.cloud.speech.v1.ListPhraseSetResponse.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * The phrase set.
    * 
@@ -121,6 +145,8 @@ public java.util.List getPhraseSetsList() return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -128,11 +154,13 @@ public java.util.List getPhraseSetsList() * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -144,6 +172,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The phrase set.
    * 
@@ -155,6 +185,8 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The phrase set.
    * 
@@ -162,20 +194,22 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +218,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +250,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < phraseSets_.size(); i++) { output.writeMessage(1, phraseSets_.get(i)); } @@ -245,8 +279,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < phraseSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, phraseSets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, phraseSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +292,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.ListPhraseSetResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.ListPhraseSetResponse other = (com.google.cloud.speech.v1.ListPhraseSetResponse) obj; + com.google.cloud.speech.v1.ListPhraseSetResponse other = + (com.google.cloud.speech.v1.ListPhraseSetResponse) obj; - if (!getPhraseSetsList() - .equals(other.getPhraseSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,118 +324,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.ListPhraseSetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.ListPhraseSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.ListPhraseSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message returned to the client by the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.ListPhraseSetResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.ListPhraseSetResponse) com.google.cloud.speech.v1.ListPhraseSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.ListPhraseSetResponse.class, com.google.cloud.speech.v1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1.ListPhraseSetResponse.class, + com.google.cloud.speech.v1.ListPhraseSetResponse.Builder.class); } // Construct using com.google.cloud.speech.v1.ListPhraseSetResponse.newBuilder() @@ -411,17 +452,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor; } @java.lang.Override @@ -458,7 +499,8 @@ public com.google.cloud.speech.v1.ListPhraseSetResponse build() { @java.lang.Override public com.google.cloud.speech.v1.ListPhraseSetResponse buildPartial() { - com.google.cloud.speech.v1.ListPhraseSetResponse result = new com.google.cloud.speech.v1.ListPhraseSetResponse(this); + com.google.cloud.speech.v1.ListPhraseSetResponse result = + new com.google.cloud.speech.v1.ListPhraseSetResponse(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +520,39 @@ public com.google.cloud.speech.v1.ListPhraseSetResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.ListPhraseSetResponse) { - return mergeFrom((com.google.cloud.speech.v1.ListPhraseSetResponse)other); + return mergeFrom((com.google.cloud.speech.v1.ListPhraseSetResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.ListPhraseSetResponse other) { - if (other == com.google.cloud.speech.v1.ListPhraseSetResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.ListPhraseSetResponse.getDefaultInstance()) + return this; if (phraseSetsBuilder_ == null) { if (!other.phraseSets_.isEmpty()) { if (phraseSets_.isEmpty()) { @@ -536,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.ListPhraseSetResponse other) phraseSetsBuilder_ = null; phraseSets_ = other.phraseSets_; bitField0_ = (bitField0_ & ~0x00000001); - phraseSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPhraseSetsFieldBuilder() : null; + phraseSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhraseSetsFieldBuilder() + : null; } else { phraseSetsBuilder_.addAllMessages(other.phraseSets_); } @@ -576,21 +621,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * The phrase set.
      * 
@@ -605,6 +657,8 @@ public java.util.List getPhraseSetsList() } } /** + * + * *
      * The phrase set.
      * 
@@ -619,6 +673,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The phrase set.
      * 
@@ -633,14 +689,15 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) { } } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public Builder setPhraseSets( - int index, com.google.cloud.speech.v1.PhraseSet value) { + public Builder setPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +711,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -672,6 +731,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -692,14 +753,15 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets( - int index, com.google.cloud.speech.v1.PhraseSet value) { + public Builder addPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,14 +775,15 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets( - com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { + public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); phraseSets_.add(builderForValue.build()); @@ -731,6 +794,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -749,6 +814,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -759,8 +826,7 @@ public Builder addAllPhraseSets( java.lang.Iterable values) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phraseSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSets_); onChanged(); } else { phraseSetsBuilder_.addAllMessages(values); @@ -768,6 +834,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -785,6 +853,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The phrase set.
      * 
@@ -802,39 +872,44 @@ public Builder removePhraseSets(int index) { return this; } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder( - int index) { + public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder(int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); } else { + return phraseSets_.get(index); + } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +917,8 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( } } /** + * + * *
      * The phrase set.
      * 
@@ -849,42 +926,47 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder().addBuilder( - com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()); + return getPhraseSetsFieldBuilder() + .addBuilder(com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()); } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder( - int index) { - return getPhraseSetsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder(int index) { + return getPhraseSetsFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1.PhraseSet.getDefaultInstance()); } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsBuilderList() { + public java.util.List getPhraseSetsBuilderList() { return getPhraseSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder>( - phraseSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phraseSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder>( + phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phraseSets_ = null; } return phraseSetsBuilder_; @@ -892,19 +974,21 @@ public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +997,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1020,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1094,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.ListPhraseSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.ListPhraseSetResponse) private static final com.google.cloud.speech.v1.ListPhraseSetResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.ListPhraseSetResponse(); } @@ -1016,16 +1108,16 @@ public static com.google.cloud.speech.v1.ListPhraseSetResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java index 8f78e4160..4b06b6250 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/ListPhraseSetResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface ListPhraseSetResponseOrBuilder extends +public interface ListPhraseSetResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.ListPhraseSetResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - java.util.List - getPhraseSetsList(); + java.util.List getPhraseSetsList(); /** + * + * *
    * The phrase set.
    * 
@@ -25,6 +44,8 @@ public interface ListPhraseSetResponseOrBuilder extends */ com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index); /** + * + * *
    * The phrase set.
    * 
@@ -33,43 +54,51 @@ public interface ListPhraseSetResponseOrBuilder extends */ int getPhraseSetsCount(); /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index); + com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LocationName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java index 6dec13323..e41d675f5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,50 +72,55 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            progressPercent_ = input.readInt32();
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
-            }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
+          case 8:
+            {
+              progressPercent_ = input.readInt32();
+              break;
             }
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (lastUpdateTime_ != null) {
-              subBuilder = lastUpdateTime_.toBuilder();
-            }
-            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lastUpdateTime_);
-              lastUpdateTime_ = subBuilder.buildPartial();
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (lastUpdateTime_ != null) {
+                subBuilder = lastUpdateTime_.toBuilder();
+              }
+              lastUpdateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lastUpdateTime_);
+                lastUpdateTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            uri_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              uri_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,35 +128,40 @@ private LongRunningRecognizeMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
+            com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
+   *
+   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -145,11 +172,14 @@ public int getProgressPercent() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -157,11 +187,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ @java.lang.Override @@ -169,6 +202,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -183,11 +218,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp lastUpdateTime_; /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -195,18 +233,25 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } /** + * + * *
    * Time of the most recent processing update.
    * 
@@ -221,12 +266,15 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -235,30 +283,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -267,6 +315,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,8 +327,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -302,16 +350,13 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); @@ -324,27 +369,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1.LongRunningRecognizeMetadata other = + (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -374,96 +416,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.LongRunningRecognizeMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.LongRunningRecognizeMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes the progress of a long-running `LongRunningRecognize` call. It is
    * included in the `metadata` field of the `Operation` returned by the
@@ -472,21 +522,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.class,
+              com.google.cloud.speech.v1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeMetadata.newBuilder()
@@ -494,16 +546,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -527,9 +578,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
@@ -548,7 +599,8 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -569,38 +621,39 @@ public com.google.cloud.speech.v1.LongRunningRecognizeMetadata buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -608,7 +661,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeMetadata other) {
-      if (other == com.google.cloud.speech.v1.LongRunningRecognizeMetadata.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1.LongRunningRecognizeMetadata.getDefaultInstance())
+        return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -641,7 +695,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -651,14 +706,17 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_ ;
+    private int progressPercent_;
     /**
+     *
+     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -666,32 +724,38 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -699,24 +763,33 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -727,6 +800,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -747,14 +822,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -765,6 +841,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -775,7 +853,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -787,6 +865,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -805,6 +885,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -812,11 +894,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -827,11 +911,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Time when the request was received.
      * 
@@ -839,14 +924,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -854,34 +942,47 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -902,14 +1003,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -920,6 +1022,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -930,7 +1034,9 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) + .mergeFrom(value) + .buildPartial(); } else { lastUpdateTime_ = value; } @@ -942,6 +1048,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -960,6 +1068,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -967,11 +1077,13 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -982,11 +1094,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -994,14 +1109,17 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), - getParentForChildren(), - isClean()); + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; @@ -1009,19 +1127,21 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { private java.lang.Object uri_ = ""; /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -1030,21 +1150,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -1052,64 +1173,71 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1119,12 +1247,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.LongRunningRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeMetadata) private static final com.google.cloud.speech.v1.LongRunningRecognizeMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.LongRunningRecognizeMetadata(); } @@ -1133,16 +1261,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1157,6 +1285,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java index ccedbf890..2b8a33c7f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,42 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeMetadataOrBuilder extends +public interface LongRunningRecognizeMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Time when the request was received.
    * 
@@ -46,24 +73,32 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
@@ -73,24 +108,29 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java index 76f44fd6e..b63f76a38 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LongRunningRecognizeRequest() {
-  }
+
+  private LongRunningRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,52 +69,62 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
-            }
-            config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
-            if (audio_ != null) {
-              subBuilder = audio_.toBuilder();
-            }
-            audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(audio_);
-              audio_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null;
+              if (audio_ != null) {
+                subBuilder = audio_.toBuilder();
+              }
+              audio_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(audio_);
+                audio_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,35 +132,42 @@ private LongRunningRecognizeRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
+            com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1.RecognitionConfig config_;
   /**
+   *
+   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -142,25 +175,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -170,11 +214,16 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -182,23 +231,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -208,11 +268,16 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -220,23 +285,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -244,6 +320,7 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +332,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -276,16 +352,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -295,27 +368,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1.LongRunningRecognizeRequest other = + (com.google.cloud.speech.v1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -346,96 +417,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.LongRunningRecognizeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.LongRunningRecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `LongRunningRecognize`
    * method.
@@ -443,21 +522,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeRequest.class,
+              com.google.cloud.speech.v1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeRequest.newBuilder()
@@ -465,16 +546,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -500,9 +580,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -521,7 +601,8 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -545,38 +626,39 @@ public com.google.cloud.speech.v1.LongRunningRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -584,7 +666,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1.LongRunningRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1.LongRunningRecognizeRequest.getDefaultInstance())
+        return this;
       if (other.hasConfig()) {
         mergeConfig(other.getConfig());
       }
@@ -613,7 +696,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -625,42 +709,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1.RecognitionConfig,
+            com.google.cloud.speech.v1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -676,15 +779,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -695,18 +801,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -718,12 +830,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -737,51 +853,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -789,39 +921,58 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -837,14 +988,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAudio( - com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -855,17 +1009,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -877,11 +1037,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -895,48 +1059,64 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; @@ -944,39 +1124,58 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -992,11 +1191,15 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig( com.google.cloud.speech.v1.TranscriptOutputConfig.Builder builderForValue) { @@ -1010,17 +1213,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1032,11 +1241,15 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1050,55 +1263,71 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1108,12 +1337,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.LongRunningRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeRequest) private static final com.google.cloud.speech.v1.LongRunningRecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.LongRunningRecognizeRequest(); } @@ -1122,16 +1351,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1146,6 +1375,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java index fe890f69a..3a4e90c85 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeRequestOrBuilder.java @@ -1,93 +1,151 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeRequestOrBuilder extends +public interface LongRunningRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ boolean hasAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ com.google.cloud.speech.v1.RecognitionAudio getAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java index 4a952b510..7f1ad2415 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -14,31 +31,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,61 +75,72 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 50:
+            {
+              com.google.cloud.speech.v1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (outputError_ != null) {
-              subBuilder = outputError_.toBuilder();
-            }
-            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputError_);
-              outputError_ = subBuilder.buildPartial();
+              break;
             }
+          case 58:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (outputError_ != null) {
+                subBuilder = outputError_.toBuilder();
+              }
+              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputError_);
+                outputError_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -120,8 +148,7 @@ private LongRunningRecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -130,22 +157,27 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
+            com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -158,6 +190,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -166,11 +200,13 @@ public java.util.List getRes
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResultsOrBuilderList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -183,6 +219,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -195,6 +233,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
     return results_.get(index);
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -211,11 +251,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
   public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Duration totalBilledTime_;
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -223,18 +266,25 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -249,11 +299,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -261,18 +314,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Original output config if present in the request.
    * 
@@ -287,11 +347,14 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ @java.lang.Override @@ -299,11 +362,14 @@ public boolean hasOutputError() { return outputError_ != null; } /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ @java.lang.Override @@ -311,6 +377,8 @@ public com.google.rpc.Status getOutputError() { return outputError_ == null ? com.google.rpc.Status.getDefaultInstance() : outputError_; } /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
@@ -323,6 +391,7 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,8 +403,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } @@ -358,20 +426,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -381,29 +445,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1.LongRunningRecognizeResponse other = + (com.google.cloud.speech.v1.LongRunningRecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError() - .equals(other.getOutputError())) return false; + if (!getOutputError().equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -438,96 +499,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -538,21 +607,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.LongRunningRecognizeResponse.class,
+              com.google.cloud.speech.v1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.LongRunningRecognizeResponse.newBuilder()
@@ -560,17 +631,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -602,9 +673,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -623,7 +694,8 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1.LongRunningRecognizeResponse result =
+          new com.google.cloud.speech.v1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -657,38 +729,39 @@ public com.google.cloud.speech.v1.LongRunningRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1.LongRunningRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -696,7 +769,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v1.LongRunningRecognizeResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1.LongRunningRecognizeResponse.getDefaultInstance())
+        return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -715,9 +789,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.LongRunningRecognizeResponse
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -751,7 +826,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -760,21 +836,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -790,6 +874,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -805,6 +891,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -820,6 +908,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -827,8 +917,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public Builder setResults(
-        int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
+    public Builder setResults(int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -842,6 +931,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -861,6 +952,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -882,6 +975,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -889,8 +984,7 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public Builder addResults(
-        int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
+    public Builder addResults(int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -904,6 +998,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -923,6 +1019,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -942,6 +1040,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -953,8 +1053,7 @@ public Builder addAllResults(
         java.lang.Iterable values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -962,6 +1061,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -980,6 +1081,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -998,6 +1101,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1005,11 +1110,12 @@ public Builder removeResults(int index) {
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuilder(int index) {
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1020,11 +1126,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuil
     public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);  } else {
+        return results_.get(index);
+      } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1032,8 +1141,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1041,6 +1150,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1049,10 +1160,12 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1060,12 +1173,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder(
-        int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder(int index) {
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1073,20 +1188,23 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechRecognitionResult,
+                com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+                com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1094,34 +1212,47 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1142,14 +1273,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1160,6 +1292,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1170,7 +1304,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1182,6 +1318,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1200,6 +1338,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1207,11 +1347,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1222,11 +1364,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { if (totalBilledTimeBuilder_ != null) { return totalBilledTimeBuilder_.getMessageOrBuilder(); } else { - return totalBilledTime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1234,14 +1379,17 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), - getParentForChildren(), - isClean()); + totalBilledTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), getParentForChildren(), isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; @@ -1249,34 +1397,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ public com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1297,6 +1458,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConfig return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1315,6 +1478,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1325,7 +1490,9 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1337,6 +1504,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1.TranscriptOutputConf return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1355,6 +1524,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1362,11 +1533,13 @@ public Builder clearOutputConfig() { * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; */ public com.google.cloud.speech.v1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1377,11 +1550,14 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1389,14 +1565,17 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.TranscriptOutputConfig, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.TranscriptOutputConfig, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1404,24 +1583,31 @@ public com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfi private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + outputErrorBuilder_; /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1432,6 +1618,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1452,14 +1640,15 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1470,6 +1659,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1480,7 +1671,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1492,6 +1683,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1510,6 +1703,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1517,11 +1712,13 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1532,11 +1729,12 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { if (outputErrorBuilder_ != null) { return outputErrorBuilder_.getMessageOrBuilder(); } else { - return outputError_ == null ? - com.google.rpc.Status.getDefaultInstance() : outputError_; + return outputError_ == null ? com.google.rpc.Status.getDefaultInstance() : outputError_; } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1544,21 +1742,22 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getOutputError(), - getParentForChildren(), - isClean()); + outputErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getOutputError(), getParentForChildren(), isClean()); outputError_ = null; } return outputErrorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1568,12 +1767,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.LongRunningRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.LongRunningRecognizeResponse) private static final com.google.cloud.speech.v1.LongRunningRecognizeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.LongRunningRecognizeResponse(); } @@ -1582,16 +1781,16 @@ public static com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1606,6 +1805,4 @@ public com.google.protobuf.Parser getParserForType public com.google.cloud.speech.v1.LongRunningRecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java index 231d7ae91..5078fa81a 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/LongRunningRecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface LongRunningRecognizeResponseOrBuilder extends +public interface LongRunningRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -84,24 +116,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ com.google.cloud.speech.v1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
@@ -111,24 +151,32 @@ com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder( com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java index 0ec604f92..3f0552bf8 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSet.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** + * + * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
  */
-public final class PhraseSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet)
     PhraseSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -27,16 +45,15 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,33 +73,36 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            phrases_.add(
-                input.readMessage(com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.PhraseSet.Phrase.parser(), extensionRegistry));
+              break;
+            }
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,8 +110,7 @@ private PhraseSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -100,44 +119,55 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1.PhraseSet.class,
+            com.google.cloud.speech.v1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder extends
+  public interface PhraseOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The phrase itself.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -151,11 +181,14 @@ public interface PhraseOrBuilder extends
      * 
* * float boost = 2; + * * @return The boost. */ float getBoost(); } /** + * + * *
    * A phrases containing words and phrase "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -184,31 +217,31 @@ public interface PhraseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.PhraseSet.Phrase)
       PhraseOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -227,24 +260,25 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              value_ = s;
-              break;
-            }
-            case 21: {
-
-              boost_ = input.readFloat();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                value_ = s;
+                break;
+              }
+            case 21:
+              {
+                boost_ = input.readFloat();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -252,34 +286,39 @@ private Phrase(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.Phrase.class,
+              com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -288,29 +327,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * The phrase itself.
      * 
* * string value = 1; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -321,6 +360,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -334,6 +375,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -342,6 +384,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -353,8 +396,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -374,8 +416,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,18 +426,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1.PhraseSet.Phrase other = (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1.PhraseSet.Phrase other = + (com.google.cloud.speech.v1.PhraseSet.Phrase) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,95 +451,100 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -509,6 +554,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A phrases containing words and phrase "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -537,21 +584,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1.PhraseSet.Phrase}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet.Phrase)
         com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1.PhraseSet.Phrase.class, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1.PhraseSet.Phrase.class,
+                com.google.cloud.speech.v1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1.PhraseSet.Phrase.newBuilder()
@@ -559,16 +609,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -580,9 +629,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.speech.v1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
@@ -601,7 +650,8 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1.PhraseSet.Phrase result = new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -612,38 +662,41 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase)other);
+          return mergeFrom((com.google.cloud.speech.v1.PhraseSet.Phrase) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -690,18 +743,20 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
+       *
+       *
        * 
        * The phrase itself.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -710,20 +765,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -731,61 +787,70 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -799,6 +864,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -806,6 +872,8 @@ public float getBoost() { return boost_; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -819,16 +887,19 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -842,14 +913,16 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -862,12 +935,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.PhraseSet.Phrase) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.PhraseSet.Phrase) private static final com.google.cloud.speech.v1.PhraseSet.Phrase DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.PhraseSet.Phrase(); } @@ -876,16 +949,16 @@ public static com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,17 +973,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -919,29 +994,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -952,6 +1027,8 @@ public java.lang.String getName() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -963,6 +1040,8 @@ public java.util.List getPhrasesLis return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -970,11 +1049,13 @@ public java.util.List getPhrasesLis * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ @java.lang.Override - public java.util.List + public java.util.List getPhrasesOrBuilderList() { return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -986,6 +1067,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -997,6 +1080,8 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1004,14 +1089,15 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ @java.lang.Override - public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index) { + public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { return phrases_.get(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1025,6 +1111,7 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1033,6 +1120,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1044,8 +1132,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1068,12 +1155,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < phrases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, phrases_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, phrases_.get(i)); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1083,20 +1168,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.PhraseSet)) { return super.equals(obj); } com.google.cloud.speech.v1.PhraseSet other = (com.google.cloud.speech.v1.PhraseSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1115,104 +1197,109 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.PhraseSet parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v1.PhraseSet parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1220,21 +1307,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.PhraseSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.PhraseSet)
       com.google.cloud.speech.v1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.PhraseSet.class, com.google.cloud.speech.v1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1.PhraseSet.class,
+              com.google.cloud.speech.v1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.PhraseSet.newBuilder()
@@ -1242,17 +1331,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1270,9 +1359,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
@@ -1312,38 +1401,39 @@ public com.google.cloud.speech.v1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1.PhraseSet)other);
+        return mergeFrom((com.google.cloud.speech.v1.PhraseSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1374,9 +1464,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1413,22 +1504,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1437,20 +1531,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1458,72 +1553,85 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phrases_ = new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; + com.google.cloud.speech.v1.PhraseSet.Phrase, + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> + phrasesBuilder_; /** + * + * *
      * A list of word and phrases.
      * 
@@ -1538,6 +1646,8 @@ public java.util.List getPhrasesLis } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1552,6 +1662,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1566,14 +1678,15 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index) { } } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public Builder setPhrases( - int index, com.google.cloud.speech.v1.PhraseSet.Phrase value) { + public Builder setPhrases(int index, com.google.cloud.speech.v1.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1587,6 +1700,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1605,6 +1720,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1625,14 +1742,15 @@ public Builder addPhrases(com.google.cloud.speech.v1.PhraseSet.Phrase value) { return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public Builder addPhrases( - int index, com.google.cloud.speech.v1.PhraseSet.Phrase value) { + public Builder addPhrases(int index, com.google.cloud.speech.v1.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1646,14 +1764,15 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public Builder addPhrases( - com.google.cloud.speech.v1.PhraseSet.Phrase.Builder builderForValue) { + public Builder addPhrases(com.google.cloud.speech.v1.PhraseSet.Phrase.Builder builderForValue) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); phrases_.add(builderForValue.build()); @@ -1664,6 +1783,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1682,6 +1803,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1692,8 +1815,7 @@ public Builder addAllPhrases( java.lang.Iterable values) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); onChanged(); } else { phrasesBuilder_.addAllMessages(values); @@ -1701,6 +1823,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1718,6 +1842,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1735,39 +1861,44 @@ public Builder removePhrases(int index) { return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder getPhrasesBuilder( - int index) { + public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder getPhrasesBuilder(int index) { return getPhrasesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index) { + public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index) { if (phrasesBuilder_ == null) { - return phrases_.get(index); } else { + return phrases_.get(index); + } else { return phrasesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesOrBuilderList() { + public java.util.List + getPhrasesOrBuilderList() { if (phrasesBuilder_ != null) { return phrasesBuilder_.getMessageOrBuilderList(); } else { @@ -1775,6 +1906,8 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1782,49 +1915,57 @@ public com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder().addBuilder( - com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder() + .addBuilder(com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder( - int index) { - return getPhrasesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { + return getPhrasesFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1.PhraseSet.Phrase, + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet.Phrase, com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( - phrases_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet.Phrase, + com.google.cloud.speech.v1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder>( + phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1838,6 +1979,7 @@ public com.google.cloud.speech.v1.PhraseSet.Phrase.Builder addPhrasesBuilder(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1845,6 +1987,8 @@ public float getBoost() { return boost_; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1858,16 +2002,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1881,17 +2028,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1901,12 +2049,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.PhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.PhraseSet) private static final com.google.cloud.speech.v1.PhraseSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.PhraseSet(); } @@ -1915,16 +2063,16 @@ public static com.google.cloud.speech.v1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1939,6 +2087,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java index c57c3c5d6..39857ed50 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/PhraseSetOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; -public interface PhraseSetOrBuilder extends +public interface PhraseSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of word and phrases.
    * 
@@ -45,6 +69,8 @@ public interface PhraseSetOrBuilder extends */ com.google.cloud.speech.v1.PhraseSet.Phrase getPhrases(int index); /** + * + * *
    * A list of word and phrases.
    * 
@@ -53,25 +79,30 @@ public interface PhraseSetOrBuilder extends */ int getPhrasesCount(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index); + com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -85,6 +116,7 @@ com.google.cloud.speech.v1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java index 13a01ffc4..d17b7c6b0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudio.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
  */
-public final class RecognitionAudio extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RecognitionAudio() {
-  }
+
+  private RecognitionAudio() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,24 +71,26 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10: {
-            audioSource_ = input.readBytes();
-            audioSourceCase_ = 1;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            audioSourceCase_ = 2;
-            audioSource_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              audioSource_ = input.readBytes();
+              audioSourceCase_ = 1;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -80,35 +98,40 @@ private RecognitionAudio(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1.RecognitionAudio.class,
+            com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
+
   public enum AudioSourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
+
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -124,25 +147,30 @@ public static AudioSourceCase valueOf(int value) {
 
     public static AudioSourceCase forNumber(int value) {
       switch (value) {
-        case 1: return CONTENT;
-        case 2: return URI;
-        case 0: return AUDIOSOURCE_NOT_SET;
-        default: return null;
+        case 1:
+          return CONTENT;
+        case 2:
+          return URI;
+        case 0:
+          return AUDIOSOURCE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public AudioSourceCase
-  getAudioSourceCase() {
-    return AudioSourceCase.forNumber(
-        audioSourceCase_);
+  public AudioSourceCase getAudioSourceCase() {
+    return AudioSourceCase.forNumber(audioSourceCase_);
   }
 
   public static final int CONTENT_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -150,6 +178,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -157,6 +186,8 @@ public boolean hasContent() { return audioSourceCase_ == 1; } /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -164,6 +195,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -176,6 +208,8 @@ public com.google.protobuf.ByteString getContent() { public static final int URI_FIELD_NUMBER = 2; /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -187,12 +221,15 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * string uri = 2; + * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 2; } /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -204,6 +241,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -214,8 +252,7 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -224,6 +261,8 @@ public java.lang.String getUri() { } } /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -235,18 +274,17 @@ public java.lang.String getUri() {
    * 
* * string uri = 2; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -257,6 +295,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,11 +307,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (audioSourceCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) audioSource_); + output.writeBytes(1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audioSource_); @@ -287,9 +324,9 @@ public int getSerializedSize() { size = 0; if (audioSourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) audioSource_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audioSource_); @@ -302,22 +339,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionAudio)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionAudio other = (com.google.cloud.speech.v1.RecognitionAudio) obj; + com.google.cloud.speech.v1.RecognitionAudio other = + (com.google.cloud.speech.v1.RecognitionAudio) obj; if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false; switch (audioSourceCase_) { case 1: - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; break; case 2: - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; break; case 0: default: @@ -350,97 +386,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionAudio parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognitionAudio parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionAudio parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionAudio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionAudio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains audio data in the encoding specified in the `RecognitionConfig`.
    * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -450,21 +493,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionAudio}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionAudio)
       com.google.cloud.speech.v1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionAudio.class, com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1.RecognitionAudio.class,
+              com.google.cloud.speech.v1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionAudio.newBuilder()
@@ -472,16 +517,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -491,9 +535,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
@@ -512,7 +556,8 @@ public com.google.cloud.speech.v1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1.RecognitionAudio result = new com.google.cloud.speech.v1.RecognitionAudio(this);
+      com.google.cloud.speech.v1.RecognitionAudio result =
+          new com.google.cloud.speech.v1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -528,38 +573,39 @@ public com.google.cloud.speech.v1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio)other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionAudio) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -569,19 +615,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionAudio other) {
       if (other == com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance()) return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT: {
-          setContent(other.getContent());
-          break;
-        }
-        case URI: {
-          audioSourceCase_ = 2;
-          audioSource_ = other.audioSource_;
-          onChanged();
-          break;
-        }
-        case AUDIOSOURCE_NOT_SET: {
-          break;
-        }
+        case CONTENT:
+          {
+            setContent(other.getContent());
+            break;
+          }
+        case URI:
+          {
+            audioSourceCase_ = 2;
+            audioSource_ = other.audioSource_;
+            onChanged();
+            break;
+          }
+        case AUDIOSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -611,12 +660,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-    public AudioSourceCase
-        getAudioSourceCase() {
-      return AudioSourceCase.forNumber(
-          audioSourceCase_);
+
+    public AudioSourceCase getAudioSourceCase() {
+      return AudioSourceCase.forNumber(audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -626,8 +675,9 @@ public Builder clearAudioSource() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -635,12 +685,15 @@ public Builder clearAudioSource() {
      * 
* * bytes content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 1; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -648,6 +701,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -657,6 +711,8 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -664,19 +720,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -684,6 +743,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -696,6 +756,8 @@ public Builder clearContent() { } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -707,6 +769,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -714,6 +777,8 @@ public boolean hasUri() { return audioSourceCase_ == 2; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -725,6 +790,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -734,8 +800,7 @@ public java.lang.String getUri() { ref = audioSource_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -746,6 +811,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -757,19 +824,18 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -779,6 +845,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -790,20 +858,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -815,6 +885,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -826,6 +897,8 @@ public Builder clearUri() { return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -837,23 +910,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -863,12 +936,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognitionAudio) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionAudio) private static final com.google.cloud.speech.v1.RecognitionAudio DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognitionAudio(); } @@ -877,16 +950,16 @@ public static com.google.cloud.speech.v1.RecognitionAudio getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -901,6 +974,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java index 4347fb6f5..b8330aa93 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionAudioOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionAudioOrBuilder extends +public interface RecognitionAudioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -15,10 +33,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -26,11 +47,14 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -42,10 +66,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -57,10 +84,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -72,10 +102,10 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); public com.google.cloud.speech.v1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java index 46cadf00f..7dfd24d7f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
  */
-public final class RecognitionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -30,16 +48,15 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,159 +76,180 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
-
-            encoding_ = rawValue;
-            break;
-          }
-          case 16: {
-
-            sampleRateHertz_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          case 32: {
-
-            maxAlternatives_ = input.readInt32();
-            break;
-          }
-          case 40: {
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            profanityFilter_ = input.readBool();
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              speechContexts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              encoding_ = rawValue;
+              break;
             }
-            speechContexts_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
-            break;
-          }
-          case 56: {
-
-            audioChannelCount_ = input.readInt32();
-            break;
-          }
-          case 64: {
+          case 16:
+            {
+              sampleRateHertz_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            enableWordTimeOffsets_ = input.readBool();
-            break;
-          }
-          case 74: {
-            com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
-            if (metadata_ != null) {
-              subBuilder = metadata_.toBuilder();
+              languageCode_ = s;
+              break;
             }
-            metadata_ = input.readMessage(com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metadata_);
-              metadata_ = subBuilder.buildPartial();
+          case 32:
+            {
+              maxAlternatives_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 88: {
-
-            enableAutomaticPunctuation_ = input.readBool();
-            break;
-          }
-          case 96: {
-
-            enableSeparateRecognitionPerChannel_ = input.readBool();
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            model_ = s;
-            break;
-          }
-          case 112: {
-
-            useEnhanced_ = input.readBool();
-            break;
-          }
-          case 120: {
-
-            enableWordConfidence_ = input.readBool();
-            break;
-          }
-          case 146: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 40:
+            {
+              profanityFilter_ = input.readBool();
+              break;
             }
-            alternativeLanguageCodes_.add(s);
-            break;
-          }
-          case 154: {
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
-            if (diarizationConfig_ != null) {
-              subBuilder = diarizationConfig_.toBuilder();
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                speechContexts_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              speechContexts_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechContext.parser(), extensionRegistry));
+              break;
             }
-            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(diarizationConfig_);
-              diarizationConfig_ = subBuilder.buildPartial();
+          case 56:
+            {
+              audioChannelCount_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 162: {
-            com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
-            if (adaptation_ != null) {
-              subBuilder = adaptation_.toBuilder();
+          case 64:
+            {
+              enableWordTimeOffsets_ = input.readBool();
+              break;
             }
-            adaptation_ = input.readMessage(com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(adaptation_);
-              adaptation_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.cloud.speech.v1.RecognitionMetadata.Builder subBuilder = null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.RecognitionMetadata.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 178: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenPunctuation_ != null) {
-              subBuilder = enableSpokenPunctuation_.toBuilder();
+          case 88:
+            {
+              enableAutomaticPunctuation_ = input.readBool();
+              break;
             }
-            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenPunctuation_);
-              enableSpokenPunctuation_ = subBuilder.buildPartial();
+          case 96:
+            {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              break;
             }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 186: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenEmojis_ != null) {
-              subBuilder = enableSpokenEmojis_.toBuilder();
+              model_ = s;
+              break;
             }
-            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenEmojis_);
-              enableSpokenEmojis_ = subBuilder.buildPartial();
+          case 112:
+            {
+              useEnhanced_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 120:
+            {
+              enableWordConfidence_ = input.readBool();
+              break;
+            }
+          case 146:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternativeLanguageCodes_.add(s);
+              break;
+            }
+          case 154:
+            {
+              com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder subBuilder = null;
+              if (diarizationConfig_ != null) {
+                subBuilder = diarizationConfig_.toBuilder();
+              }
+              diarizationConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeakerDiarizationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(diarizationConfig_);
+                diarizationConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 162:
+            {
+              com.google.cloud.speech.v1.SpeechAdaptation.Builder subBuilder = null;
+              if (adaptation_ != null) {
+                subBuilder = adaptation_.toBuilder();
+              }
+              adaptation_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechAdaptation.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(adaptation_);
+                adaptation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 178:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenPunctuation_ != null) {
+                subBuilder = enableSpokenPunctuation_.toBuilder();
+              }
+              enableSpokenPunctuation_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenPunctuation_);
+                enableSpokenPunctuation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 186:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenEmojis_ != null) {
+                subBuilder = enableSpokenEmojis_.toBuilder();
+              }
+              enableSpokenEmojis_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenEmojis_);
+                enableSpokenEmojis_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -219,8 +257,7 @@ private RecognitionConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -232,20 +269,25 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1.RecognitionConfig.class,
+            com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -271,9 +313,10 @@ private RecognitionConfig(
    *
    * Protobuf enum {@code google.cloud.speech.v1.RecognitionConfig.AudioEncoding}
    */
-  public enum AudioEncoding
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -282,6 +325,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -290,6 +335,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -303,6 +350,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -311,6 +360,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -319,6 +370,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -327,6 +380,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -337,6 +392,8 @@ public enum AudioEncoding
      */
     OGG_OPUS(6),
     /**
+     *
+     *
      * 
      * Although the use of lossy encodings is not recommended, if a very low
      * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -357,6 +414,8 @@ public enum AudioEncoding
      */
     SPEEX_WITH_HEADER_BYTE(7),
     /**
+     *
+     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -370,6 +429,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -378,6 +439,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -386,6 +449,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -399,6 +464,8 @@ public enum AudioEncoding
      */
     public static final int FLAC_VALUE = 2;
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -407,6 +474,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -415,6 +484,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -423,6 +494,8 @@ public enum AudioEncoding */ public static final int AMR_WB_VALUE = 5; /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -433,6 +506,8 @@ public enum AudioEncoding
      */
     public static final int OGG_OPUS_VALUE = 6;
     /**
+     *
+     *
      * 
      * Although the use of lossy encodings is not recommended, if a very low
      * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -453,6 +528,8 @@ public enum AudioEncoding
      */
     public static final int SPEEX_WITH_HEADER_BYTE_VALUE = 7;
     /**
+     *
+     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -463,7 +540,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -488,55 +564,61 @@ public static AudioEncoding valueOf(int value) {
      */
     public static AudioEncoding forNumber(int value) {
       switch (value) {
-        case 0: return ENCODING_UNSPECIFIED;
-        case 1: return LINEAR16;
-        case 2: return FLAC;
-        case 3: return MULAW;
-        case 4: return AMR;
-        case 5: return AMR_WB;
-        case 6: return OGG_OPUS;
-        case 7: return SPEEX_WITH_HEADER_BYTE;
-        case 9: return WEBM_OPUS;
-        default: return null;
+        case 0:
+          return ENCODING_UNSPECIFIED;
+        case 1:
+          return LINEAR16;
+        case 2:
+          return FLAC;
+        case 3:
+          return MULAW;
+        case 4:
+          return AMR;
+        case 5:
+          return AMR_WB;
+        case 6:
+          return OGG_OPUS;
+        case 7:
+          return SPEEX_WITH_HEADER_BYTE;
+        case 9:
+          return WEBM_OPUS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AudioEncoding> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AudioEncoding findValueByNumber(int number) {
-              return AudioEncoding.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public AudioEncoding findValueByNumber(int number) {
+            return AudioEncoding.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.speech.v1.RecognitionConfig.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final AudioEncoding[] VALUES = values();
 
-    public static AudioEncoding valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -556,6 +638,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
+   *
+   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -563,12 +647,16 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -576,17 +664,24 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -598,6 +693,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -608,6 +704,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -621,6 +719,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -631,6 +730,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -641,6 +742,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -651,6 +753,8 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -661,6 +765,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -669,14 +774,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -687,16 +793,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -707,6 +812,8 @@ public java.lang.String getLanguageCode() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -723,13 +830,15 @@ public java.lang.String getLanguageCode() {
    * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getAlternativeLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList() { return alternativeLanguageCodes_; } /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -746,12 +855,15 @@ public java.lang.String getLanguageCode() {
    * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ public int getAlternativeLanguageCodesCount() { return alternativeLanguageCodes_.size(); } /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -768,6 +880,7 @@ public int getAlternativeLanguageCodesCount() {
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ @@ -775,6 +888,8 @@ public java.lang.String getAlternativeLanguageCodes(int index) { return alternativeLanguageCodes_.get(index); } /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -791,17 +906,19 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -812,6 +929,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -822,6 +940,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -830,6 +950,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -840,6 +961,8 @@ public boolean getProfanityFilter() { public static final int ADAPTATION_FIELD_NUMBER = 20; private com.google.cloud.speech.v1.SpeechAdaptation adaptation_; /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -849,6 +972,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -856,6 +980,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -865,13 +991,18 @@ public boolean hasAdaptation() {
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation getAdaptation() { - return adaptation_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_; + return adaptation_ == null + ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() + : adaptation_; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -890,6 +1021,8 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
   public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6;
   private java.util.List speechContexts_;
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -905,6 +1038,8 @@ public java.util.List getSpeechContext
     return speechContexts_;
   }
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -916,11 +1051,13 @@ public java.util.List getSpeechContext
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSpeechContextsOrBuilderList() {
     return speechContexts_;
   }
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -936,6 +1073,8 @@ public int getSpeechContextsCount() {
     return speechContexts_.size();
   }
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -951,6 +1090,8 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
     return speechContexts_.get(index);
   }
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -962,14 +1103,15 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index) {
     return speechContexts_.get(index);
   }
 
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -978,6 +1120,7 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -988,6 +1131,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -995,6 +1140,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -1005,6 +1151,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1013,6 +1161,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1023,6 +1172,8 @@ public boolean getEnableAutomaticPunctuation() { public static final int ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER = 22; private com.google.protobuf.BoolValue enableSpokenPunctuation_; /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1034,6 +1185,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1041,6 +1193,8 @@ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuation_ != null; } /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1052,13 +1206,18 @@ public boolean hasEnableSpokenPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ @java.lang.Override public com.google.protobuf.BoolValue getEnableSpokenPunctuation() { - return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_; + return enableSpokenPunctuation_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableSpokenPunctuation_; } /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1079,6 +1238,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1088,6 +1249,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1095,6 +1257,8 @@ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojis_ != null; } /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1104,13 +1268,18 @@ public boolean hasEnableSpokenEmojis() {
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ @java.lang.Override public com.google.protobuf.BoolValue getEnableSpokenEmojis() { - return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_; + return enableSpokenEmojis_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableSpokenEmojis_; } /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1129,6 +1298,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 19;
   private com.google.cloud.speech.v1.SpeakerDiarizationConfig diarizationConfig_;
   /**
+   *
+   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1141,6 +1312,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -1148,6 +1320,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1160,13 +1334,18 @@ public boolean hasDiarizationConfig() {
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return The diarizationConfig. */ @java.lang.Override public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig() { - return diarizationConfig_ == null ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; + return diarizationConfig_ == null + ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() + : diarizationConfig_; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1181,18 +1360,22 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(
    * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1200,18 +1383,25 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Metadata regarding this request.
    * 
@@ -1226,6 +1416,8 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1281,6 +1473,7 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1289,14 +1482,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1352,16 +1546,15 @@ public java.lang.String getModel() {
    * 
* * string model = 13; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1372,6 +1565,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** + * + * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1383,6 +1578,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1391,6 +1587,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1402,9 +1599,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (encoding_ != com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (encoding_ + != com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED + .getNumber()) { output.writeEnum(1, encoding_); } if (sampleRateHertz_ != 0) { @@ -1447,7 +1645,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeBool(15, enableWordConfidence_); } for (int i = 0; i < alternativeLanguageCodes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, alternativeLanguageCodes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 18, alternativeLanguageCodes_.getRaw(i)); } if (diarizationConfig_ != null) { output.writeMessage(19, getDiarizationConfig()); @@ -1470,59 +1669,52 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encoding_ != com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, encoding_); + if (encoding_ + != com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encoding_); } if (sampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, sampleRateHertz_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sampleRateHertz_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } if (maxAlternatives_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, maxAlternatives_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxAlternatives_); } if (profanityFilter_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, profanityFilter_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, profanityFilter_); } for (int i = 0; i < speechContexts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, speechContexts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, speechContexts_.get(i)); } if (audioChannelCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, audioChannelCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, audioChannelCount_); } if (enableWordTimeOffsets_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, enableWordTimeOffsets_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableWordTimeOffsets_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetadata()); } if (enableAutomaticPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, enableAutomaticPunctuation_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(11, enableAutomaticPunctuation_); } if (enableSeparateRecognitionPerChannel_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, enableSeparateRecognitionPerChannel_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 12, enableSeparateRecognitionPerChannel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, model_); } if (useEnhanced_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, useEnhanced_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, useEnhanced_); } if (enableWordConfidence_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, enableWordConfidence_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, enableWordConfidence_); } { int dataSize = 0; @@ -1533,20 +1725,18 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getEnableSpokenPunctuation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1556,65 +1746,50 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionConfig other = (com.google.cloud.speech.v1.RecognitionConfig) obj; + com.google.cloud.speech.v1.RecognitionConfig other = + (com.google.cloud.speech.v1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() - != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() - != other.getEnableSeparateRecognitionPerChannel()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList() - .equals(other.getAlternativeLanguageCodesList())) return false; - if (getMaxAlternatives() - != other.getMaxAlternatives()) return false; - if (getProfanityFilter() - != other.getProfanityFilter()) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) + return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) + return false; + if (getMaxAlternatives() != other.getMaxAlternatives()) return false; + if (getProfanityFilter() != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation() - .equals(other.getAdaptation())) return false; - } - if (!getSpeechContextsList() - .equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() - != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() - != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() - != other.getEnableAutomaticPunctuation()) return false; + if (!getAdaptation().equals(other.getAdaptation())) return false; + } + if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation() - .equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis() - .equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; } if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig() - .equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } - if (!getModel() - .equals(other.getModel())) return false; - if (getUseEnhanced() - != other.getUseEnhanced()) return false; + if (!getModel().equals(other.getModel())) return false; + if (getUseEnhanced() != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1633,8 +1808,9 @@ public int hashCode() { hash = (37 * hash) + AUDIO_CHANNEL_COUNT_FIELD_NUMBER; hash = (53 * hash) + getAudioChannelCount(); hash = (37 * hash) + ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSeparateRecognitionPerChannel()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableSeparateRecognitionPerChannel()); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); if (getAlternativeLanguageCodesCount() > 0) { @@ -1644,8 +1820,7 @@ public int hashCode() { hash = (37 * hash) + MAX_ALTERNATIVES_FIELD_NUMBER; hash = (53 * hash) + getMaxAlternatives(); hash = (37 * hash) + PROFANITY_FILTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getProfanityFilter()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProfanityFilter()); if (hasAdaptation()) { hash = (37 * hash) + ADAPTATION_FIELD_NUMBER; hash = (53 * hash) + getAdaptation().hashCode(); @@ -1655,14 +1830,11 @@ public int hashCode() { hash = (53 * hash) + getSpeechContextsList().hashCode(); } hash = (37 * hash) + ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableWordTimeOffsets()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWordTimeOffsets()); hash = (37 * hash) + ENABLE_WORD_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableWordConfidence()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWordConfidence()); hash = (37 * hash) + ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableAutomaticPunctuation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAutomaticPunctuation()); if (hasEnableSpokenPunctuation()) { hash = (37 * hash) + ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER; hash = (53 * hash) + getEnableSpokenPunctuation().hashCode(); @@ -1682,104 +1854,110 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -1787,21 +1965,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionConfig)
       com.google.cloud.speech.v1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognitionConfig.class, com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.RecognitionConfig.class,
+              com.google.cloud.speech.v1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognitionConfig.newBuilder()
@@ -1809,17 +1989,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1889,9 +2069,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1910,7 +2090,8 @@ public com.google.cloud.speech.v1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.RecognitionConfig result = new com.google.cloud.speech.v1.RecognitionConfig(this);
+      com.google.cloud.speech.v1.RecognitionConfig result =
+          new com.google.cloud.speech.v1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -1971,38 +2152,39 @@ public com.google.cloud.speech.v1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2064,9 +2246,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognitionConfig other) {
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2128,10 +2311,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
+     *
+     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2139,12 +2325,16 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2152,16 +2342,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2169,15 +2362,21 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2185,6 +2384,7 @@ public com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding()
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The encoding to set. * @return This builder for chaining. */ @@ -2192,12 +2392,14 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2205,17 +2407,20 @@ public Builder setEncoding(com.google.cloud.speech.v1.RecognitionConfig.AudioEnc
      * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2227,6 +2432,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2234,6 +2440,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2245,16 +2453,19 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; + * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2266,17 +2477,20 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2290,6 +2504,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2297,6 +2512,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2310,16 +2527,19 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; + * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2333,17 +2553,20 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_ ; + private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2354,6 +2577,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2361,6 +2585,8 @@ public boolean getEnableSeparateRecognitionPerChannel() { return enableSeparateRecognitionPerChannel_; } /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2371,16 +2597,19 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2391,10 +2620,11 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2402,6 +2632,8 @@ public Builder clearEnableSeparateRecognitionPerChannel() { private java.lang.Object languageCode_ = ""; /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2412,13 +2644,13 @@ public Builder clearEnableSeparateRecognitionPerChannel() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -2427,6 +2659,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2437,15 +2671,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -2453,6 +2686,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2463,20 +2698,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2487,15 +2724,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2506,29 +2746,34 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2545,13 +2790,15 @@ private void ensureAlternativeLanguageCodesIsMutable() {
      * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getAlternativeLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList() { return alternativeLanguageCodes_.getUnmodifiableView(); } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2568,12 +2815,15 @@ private void ensureAlternativeLanguageCodesIsMutable() {
      * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ public int getAlternativeLanguageCodesCount() { return alternativeLanguageCodes_.size(); } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2590,6 +2840,7 @@ public int getAlternativeLanguageCodesCount() {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ @@ -2597,6 +2848,8 @@ public java.lang.String getAlternativeLanguageCodes(int index) { return alternativeLanguageCodes_.get(index); } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2613,14 +2866,16 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2637,21 +2892,23 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes( - int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2668,20 +2925,22 @@ public Builder setAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes( - java.lang.String value) { + public Builder addAlternativeLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2698,18 +2957,19 @@ public Builder addAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @param values The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllAlternativeLanguageCodes( - java.lang.Iterable values) { + public Builder addAllAlternativeLanguageCodes(java.lang.Iterable values) { ensureAlternativeLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, alternativeLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternativeLanguageCodes_); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2726,6 +2986,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2735,6 +2996,8 @@ public Builder clearAlternativeLanguageCodes() { return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2751,23 +3014,25 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes( - com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2778,6 +3043,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2785,6 +3051,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2795,16 +3063,19 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; + * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2815,17 +3086,20 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_ ; + private boolean profanityFilter_; /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -2834,6 +3108,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -2841,6 +3116,8 @@ public boolean getProfanityFilter() { return profanityFilter_; } /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -2849,16 +3126,19 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; + * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -2867,10 +3147,11 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -2878,8 +3159,13 @@ public Builder clearProfanityFilter() { private com.google.cloud.speech.v1.SpeechAdaptation adaptation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder> adaptationBuilder_; + com.google.cloud.speech.v1.SpeechAdaptation, + com.google.cloud.speech.v1.SpeechAdaptation.Builder, + com.google.cloud.speech.v1.SpeechAdaptationOrBuilder> + adaptationBuilder_; /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2889,12 +3175,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2904,16 +3193,21 @@ public boolean hasAdaptation() {
      * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ public com.google.cloud.speech.v1.SpeechAdaptation getAdaptation() { if (adaptationBuilder_ == null) { - return adaptation_ == null ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_; + return adaptation_ == null + ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() + : adaptation_; } else { return adaptationBuilder_.getMessage(); } } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2938,6 +3232,8 @@ public Builder setAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2960,6 +3256,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -2974,7 +3272,9 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-            com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1.SpeechAdaptation.newBuilder(adaptation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -2986,6 +3286,8 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1.SpeechAdaptation value
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3008,6 +3310,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3019,11 +3323,13 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1.SpeechAdaptation.Builder getAdaptationBuilder() {
-      
+
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3038,11 +3344,14 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
       if (adaptationBuilder_ != null) {
         return adaptationBuilder_.getMessageOrBuilder();
       } else {
-        return adaptation_ == null ?
-            com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance() : adaptation_;
+        return adaptation_ == null
+            ? com.google.cloud.speech.v1.SpeechAdaptation.getDefaultInstance()
+            : adaptation_;
       }
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3054,32 +3363,42 @@ public com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuild
      * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder> 
+            com.google.cloud.speech.v1.SpeechAdaptation,
+            com.google.cloud.speech.v1.SpeechAdaptation.Builder,
+            com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechAdaptation, com.google.cloud.speech.v1.SpeechAdaptation.Builder, com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
-                getAdaptation(),
-                getParentForChildren(),
-                isClean());
+        adaptationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechAdaptation,
+                com.google.cloud.speech.v1.SpeechAdaptation.Builder,
+                com.google.cloud.speech.v1.SpeechAdaptationOrBuilder>(
+                getAdaptation(), getParentForChildren(), isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
     }
 
     private java.util.List speechContexts_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureSpeechContextsIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
-        speechContexts_ = new java.util.ArrayList(speechContexts_);
+        speechContexts_ =
+            new java.util.ArrayList(speechContexts_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> speechContextsBuilder_;
+            com.google.cloud.speech.v1.SpeechContext,
+            com.google.cloud.speech.v1.SpeechContext.Builder,
+            com.google.cloud.speech.v1.SpeechContextOrBuilder>
+        speechContextsBuilder_;
 
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3098,6 +3417,8 @@ public java.util.List getSpeechContext
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3116,6 +3437,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3134,6 +3457,8 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3144,8 +3469,7 @@ public com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index) {
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public Builder setSpeechContexts(
-        int index, com.google.cloud.speech.v1.SpeechContext value) {
+    public Builder setSpeechContexts(int index, com.google.cloud.speech.v1.SpeechContext value) {
       if (speechContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3159,6 +3483,8 @@ public Builder setSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3181,6 +3507,8 @@ public Builder setSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3205,6 +3533,8 @@ public Builder addSpeechContexts(com.google.cloud.speech.v1.SpeechContext value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3215,8 +3545,7 @@ public Builder addSpeechContexts(com.google.cloud.speech.v1.SpeechContext value)
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public Builder addSpeechContexts(
-        int index, com.google.cloud.speech.v1.SpeechContext value) {
+    public Builder addSpeechContexts(int index, com.google.cloud.speech.v1.SpeechContext value) {
       if (speechContextsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -3230,6 +3559,8 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3252,6 +3583,8 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3274,6 +3607,8 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3288,8 +3623,7 @@ public Builder addAllSpeechContexts(
         java.lang.Iterable values) {
       if (speechContextsBuilder_ == null) {
         ensureSpeechContextsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, speechContexts_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speechContexts_);
         onChanged();
       } else {
         speechContextsBuilder_.addAllMessages(values);
@@ -3297,6 +3631,8 @@ public Builder addAllSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3318,6 +3654,8 @@ public Builder clearSpeechContexts() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3339,6 +3677,8 @@ public Builder removeSpeechContexts(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3349,11 +3689,12 @@ public Builder removeSpeechContexts(int index) {
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public com.google.cloud.speech.v1.SpeechContext.Builder getSpeechContextsBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.SpeechContext.Builder getSpeechContextsBuilder(int index) {
       return getSpeechContextsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3364,14 +3705,16 @@ public com.google.cloud.speech.v1.SpeechContext.Builder getSpeechContextsBuilder
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index) {
       if (speechContextsBuilder_ == null) {
-        return speechContexts_.get(index);  } else {
+        return speechContexts_.get(index);
+      } else {
         return speechContextsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3382,8 +3725,8 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List 
-         getSpeechContextsOrBuilderList() {
+    public java.util.List
+        getSpeechContextsOrBuilderList() {
       if (speechContextsBuilder_ != null) {
         return speechContextsBuilder_.getMessageOrBuilderList();
       } else {
@@ -3391,6 +3734,8 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3402,10 +3747,12 @@ public com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuil
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
     public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder() {
-      return getSpeechContextsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1.SpeechContext.getDefaultInstance());
+      return getSpeechContextsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1.SpeechContext.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3416,12 +3763,13 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder(
-        int index) {
-      return getSpeechContextsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1.SpeechContext.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder(int index) {
+      return getSpeechContextsFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v1.SpeechContext.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3432,16 +3780,22 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      *
      * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List 
-         getSpeechContextsBuilderList() {
+    public java.util.List
+        getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder> 
+            com.google.cloud.speech.v1.SpeechContext,
+            com.google.cloud.speech.v1.SpeechContext.Builder,
+            com.google.cloud.speech.v1.SpeechContextOrBuilder>
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechContext, com.google.cloud.speech.v1.SpeechContext.Builder, com.google.cloud.speech.v1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechContext,
+                com.google.cloud.speech.v1.SpeechContext.Builder,
+                com.google.cloud.speech.v1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3451,8 +3805,10 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
       return speechContextsBuilder_;
     }
 
-    private boolean enableWordTimeOffsets_ ;
+    private boolean enableWordTimeOffsets_;
     /**
+     *
+     *
      * 
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3461,6 +3817,7 @@ public com.google.cloud.speech.v1.SpeechContext.Builder addSpeechContextsBuilder
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3468,6 +3825,8 @@ public boolean getEnableWordTimeOffsets() { return enableWordTimeOffsets_; } /** + * + * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3476,16 +3835,19 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; + * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3494,17 +3856,20 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_ ; + private boolean enableWordConfidence_; /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3512,6 +3877,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3519,6 +3885,8 @@ public boolean getEnableWordConfidence() { return enableWordConfidence_; } /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3526,16 +3894,19 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; + * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3543,17 +3914,20 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_ ; + private boolean enableAutomaticPunctuation_; /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3562,6 +3936,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3569,6 +3944,8 @@ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3577,16 +3954,19 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3595,10 +3975,11 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -3606,8 +3987,13 @@ public Builder clearEnableAutomaticPunctuation() { private com.google.protobuf.BoolValue enableSpokenPunctuation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSpokenPunctuationBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + enableSpokenPunctuationBuilder_; /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3619,12 +4005,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3636,16 +4025,21 @@ public boolean hasEnableSpokenPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() { if (enableSpokenPunctuationBuilder_ == null) { - return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_; + return enableSpokenPunctuation_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableSpokenPunctuation_; } else { return enableSpokenPunctuationBuilder_.getMessage(); } } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3672,6 +4066,8 @@ public Builder setEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3696,6 +4092,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3712,7 +4110,9 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -3724,6 +4124,8 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3748,6 +4150,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3761,11 +4165,13 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-      
+
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3782,11 +4188,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
       if (enableSpokenPunctuationBuilder_ != null) {
         return enableSpokenPunctuationBuilder_.getMessageOrBuilder();
       } else {
-        return enableSpokenPunctuation_ == null ?
-            com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
+        return enableSpokenPunctuation_ == null
+            ? com.google.protobuf.BoolValue.getDefaultInstance()
+            : enableSpokenPunctuation_;
       }
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3800,14 +4209,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
         getEnableSpokenPunctuationFieldBuilder() {
       if (enableSpokenPunctuationBuilder_ == null) {
-        enableSpokenPunctuationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
-                getEnableSpokenPunctuation(),
-                getParentForChildren(),
-                isClean());
+        enableSpokenPunctuationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.BoolValue,
+                com.google.protobuf.BoolValue.Builder,
+                com.google.protobuf.BoolValueOrBuilder>(
+                getEnableSpokenPunctuation(), getParentForChildren(), isClean());
         enableSpokenPunctuation_ = null;
       }
       return enableSpokenPunctuationBuilder_;
@@ -3815,8 +4227,13 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
 
     private com.google.protobuf.BoolValue enableSpokenEmojis_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSpokenEmojisBuilder_;
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
+        enableSpokenEmojisBuilder_;
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3826,12 +4243,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3841,16 +4261,21 @@ public boolean hasEnableSpokenEmojis() {
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ public com.google.protobuf.BoolValue getEnableSpokenEmojis() { if (enableSpokenEmojisBuilder_ == null) { - return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_; + return enableSpokenEmojis_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableSpokenEmojis_; } else { return enableSpokenEmojisBuilder_.getMessage(); } } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3875,6 +4300,8 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3885,8 +4312,7 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(
-        com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -3897,6 +4323,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3911,7 +4339,9 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -3923,6 +4353,8 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3945,6 +4377,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3956,11 +4390,13 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-      
+
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3975,11 +4411,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
       if (enableSpokenEmojisBuilder_ != null) {
         return enableSpokenEmojisBuilder_.getMessageOrBuilder();
       } else {
-        return enableSpokenEmojis_ == null ?
-            com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
+        return enableSpokenEmojis_ == null
+            ? com.google.protobuf.BoolValue.getDefaultInstance()
+            : enableSpokenEmojis_;
       }
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3991,14 +4430,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
         getEnableSpokenEmojisFieldBuilder() {
       if (enableSpokenEmojisBuilder_ == null) {
-        enableSpokenEmojisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
-                getEnableSpokenEmojis(),
-                getParentForChildren(),
-                isClean());
+        enableSpokenEmojisBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.BoolValue,
+                com.google.protobuf.BoolValue.Builder,
+                com.google.protobuf.BoolValueOrBuilder>(
+                getEnableSpokenEmojis(), getParentForChildren(), isClean());
         enableSpokenEmojis_ = null;
       }
       return enableSpokenEmojisBuilder_;
@@ -4006,8 +4448,13 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
 
     private com.google.cloud.speech.v1.SpeakerDiarizationConfig diarizationConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeakerDiarizationConfig, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder> diarizationConfigBuilder_;
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig,
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder,
+            com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder>
+        diarizationConfigBuilder_;
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4020,12 +4467,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4038,16 +4488,21 @@ public boolean hasDiarizationConfig() {
      * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return The diarizationConfig. */ public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig() { if (diarizationConfigBuilder_ == null) { - return diarizationConfig_ == null ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; + return diarizationConfig_ == null + ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() + : diarizationConfig_; } else { return diarizationConfigBuilder_.getMessage(); } } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4075,6 +4530,8 @@ public Builder setDiarizationConfig(com.google.cloud.speech.v1.SpeakerDiarizatio
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4100,6 +4557,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4113,11 +4572,14 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(
+        com.google.cloud.speech.v1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -4129,6 +4591,8 @@ public Builder mergeDiarizationConfig(com.google.cloud.speech.v1.SpeakerDiarizat
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4154,6 +4618,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4167,12 +4633,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
-      
+    public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder
+        getDiarizationConfigBuilder() {
+
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4186,15 +4655,19 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder getDiarizatio
      *
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder
+        getDiarizationConfigOrBuilder() {
       if (diarizationConfigBuilder_ != null) {
         return diarizationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return diarizationConfig_ == null ?
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+        return diarizationConfig_ == null
+            ? com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()
+            : diarizationConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4209,14 +4682,17 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizati
      * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeakerDiarizationConfig, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder> 
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig,
+            com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder,
+            com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder>
         getDiarizationConfigFieldBuilder() {
       if (diarizationConfigBuilder_ == null) {
-        diarizationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeakerDiarizationConfig, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder>(
-                getDiarizationConfig(),
-                getParentForChildren(),
-                isClean());
+        diarizationConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeakerDiarizationConfig,
+                com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder,
+                com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder>(
+                getDiarizationConfig(), getParentForChildren(), isClean());
         diarizationConfig_ = null;
       }
       return diarizationConfigBuilder_;
@@ -4224,34 +4700,47 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizati
 
     private com.google.cloud.speech.v1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.RecognitionMetadata, com.google.cloud.speech.v1.RecognitionMetadata.Builder, com.google.cloud.speech.v1.RecognitionMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.speech.v1.RecognitionMetadata,
+            com.google.cloud.speech.v1.RecognitionMetadata.Builder,
+            com.google.cloud.speech.v1.RecognitionMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ public com.google.cloud.speech.v1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4272,6 +4761,8 @@ public Builder setMetadata(com.google.cloud.speech.v1.RecognitionMetadata value) return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4290,6 +4781,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4300,7 +4793,9 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -4312,6 +4807,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1.RecognitionMetadata valu return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4330,6 +4827,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4337,11 +4836,13 @@ public Builder clearMetadata() { * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4352,11 +4853,14 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1.RecognitionMetadata.getDefaultInstance() + : metadata_; } } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4364,14 +4868,17 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionMetadata, com.google.cloud.speech.v1.RecognitionMetadata.Builder, com.google.cloud.speech.v1.RecognitionMetadataOrBuilder> + com.google.cloud.speech.v1.RecognitionMetadata, + com.google.cloud.speech.v1.RecognitionMetadata.Builder, + com.google.cloud.speech.v1.RecognitionMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionMetadata, com.google.cloud.speech.v1.RecognitionMetadata.Builder, com.google.cloud.speech.v1.RecognitionMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionMetadata, + com.google.cloud.speech.v1.RecognitionMetadata.Builder, + com.google.cloud.speech.v1.RecognitionMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; @@ -4379,6 +4886,8 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil private java.lang.Object model_ = ""; /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4434,13 +4943,13 @@ public com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuil
      * 
* * string model = 13; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -4449,6 +4958,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4504,15 +5015,14 @@ public java.lang.String getModel() {
      * 
* * string model = 13; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -4520,6 +5030,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4575,20 +5087,22 @@ public java.lang.String getModel() {
      * 
* * string model = 13; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4644,15 +5158,18 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4708,23 +5225,25 @@ public Builder clearModel() {
      * 
* * string model = 13; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_ ; + private boolean useEnhanced_; /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -4736,6 +5255,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -4743,6 +5263,8 @@ public boolean getUseEnhanced() { return useEnhanced_; } /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -4754,16 +5276,19 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; + * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -4775,17 +5300,18 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4795,12 +5321,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionConfig) private static final com.google.cloud.speech.v1.RecognitionConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognitionConfig(); } @@ -4809,16 +5335,16 @@ public static com.google.cloud.speech.v1.RecognitionConfig getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4833,6 +5359,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java similarity index 94% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java index a07304d06..c3bdcc43d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognitionConfigOrBuilder extends +public interface RecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -15,10 +33,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -26,11 +47,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ com.google.cloud.speech.v1.RecognitionConfig.AudioEncoding getEncoding(); /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -42,11 +66,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -60,11 +87,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ int getAudioChannelCount(); /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -75,11 +105,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -90,10 +123,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -104,12 +140,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -126,11 +164,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - java.util.List - getAlternativeLanguageCodesList(); + java.util.List getAlternativeLanguageCodesList(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -147,10 +187,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -167,11 +210,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -188,13 +234,15 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -205,11 +253,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ int getMaxAlternatives(); /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -218,11 +269,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ boolean getProfanityFilter(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -232,10 +286,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -245,10 +302,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ com.google.cloud.speech.v1.SpeechAdaptation getAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -262,6 +322,8 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -272,9 +334,10 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
-      getSpeechContextsList();
+  java.util.List getSpeechContextsList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -287,6 +350,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechContext getSpeechContexts(int index);
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -299,6 +364,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   int getSpeechContextsCount();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -309,9 +376,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
+  java.util.List
       getSpeechContextsOrBuilderList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -322,10 +391,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -334,11 +404,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -346,11 +419,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -359,11 +435,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -375,10 +454,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -390,10 +472,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -409,6 +494,8 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -418,10 +505,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -431,10 +521,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -448,6 +541,8 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
+   *
+   *
    * 
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -460,10 +555,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -476,10 +574,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * .google.cloud.speech.v1.SpeakerDiarizationConfig diarization_config = 19; + * * @return The diarizationConfig. */ com.google.cloud.speech.v1.SpeakerDiarizationConfig getDiarizationConfig(); /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -496,24 +597,32 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
   com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ com.google.cloud.speech.v1.RecognitionMetadata getMetadata(); /** + * + * *
    * Metadata regarding this request.
    * 
@@ -523,6 +632,8 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder( com.google.cloud.speech.v1.RecognitionMetadataOrBuilder getMetadataOrBuilder(); /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -578,10 +689,13 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * string model = 13; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -637,12 +751,14 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * string model = 13; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -654,6 +770,7 @@ com.google.cloud.speech.v1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java index 5e39e8ad8..13c6f3d40 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadata.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ -@java.lang.Deprecated public final class RecognitionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +@java.lang.Deprecated +public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognitionMetadata) RecognitionMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionMetadata.newBuilder() to construct. private RecognitionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RecognitionMetadata() { interactionType_ = 0; microphoneDistance_ = 0; @@ -31,16 +50,15 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,60 +77,67 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - interactionType_ = rawValue; - break; - } - case 24: { + case 8: + { + int rawValue = input.readEnum(); - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - microphoneDistance_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + originalMediaType_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - recordingDeviceName_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + originalMimeType_ = s; + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + audioTopic_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,27 +145,31 @@ private RecognitionMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, + com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } /** + * + * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -148,9 +177,10 @@ private RecognitionMetadata(
    *
    * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.InteractionType}
    */
-  public enum InteractionType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -160,6 +190,8 @@ public enum InteractionType
      */
     INTERACTION_TYPE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Multiple people in a conversation or discussion. For example in a
      * meeting with two or more people actively participating. Typically
@@ -171,6 +203,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -180,6 +214,8 @@ public enum InteractionType
      */
     PRESENTATION(2),
     /**
+     *
+     *
      * 
      * A phone-call or video-conference in which two or more people, who are
      * not in the same room, are actively participating.
@@ -189,6 +225,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -197,6 +235,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -205,6 +245,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -213,6 +255,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -221,6 +265,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -233,6 +279,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -242,6 +290,8 @@ public enum InteractionType
      */
     public static final int INTERACTION_TYPE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Multiple people in a conversation or discussion. For example in a
      * meeting with two or more people actively participating. Typically
@@ -253,6 +303,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -262,6 +314,8 @@ public enum InteractionType
      */
     public static final int PRESENTATION_VALUE = 2;
     /**
+     *
+     *
      * 
      * A phone-call or video-conference in which two or more people, who are
      * not in the same room, are actively participating.
@@ -271,6 +325,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -279,6 +335,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -287,6 +345,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -295,6 +355,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -303,6 +365,8 @@ public enum InteractionType */ public static final int VOICE_COMMAND_VALUE = 7; /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -312,7 +376,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -337,45 +400,54 @@ public static InteractionType valueOf(int value) {
      */
     public static InteractionType forNumber(int value) {
       switch (value) {
-        case 0: return INTERACTION_TYPE_UNSPECIFIED;
-        case 1: return DISCUSSION;
-        case 2: return PRESENTATION;
-        case 3: return PHONE_CALL;
-        case 4: return VOICEMAIL;
-        case 5: return PROFESSIONALLY_PRODUCED;
-        case 6: return VOICE_SEARCH;
-        case 7: return VOICE_COMMAND;
-        case 8: return DICTATION;
-        default: return null;
+        case 0:
+          return INTERACTION_TYPE_UNSPECIFIED;
+        case 1:
+          return DISCUSSION;
+        case 2:
+          return PRESENTATION;
+        case 3:
+          return PHONE_CALL;
+        case 4:
+          return VOICEMAIL;
+        case 5:
+          return PROFESSIONALLY_PRODUCED;
+        case 6:
+          return VOICE_SEARCH;
+        case 7:
+          return VOICE_COMMAND;
+        case 8:
+          return DICTATION;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        InteractionType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public InteractionType findValueByNumber(int number) {
-              return InteractionType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public InteractionType findValueByNumber(int number) {
+                return InteractionType.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
       return com.google.cloud.speech.v1.RecognitionMetadata.getDescriptor().getEnumTypes().get(0);
     }
 
@@ -384,8 +456,7 @@ public InteractionType findValueByNumber(int number) {
     public static InteractionType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -403,15 +474,18 @@ private InteractionType(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the types of capture settings describing an audio file.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance} */ - public enum MicrophoneDistance - implements com.google.protobuf.ProtocolMessageEnum { + public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Audio type is not known.
      * 
@@ -420,6 +494,8 @@ public enum MicrophoneDistance */ MICROPHONE_DISTANCE_UNSPECIFIED(0), /** + * + * *
      * The audio was captured from a closely placed microphone. Eg. phone,
      * dictaphone, or handheld microphone. Generally if there speaker is within
@@ -430,6 +506,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -438,6 +516,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -449,6 +529,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -457,6 +539,8 @@ public enum MicrophoneDistance */ public static final int MICROPHONE_DISTANCE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The audio was captured from a closely placed microphone. Eg. phone,
      * dictaphone, or handheld microphone. Generally if there speaker is within
@@ -467,6 +551,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -475,6 +561,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -483,7 +571,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -508,11 +595,16 @@ public static MicrophoneDistance valueOf(int value) { */ public static MicrophoneDistance forNumber(int value) { switch (value) { - case 0: return MICROPHONE_DISTANCE_UNSPECIFIED; - case 1: return NEARFIELD; - case 2: return MIDFIELD; - case 3: return FARFIELD; - default: return null; + case 0: + return MICROPHONE_DISTANCE_UNSPECIFIED; + case 1: + return NEARFIELD; + case 2: + return MIDFIELD; + case 3: + return FARFIELD; + default: + return null; } } @@ -520,28 +612,28 @@ public static MicrophoneDistance forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - MicrophoneDistance> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MicrophoneDistance findValueByNumber(int number) { - return MicrophoneDistance.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MicrophoneDistance findValueByNumber(int number) { + return MicrophoneDistance.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.speech.v1.RecognitionMetadata.getDescriptor().getEnumTypes().get(1); } @@ -550,8 +642,7 @@ public MicrophoneDistance findValueByNumber(int number) { public static MicrophoneDistance valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -569,15 +660,18 @@ private MicrophoneDistance(int value) { } /** + * + * *
    * The original media the speech was recorded on.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType} */ - public enum OriginalMediaType - implements com.google.protobuf.ProtocolMessageEnum { + public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown original media type.
      * 
@@ -586,6 +680,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -594,6 +690,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -605,6 +703,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -613,6 +713,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -621,6 +723,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -629,7 +733,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -654,10 +757,14 @@ public static OriginalMediaType valueOf(int value) { */ public static OriginalMediaType forNumber(int value) { switch (value) { - case 0: return ORIGINAL_MEDIA_TYPE_UNSPECIFIED; - case 1: return AUDIO; - case 2: return VIDEO; - default: return null; + case 0: + return ORIGINAL_MEDIA_TYPE_UNSPECIFIED; + case 1: + return AUDIO; + case 2: + return VIDEO; + default: + return null; } } @@ -665,28 +772,28 @@ public static OriginalMediaType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - OriginalMediaType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OriginalMediaType findValueByNumber(int number) { - return OriginalMediaType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OriginalMediaType findValueByNumber(int number) { + return OriginalMediaType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.speech.v1.RecognitionMetadata.getDescriptor().getEnumTypes().get(2); } @@ -695,8 +802,7 @@ public OriginalMediaType findValueByNumber(int number) { public static OriginalMediaType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -714,15 +820,18 @@ private OriginalMediaType(int value) { } /** + * + * *
    * The type of device the speech was recorded with.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType} */ - public enum RecordingDeviceType - implements com.google.protobuf.ProtocolMessageEnum { + public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The recording device is unknown.
      * 
@@ -731,6 +840,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -739,6 +850,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -747,6 +860,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -755,6 +870,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -763,6 +880,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -771,6 +890,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -782,6 +903,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -790,6 +913,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -798,6 +923,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -806,6 +933,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -814,6 +943,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -822,6 +953,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -830,6 +963,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -838,7 +973,6 @@ public enum RecordingDeviceType */ public static final int OTHER_INDOOR_DEVICE_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -863,14 +997,22 @@ public static RecordingDeviceType valueOf(int value) { */ public static RecordingDeviceType forNumber(int value) { switch (value) { - case 0: return RECORDING_DEVICE_TYPE_UNSPECIFIED; - case 1: return SMARTPHONE; - case 2: return PC; - case 3: return PHONE_LINE; - case 4: return VEHICLE; - case 5: return OTHER_OUTDOOR_DEVICE; - case 6: return OTHER_INDOOR_DEVICE; - default: return null; + case 0: + return RECORDING_DEVICE_TYPE_UNSPECIFIED; + case 1: + return SMARTPHONE; + case 2: + return PC; + case 3: + return PHONE_LINE; + case 4: + return VEHICLE; + case 5: + return OTHER_OUTDOOR_DEVICE; + case 6: + return OTHER_INDOOR_DEVICE; + default: + return null; } } @@ -878,28 +1020,28 @@ public static RecordingDeviceType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RecordingDeviceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RecordingDeviceType findValueByNumber(int number) { - return RecordingDeviceType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RecordingDeviceType findValueByNumber(int number) { + return RecordingDeviceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.speech.v1.RecognitionMetadata.getDescriptor().getEnumTypes().get(3); } @@ -908,8 +1050,7 @@ public RecordingDeviceType findValueByNumber(int number) { public static RecordingDeviceType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -929,33 +1070,46 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * * @return The interactionType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -964,6 +1118,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -974,87 +1129,134 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + @java.lang.Override + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1062,6 +1264,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -1070,14 +1273,15 @@ public java.lang.String getRecordingDeviceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordingDeviceName_ = s; return s; } } /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1085,16 +1289,15 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string recording_device_name = 7; + * * @return The bytes for recordingDeviceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecordingDeviceNameBytes() { + public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { java.lang.Object ref = recordingDeviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recordingDeviceName_ = b; return b; } else { @@ -1105,6 +1308,8 @@ public java.lang.String getRecordingDeviceName() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1113,6 +1318,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1121,14 +1327,15 @@ public java.lang.String getOriginalMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalMimeType_ = s; return s; } } /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1137,16 +1344,15 @@ public java.lang.String getOriginalMimeType() {
    * 
* * string original_mime_type = 8; + * * @return The bytes for originalMimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getOriginalMimeTypeBytes() { + public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { java.lang.Object ref = originalMimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalMimeType_ = b; return b; } else { @@ -1157,12 +1363,15 @@ public java.lang.String getOriginalMimeType() { public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ @java.lang.Override @@ -1171,30 +1380,30 @@ public java.lang.String getAudioTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audioTopic_ = s; return s; } } /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getAudioTopicBytes() { + public com.google.protobuf.ByteString getAudioTopicBytes() { java.lang.Object ref = audioTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audioTopic_ = b; return b; } else { @@ -1203,6 +1412,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1214,21 +1424,32 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (interactionType_ != com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.INTERACTION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (interactionType_ + != com.google.cloud.speech.v1.RecognitionMetadata.InteractionType + .INTERACTION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, interactionType_); } if (industryNaicsCodeOfAudio_ != 0) { output.writeUInt32(3, industryNaicsCodeOfAudio_); } - if (microphoneDistance_ != com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.MICROPHONE_DISTANCE_UNSPECIFIED.getNumber()) { + if (microphoneDistance_ + != com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance + .MICROPHONE_DISTANCE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, microphoneDistance_); } - if (originalMediaType_ != com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.ORIGINAL_MEDIA_TYPE_UNSPECIFIED.getNumber()) { + if (originalMediaType_ + != com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType + .ORIGINAL_MEDIA_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, originalMediaType_); } - if (recordingDeviceType_ != com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.RECORDING_DEVICE_TYPE_UNSPECIFIED.getNumber()) { + if (recordingDeviceType_ + != com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + .RECORDING_DEVICE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, recordingDeviceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordingDeviceName_)) { @@ -1249,25 +1470,32 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (interactionType_ != com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.INTERACTION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, interactionType_); + if (interactionType_ + != com.google.cloud.speech.v1.RecognitionMetadata.InteractionType + .INTERACTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, interactionType_); } if (industryNaicsCodeOfAudio_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, industryNaicsCodeOfAudio_); - } - if (microphoneDistance_ != com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.MICROPHONE_DISTANCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, microphoneDistance_); - } - if (originalMediaType_ != com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.ORIGINAL_MEDIA_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, originalMediaType_); - } - if (recordingDeviceType_ != com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.RECORDING_DEVICE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, recordingDeviceType_); + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, industryNaicsCodeOfAudio_); + } + if (microphoneDistance_ + != com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance + .MICROPHONE_DISTANCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, microphoneDistance_); + } + if (originalMediaType_ + != com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType + .ORIGINAL_MEDIA_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, originalMediaType_); + } + if (recordingDeviceType_ + != com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + .RECORDING_DEVICE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, recordingDeviceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordingDeviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, recordingDeviceName_); @@ -1286,25 +1514,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognitionMetadata other = (com.google.cloud.speech.v1.RecognitionMetadata) obj; + com.google.cloud.speech.v1.RecognitionMetadata other = + (com.google.cloud.speech.v1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() - != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName() - .equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType() - .equals(other.getOriginalMimeType())) return false; - if (!getAudioTopic() - .equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; + if (!getAudioTopic().equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1337,118 +1562,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognitionMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognitionMetadata) com.google.cloud.speech.v1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognitionMetadata.class, com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1.RecognitionMetadata.class, + com.google.cloud.speech.v1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognitionMetadata.newBuilder() @@ -1456,16 +1690,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1489,9 +1722,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; } @java.lang.Override @@ -1510,7 +1743,8 @@ public com.google.cloud.speech.v1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1.RecognitionMetadata result = new com.google.cloud.speech.v1.RecognitionMetadata(this); + com.google.cloud.speech.v1.RecognitionMetadata result = + new com.google.cloud.speech.v1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1527,38 +1761,39 @@ public com.google.cloud.speech.v1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata)other); + return mergeFrom((com.google.cloud.speech.v1.RecognitionMetadata) other); } else { super.mergeFrom(other); return this; @@ -1625,80 +1860,107 @@ public Builder mergeFrom( private int interactionType_ = 0; /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.valueOf(interactionType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType(com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType( + com.google.cloud.speech.v1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_ ; + private int industryNaicsCodeOfAudio_; /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1707,6 +1969,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1714,6 +1977,8 @@ public int getIndustryNaicsCodeOfAudio() { return industryNaicsCodeOfAudio_; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1722,16 +1987,19 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1740,10 +2008,11 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -1751,73 +2020,100 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + public com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance(com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance( + com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -1825,73 +2121,99 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType(com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType( + com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -1899,73 +2221,105 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + public com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType(com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType( + com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -1973,6 +2327,8 @@ public Builder clearRecordingDeviceType() { private java.lang.Object recordingDeviceName_ = ""; /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1980,13 +2336,13 @@ public Builder clearRecordingDeviceType() {
      * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ public java.lang.String getRecordingDeviceName() { java.lang.Object ref = recordingDeviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordingDeviceName_ = s; return s; @@ -1995,6 +2351,8 @@ public java.lang.String getRecordingDeviceName() { } } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2002,15 +2360,14 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @return The bytes for recordingDeviceName. */ - public com.google.protobuf.ByteString - getRecordingDeviceNameBytes() { + public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { java.lang.Object ref = recordingDeviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recordingDeviceName_ = b; return b; } else { @@ -2018,6 +2375,8 @@ public java.lang.String getRecordingDeviceName() { } } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2025,20 +2384,22 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName( - java.lang.String value) { + public Builder setRecordingDeviceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2046,15 +2407,18 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2062,16 +2426,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2079,6 +2443,8 @@ public Builder setRecordingDeviceNameBytes( private java.lang.Object originalMimeType_ = ""; /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2087,13 +2453,13 @@ public Builder setRecordingDeviceNameBytes(
      * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ public java.lang.String getOriginalMimeType() { java.lang.Object ref = originalMimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalMimeType_ = s; return s; @@ -2102,6 +2468,8 @@ public java.lang.String getOriginalMimeType() { } } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2110,15 +2478,14 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @return The bytes for originalMimeType. */ - public com.google.protobuf.ByteString - getOriginalMimeTypeBytes() { + public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { java.lang.Object ref = originalMimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalMimeType_ = b; return b; } else { @@ -2126,6 +2493,8 @@ public java.lang.String getOriginalMimeType() { } } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2134,20 +2503,22 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType( - java.lang.String value) { + public Builder setOriginalMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2156,15 +2527,18 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2173,16 +2547,16 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; @@ -2190,19 +2564,21 @@ public Builder setOriginalMimeTypeBytes( private java.lang.Object audioTopic_ = ""; /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return The audioTopic. */ public java.lang.String getAudioTopic() { java.lang.Object ref = audioTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audioTopic_ = s; return s; @@ -2211,21 +2587,22 @@ public java.lang.String getAudioTopic() { } } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ - public com.google.protobuf.ByteString - getAudioTopicBytes() { + public com.google.protobuf.ByteString getAudioTopicBytes() { java.lang.Object ref = audioTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audioTopic_ = b; return b; } else { @@ -2233,64 +2610,71 @@ public java.lang.String getAudioTopic() { } } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic( - java.lang.String value) { + public Builder setAudioTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2300,12 +2684,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognitionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognitionMetadata) private static final com.google.cloud.speech.v1.RecognitionMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognitionMetadata(); } @@ -2314,16 +2698,16 @@ public static com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2338,6 +2722,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java similarity index 76% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java index 5b3a0073f..bd7b23985 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognitionMetadataOrBuilder.java @@ -1,32 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -@java.lang.Deprecated public interface RecognitionMetadataOrBuilder extends +@java.lang.Deprecated +public interface RecognitionMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognitionMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * * @return The enum numeric value on the wire for interactionType. */ int getInteractionTypeValue(); /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* * .google.cloud.speech.v1.RecognitionMetadata.InteractionType interaction_type = 1; + * * @return The interactionType. */ com.google.cloud.speech.v1.RecognitionMetadata.InteractionType getInteractionType(); /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -35,68 +60,97 @@
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ int getIndustryNaicsCodeOfAudio(); /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ int getMicrophoneDistanceValue(); /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * .google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ com.google.cloud.speech.v1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance(); /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ int getOriginalMediaTypeValue(); /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * .google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ com.google.cloud.speech.v1.RecognitionMetadata.OriginalMediaType getOriginalMediaType(); /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ int getRecordingDeviceTypeValue(); /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ com.google.cloud.speech.v1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType(); /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -104,10 +158,13 @@
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ java.lang.String getRecordingDeviceName(); /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -115,12 +172,14 @@
    * 
* * string recording_device_name = 7; + * * @return The bytes for recordingDeviceName. */ - com.google.protobuf.ByteString - getRecordingDeviceNameBytes(); + com.google.protobuf.ByteString getRecordingDeviceNameBytes(); /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -129,10 +188,13 @@
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ java.lang.String getOriginalMimeType(); /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -141,30 +203,35 @@
    * 
* * string original_mime_type = 8; + * * @return The bytes for originalMimeType. */ - com.google.protobuf.ByteString - getOriginalMimeTypeBytes(); + com.google.protobuf.ByteString getOriginalMimeTypeBytes(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString - getAudioTopicBytes(); + com.google.protobuf.ByteString getAudioTopicBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java similarity index 61% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java index 8940768da..91c9cb18f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ -public final class RecognizeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeRequest) RecognizeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognizeRequest() { - } + + private RecognizeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private RecognizeRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = input.readMessage(com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.speech.v1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); + } + audio_ = + input.readMessage( + com.google.cloud.speech.v1.RecognitionAudio.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +114,42 @@ private RecognizeRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, + com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -128,25 +157,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -156,11 +196,16 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -168,23 +213,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -192,6 +248,7 @@ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -221,12 +277,10 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,22 +290,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeRequest other = (com.google.cloud.speech.v1.RecognizeRequest) obj; + com.google.cloud.speech.v1.RecognizeRequest other = + (com.google.cloud.speech.v1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -277,118 +330,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.RecognizeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeRequest) com.google.cloud.speech.v1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.RecognizeRequest.class, com.google.cloud.speech.v1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1.RecognizeRequest.class, + com.google.cloud.speech.v1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.RecognizeRequest.newBuilder() @@ -396,16 +458,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +486,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; } @java.lang.Override @@ -446,7 +507,8 @@ public com.google.cloud.speech.v1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1.RecognizeRequest result = new com.google.cloud.speech.v1.RecognizeRequest(this); + com.google.cloud.speech.v1.RecognizeRequest result = + new com.google.cloud.speech.v1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -465,38 +527,39 @@ public com.google.cloud.speech.v1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest)other); + return mergeFrom((com.google.cloud.speech.v1.RecognizeRequest) other); } else { super.mergeFrom(other); return this; @@ -542,42 +605,61 @@ public Builder mergeFrom( private com.google.cloud.speech.v1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -593,15 +675,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -612,18 +697,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -635,12 +726,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -654,51 +749,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -706,39 +817,58 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( private com.google.cloud.speech.v1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -754,14 +884,17 @@ public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAudio( - com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { + public Builder setAudio(com.google.cloud.speech.v1.RecognitionAudio.Builder builderForValue) { if (audioBuilder_ == null) { audio_ = builderForValue.build(); onChanged(); @@ -772,17 +905,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -794,11 +933,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1.RecognitionAudio value) { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -812,55 +955,71 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionAudio, com.google.cloud.speech.v1.RecognitionAudio.Builder, com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionAudio, + com.google.cloud.speech.v1.RecognitionAudio.Builder, + com.google.cloud.speech.v1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -870,12 +1029,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognizeRequest) private static final com.google.cloud.speech.v1.RecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognizeRequest(); } @@ -884,16 +1043,16 @@ public static com.google.cloud.speech.v1.RecognizeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -908,6 +1067,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..df0bfe2ab --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public interface RecognizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.speech.v1.RecognitionConfig getConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audio. + */ + com.google.cloud.speech.v1.RecognitionAudio getAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java index 42ddf12c6..7d9714ef5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
  */
-public final class RecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,35 +73,41 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,8 +115,7 @@ private RecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -102,22 +124,27 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.RecognizeResponse.class,
+            com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -130,6 +157,8 @@ public java.util.List getRes
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -138,11 +167,13 @@ public java.util.List getRes
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResultsOrBuilderList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -155,6 +186,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -167,6 +200,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
     return results_.get(index);
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -183,11 +218,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
   public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Duration totalBilledTime_;
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -195,18 +233,25 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -219,6 +264,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +276,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } @@ -248,12 +293,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -263,19 +306,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1.RecognizeResponse other = (com.google.cloud.speech.v1.RecognizeResponse) obj; + com.google.cloud.speech.v1.RecognizeResponse other = + (com.google.cloud.speech.v1.RecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -301,97 +343,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -400,21 +449,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.RecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.RecognizeResponse)
       com.google.cloud.speech.v1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.RecognizeResponse.class, com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.RecognizeResponse.class,
+              com.google.cloud.speech.v1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.RecognizeResponse.newBuilder()
@@ -422,17 +473,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -452,9 +503,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -473,7 +524,8 @@ public com.google.cloud.speech.v1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.RecognizeResponse result = new com.google.cloud.speech.v1.RecognizeResponse(this);
+      com.google.cloud.speech.v1.RecognizeResponse result =
+          new com.google.cloud.speech.v1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -497,38 +549,39 @@ public com.google.cloud.speech.v1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1.RecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -555,9 +608,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.RecognizeResponse other) {
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -594,21 +648,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -624,6 +686,8 @@ public java.util.List getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -639,6 +703,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -654,6 +720,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -661,8 +729,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index)
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public Builder setResults(
-        int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
+    public Builder setResults(int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -676,6 +743,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -695,6 +764,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -716,6 +787,8 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -723,8 +796,7 @@ public Builder addResults(com.google.cloud.speech.v1.SpeechRecognitionResult val
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public Builder addResults(
-        int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
+    public Builder addResults(int index, com.google.cloud.speech.v1.SpeechRecognitionResult value) {
       if (resultsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -738,6 +810,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -757,6 +831,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -776,6 +852,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -787,8 +865,7 @@ public Builder addAllResults(
         java.lang.Iterable values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -796,6 +873,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -814,6 +893,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -832,6 +913,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -839,11 +922,12 @@ public Builder removeResults(int index) {
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuilder(int index) {
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -854,11 +938,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder getResultsBuil
     public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);  } else {
+        return results_.get(index);
+      } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -866,8 +953,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -875,6 +962,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -883,10 +972,12 @@ public com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrB
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -894,12 +985,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder(
-        int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuilder(int index) {
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -907,20 +1000,23 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionResult, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechRecognitionResult,
+                com.google.cloud.speech.v1.SpeechRecognitionResult.Builder,
+                com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -928,34 +1024,47 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult.Builder addResultsBuil
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -976,14 +1085,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -994,6 +1104,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1004,7 +1116,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1016,6 +1130,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1034,6 +1150,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1041,11 +1159,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1056,11 +1176,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { if (totalBilledTimeBuilder_ != null) { return totalBilledTimeBuilder_.getMessageOrBuilder(); } else { - return totalBilledTime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1068,21 +1191,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), - getParentForChildren(), - isClean()); + totalBilledTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), getParentForChildren(), isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1092,12 +1218,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.RecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.RecognizeResponse) private static final com.google.cloud.speech.v1.RecognizeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.RecognizeResponse(); } @@ -1106,16 +1232,16 @@ public static com.google.cloud.speech.v1.RecognizeResponse getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,6 +1256,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java index d2b282a71..ea3880945 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/RecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface RecognizeResponseOrBuilder extends +public interface RecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java index 72dfa283a..cbd6b730e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeakerDiarizationConfig() { - } + + private SpeakerDiarizationConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,33 +68,33 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: { - - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: { - - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: { - - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: + { + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: + { + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,29 +102,33 @@ private SpeakerDiarizationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -116,6 +136,7 @@ private SpeakerDiarizationConfig(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -126,6 +147,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -133,6 +156,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -143,6 +167,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -150,6 +176,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -160,21 +187,27 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. - * See google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See + * google/cloud/speech/v1/cloud_speech.proto;l=457 * @return The speakerTag. */ @java.lang.Override - @java.lang.Deprecated public int getSpeakerTag() { + @java.lang.Deprecated + public int getSpeakerTag() { return speakerTag_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableSpeakerDiarization_ != false) { output.writeBool(1, enableSpeakerDiarization_); } @@ -210,20 +242,16 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,21 +261,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1.SpeakerDiarizationConfig other = + (com.google.cloud.speech.v1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() - != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() - != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() - != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,8 +285,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSpeakerDiarization()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpeakerDiarization()); hash = (37 * hash) + MIN_SPEAKER_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMinSpeakerCount(); hash = (37 * hash) + MAX_SPEAKER_COUNT_FIELD_NUMBER; @@ -274,117 +298,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeakerDiarizationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.cloud.speech.v1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeakerDiarizationConfig.newBuilder() @@ -392,16 +425,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override @@ -438,7 +470,8 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -451,38 +484,39 @@ public com.google.cloud.speech.v1.SpeakerDiarizationConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig)other); + return mergeFrom((com.google.cloud.speech.v1.SpeakerDiarizationConfig) other); } else { super.mergeFrom(other); return this; @@ -490,7 +524,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeakerDiarizationConfig other) { - if (other == com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.SpeakerDiarizationConfig.getDefaultInstance()) + return this; if (other.getEnableSpeakerDiarization() != false) { setEnableSpeakerDiarization(other.getEnableSpeakerDiarization()); } @@ -522,7 +557,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -532,8 +568,10 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_ ; + private boolean enableSpeakerDiarization_; /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -541,6 +579,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -548,6 +587,8 @@ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -555,16 +596,19 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; + * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -572,17 +616,20 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_ ; + private int minSpeakerCount_; /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -590,6 +637,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -597,6 +645,8 @@ public int getMinSpeakerCount() { return minSpeakerCount_; } /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -604,16 +654,19 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; + * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -621,17 +674,20 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_ ; + private int maxSpeakerCount_; /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -639,6 +695,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -646,6 +703,8 @@ public int getMaxSpeakerCount() { return maxSpeakerCount_; } /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -653,16 +712,19 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -670,66 +732,82 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. - * See google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See + * google/cloud/speech/v1/cloud_speech.proto;l=457 * @return The speakerTag. */ @java.lang.Override - @java.lang.Deprecated public int getSpeakerTag() { + @java.lang.Deprecated + public int getSpeakerTag() { return speakerTag_; } /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. - * See google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See + * google/cloud/speech/v1/cloud_speech.proto;l=457 * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated + public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. - * See google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See + * google/cloud/speech/v1/cloud_speech.proto;l=457 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { - + @java.lang.Deprecated + public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -739,12 +817,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeakerDiarizationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeakerDiarizationConfig) private static final com.google.cloud.speech.v1.SpeakerDiarizationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeakerDiarizationConfig(); } @@ -753,16 +831,16 @@ public static com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -777,6 +855,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java index cb178fda1..cf71a32e1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeakerDiarizationConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeakerDiarizationConfigOrBuilder extends +public interface SpeakerDiarizationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -15,11 +33,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -27,11 +48,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -39,19 +63,25 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ int getMaxSpeakerCount(); /** + * + * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. - * See google/cloud/speech/v1/cloud_speech.proto;l=457 + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @deprecated google.cloud.speech.v1.SpeakerDiarizationConfig.speaker_tag is deprecated. See + * google/cloud/speech/v1/cloud_speech.proto;l=457 * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java index 1ba9f5acf..3bcc98af9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/resource.proto package com.google.cloud.speech.v1; /** + * + * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ -public final class SpeechAdaptation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechAdaptation) SpeechAdaptationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,40 +73,45 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + phraseSetReferences_.add(s); + break; } - phraseSetReferences_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,8 +119,7 @@ private SpeechAdaptation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -113,22 +134,27 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, + com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -142,6 +168,8 @@ public java.util.List getPhraseSetsList()
     return phraseSets_;
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -151,11 +179,13 @@ public java.util.List getPhraseSetsList()
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPhraseSetsOrBuilderList() {
     return phraseSets_;
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -169,6 +199,8 @@ public int getPhraseSetsCount() {
     return phraseSets_.size();
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -182,6 +214,8 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
     return phraseSets_.get(index);
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -191,42 +225,52 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList - getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { return phraseSetReferences_; } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -234,22 +278,27 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -264,6 +313,8 @@ public java.util.List getCustomClassesLi
     return customClasses_;
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -274,11 +325,13 @@ public java.util.List getCustomClassesLi
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getCustomClassesOrBuilderList() {
     return customClasses_;
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -293,6 +346,8 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -307,6 +362,8 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
     return customClasses_.get(index);
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -317,12 +374,12 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
     return customClasses_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -334,8 +391,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < phraseSets_.size(); i++) {
       output.writeMessage(1, phraseSets_.get(i));
     }
@@ -355,8 +411,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < phraseSets_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, phraseSets_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, phraseSets_.get(i));
     }
     {
       int dataSize = 0;
@@ -367,8 +422,7 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -378,19 +432,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechAdaptation other = (com.google.cloud.speech.v1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1.SpeechAdaptation other =
+        (com.google.cloud.speech.v1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList()
-        .equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList()
-        .equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList()
-        .equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -419,118 +471,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.speech.v1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechAdaptation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechAdaptation) com.google.cloud.speech.v1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechAdaptation.class, com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1.SpeechAdaptation.class, + com.google.cloud.speech.v1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechAdaptation.newBuilder() @@ -538,18 +599,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +632,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechResourceProto.internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechResourceProto + .internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; } @java.lang.Override @@ -592,7 +653,8 @@ public com.google.cloud.speech.v1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1.SpeechAdaptation result = new com.google.cloud.speech.v1.SpeechAdaptation(this); + com.google.cloud.speech.v1.SpeechAdaptation result = + new com.google.cloud.speech.v1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -625,38 +687,39 @@ public com.google.cloud.speech.v1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechAdaptation) other); } else { super.mergeFrom(other); return this; @@ -683,9 +746,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptation other) { phraseSetsBuilder_ = null; phraseSets_ = other.phraseSets_; bitField0_ = (bitField0_ & ~0x00000001); - phraseSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPhraseSetsFieldBuilder() : null; + phraseSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhraseSetsFieldBuilder() + : null; } else { phraseSetsBuilder_.addAllMessages(other.phraseSets_); } @@ -719,9 +783,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechAdaptation other) { customClassesBuilder_ = null; customClasses_ = other.customClasses_; bitField0_ = (bitField0_ & ~0x00000004); - customClassesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomClassesFieldBuilder() : null; + customClassesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomClassesFieldBuilder() + : null; } else { customClassesBuilder_.addAllMessages(other.customClasses_); } @@ -755,21 +820,28 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { phraseSets_ = new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -786,6 +858,8 @@ public java.util.List getPhraseSetsList()
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -802,6 +876,8 @@ public int getPhraseSetsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -818,6 +894,8 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -826,8 +904,7 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index) {
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public Builder setPhraseSets(
-        int index, com.google.cloud.speech.v1.PhraseSet value) {
+    public Builder setPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet value) {
       if (phraseSetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -841,6 +918,8 @@ public Builder setPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -861,6 +940,8 @@ public Builder setPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -883,6 +964,8 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -891,8 +974,7 @@ public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet value) {
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public Builder addPhraseSets(
-        int index, com.google.cloud.speech.v1.PhraseSet value) {
+    public Builder addPhraseSets(int index, com.google.cloud.speech.v1.PhraseSet value) {
       if (phraseSetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -906,6 +988,8 @@ public Builder addPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -914,8 +998,7 @@ public Builder addPhraseSets(
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public Builder addPhraseSets(
-        com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) {
+    public Builder addPhraseSets(com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) {
       if (phraseSetsBuilder_ == null) {
         ensurePhraseSetsIsMutable();
         phraseSets_.add(builderForValue.build());
@@ -926,6 +1009,8 @@ public Builder addPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -946,6 +1031,8 @@ public Builder addPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -958,8 +1045,7 @@ public Builder addAllPhraseSets(
         java.lang.Iterable values) {
       if (phraseSetsBuilder_ == null) {
         ensurePhraseSetsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, phraseSets_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSets_);
         onChanged();
       } else {
         phraseSetsBuilder_.addAllMessages(values);
@@ -967,6 +1053,8 @@ public Builder addAllPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -986,6 +1074,8 @@ public Builder clearPhraseSets() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1005,6 +1095,8 @@ public Builder removePhraseSets(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1013,11 +1105,12 @@ public Builder removePhraseSets(int index) {
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder(int index) {
       return getPhraseSetsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1026,14 +1119,16 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetsBuilder(
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
       if (phraseSetsBuilder_ == null) {
-        return phraseSets_.get(index);  } else {
+        return phraseSets_.get(index);
+      } else {
         return phraseSetsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1042,8 +1137,8 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public java.util.List 
-         getPhraseSetsOrBuilderList() {
+    public java.util.List
+        getPhraseSetsOrBuilderList() {
       if (phraseSetsBuilder_ != null) {
         return phraseSetsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1051,6 +1146,8 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1060,10 +1157,12 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
     public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder() {
-      return getPhraseSetsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1.PhraseSet.getDefaultInstance());
+      return getPhraseSetsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1.PhraseSet.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1072,12 +1171,13 @@ public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder() {
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder(
-        int index) {
-      return getPhraseSetsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1.PhraseSet.getDefaultInstance());
+    public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder(int index) {
+      return getPhraseSetsFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v1.PhraseSet.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1086,61 +1186,76 @@ public com.google.cloud.speech.v1.PhraseSet.Builder addPhraseSetsBuilder(
      *
      * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
      */
-    public java.util.List 
-         getPhraseSetsBuilderList() {
+    public java.util.List getPhraseSetsBuilderList() {
       return getPhraseSetsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> 
+            com.google.cloud.speech.v1.PhraseSet,
+            com.google.cloud.speech.v1.PhraseSet.Builder,
+            com.google.cloud.speech.v1.PhraseSetOrBuilder>
         getPhraseSetsFieldBuilder() {
       if (phraseSetsBuilder_ == null) {
-        phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder>(
-                phraseSets_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        phraseSetsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.PhraseSet,
+                com.google.cloud.speech.v1.PhraseSet.Builder,
+                com.google.cloud.speech.v1.PhraseSetOrBuilder>(
+                phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         phraseSets_ = null;
       }
       return phraseSetsBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList phraseSetReferences_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensurePhraseSetReferencesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(phraseSetReferences_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList - getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { return phraseSetReferences_.getUnmodifiableView(); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -1148,80 +1263,95 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences( - int index, java.lang.String value) { + public Builder setPhraseSetReferences(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences( - java.lang.String value) { + public Builder addPhraseSetReferences(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences( - java.lang.Iterable values) { + public Builder addAllPhraseSetReferences(java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1231,20 +1361,23 @@ public Builder clearPhraseSetReferences() { return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1252,18 +1385,25 @@ public Builder addPhraseSetReferencesBytes( } private java.util.List customClasses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(customClasses_); + customClasses_ = + new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> customClassesBuilder_; + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder> + customClassesBuilder_; /** + * + * *
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1281,6 +1421,8 @@ public java.util.List getCustomClassesLi
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1298,6 +1440,8 @@ public int getCustomClassesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1315,6 +1459,8 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1324,8 +1470,7 @@ public com.google.cloud.speech.v1.CustomClass getCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public Builder setCustomClasses(
-        int index, com.google.cloud.speech.v1.CustomClass value) {
+    public Builder setCustomClasses(int index, com.google.cloud.speech.v1.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1339,6 +1484,8 @@ public Builder setCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1360,6 +1507,8 @@ public Builder setCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1383,6 +1532,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v1.CustomClass value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1392,8 +1543,7 @@ public Builder addCustomClasses(com.google.cloud.speech.v1.CustomClass value) {
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public Builder addCustomClasses(
-        int index, com.google.cloud.speech.v1.CustomClass value) {
+    public Builder addCustomClasses(int index, com.google.cloud.speech.v1.CustomClass value) {
       if (customClassesBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1407,6 +1557,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1428,6 +1580,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1449,6 +1603,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1462,8 +1618,7 @@ public Builder addAllCustomClasses(
         java.lang.Iterable values) {
       if (customClassesBuilder_ == null) {
         ensureCustomClassesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, customClasses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customClasses_);
         onChanged();
       } else {
         customClassesBuilder_.addAllMessages(values);
@@ -1471,6 +1626,8 @@ public Builder addAllCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1491,6 +1648,8 @@ public Builder clearCustomClasses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1511,6 +1670,8 @@ public Builder removeCustomClasses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1520,11 +1681,12 @@ public Builder removeCustomClasses(int index) {
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder(int index) {
       return getCustomClassesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1534,14 +1696,16 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassesBuilder(
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index) {
       if (customClassesBuilder_ == null) {
-        return customClasses_.get(index);  } else {
+        return customClasses_.get(index);
+      } else {
         return customClassesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1551,8 +1715,8 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public java.util.List 
-         getCustomClassesOrBuilderList() {
+    public java.util.List
+        getCustomClassesOrBuilderList() {
       if (customClassesBuilder_ != null) {
         return customClassesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1560,6 +1724,8 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1570,10 +1736,12 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
     public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder() {
-      return getCustomClassesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1.CustomClass.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1583,12 +1751,13 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder()
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
-        int index) {
-      return getCustomClassesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1.CustomClass.getDefaultInstance());
+    public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(int index) {
+      return getCustomClassesFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v1.CustomClass.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1598,16 +1767,22 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
      *
      * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
      */
-    public java.util.List 
-         getCustomClassesBuilderList() {
+    public java.util.List
+        getCustomClassesBuilderList() {
       return getCustomClassesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> 
+            com.google.cloud.speech.v1.CustomClass,
+            com.google.cloud.speech.v1.CustomClass.Builder,
+            com.google.cloud.speech.v1.CustomClassOrBuilder>
         getCustomClassesFieldBuilder() {
       if (customClassesBuilder_ == null) {
-        customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder>(
+        customClassesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.CustomClass,
+                com.google.cloud.speech.v1.CustomClass.Builder,
+                com.google.cloud.speech.v1.CustomClassOrBuilder>(
                 customClasses_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -1616,9 +1791,9 @@ public com.google.cloud.speech.v1.CustomClass.Builder addCustomClassesBuilder(
       }
       return customClassesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1628,12 +1803,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechAdaptation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechAdaptation)
   private static final com.google.cloud.speech.v1.SpeechAdaptation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechAdaptation();
   }
@@ -1642,16 +1817,16 @@ public static com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechAdaptation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechAdaptation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechAdaptation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechAdaptation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1666,6 +1841,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
index b40c4c5a0..7ac546836 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/resource.proto
 
 package com.google.cloud.speech.v1;
 
-public interface SpeechAdaptationOrBuilder extends
+public interface SpeechAdaptationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -16,9 +34,10 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
-      getPhraseSetsList();
+  java.util.List getPhraseSetsList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -29,6 +48,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   com.google.cloud.speech.v1.PhraseSet getPhraseSets(int index);
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -39,6 +60,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   int getPhraseSetsCount();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -47,9 +70,11 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
+  java.util.List
       getPhraseSetsOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -58,51 +83,66 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - java.util.List - getPhraseSetReferencesList(); + java.util.List getPhraseSetReferencesList(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -112,9 +152,10 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List 
-      getCustomClassesList();
+  java.util.List getCustomClassesList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -126,6 +167,8 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   com.google.cloud.speech.v1.CustomClass getCustomClasses(int index);
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -137,6 +180,8 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   int getCustomClassesCount();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -146,9 +191,11 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  java.util.List 
+  java.util.List
       getCustomClassesOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -158,6 +205,5 @@ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
 }
diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java
new file mode 100644
index 000000000..081817d7e
--- /dev/null
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechAdaptationProto.java
@@ -0,0 +1,311 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/speech/v1/cloud_speech_adaptation.proto
+
+package com.google.cloud.speech.v1;
+
+public final class SpeechAdaptationProto {
+  private SpeechAdaptationProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_CreatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_GetPhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_GetPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_ListPhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_ListPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_ListPhraseSetResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_ListPhraseSetResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_DeletePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_CreateCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_CreateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_GetCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_GetCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_ListCustomClassesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_ListCustomClassesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_ListCustomClassesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_ListCustomClassesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1_DeleteCustomClassRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n4google/cloud/speech/v1/cloud_speech_ad"
+          + "aptation.proto\022\026google.cloud.speech.v1\032\034"
+          + "google/api/annotations.proto\032\027google/api"
+          + "/client.proto\032\037google/api/field_behavior"
+          + ".proto\032\031google/api/resource.proto\032%googl"
+          + "e/cloud/speech/v1/resource.proto\032\033google"
+          + "/protobuf/empty.proto\032 google/protobuf/f"
+          + "ield_mask.proto\"\251\001\n\026CreatePhraseSetReque"
+          + "st\0227\n\006parent\030\001 \001(\tB\'\340A\002\372A!\022\037speech.googl"
+          + "eapis.com/PhraseSet\022\032\n\rphrase_set_id\030\002 \001"
+          + "(\tB\003\340A\002\022:\n\nphrase_set\030\003 \001(\0132!.google.clo"
+          + "ud.speech.v1.PhraseSetB\003\340A\002\"\205\001\n\026UpdatePh"
+          + "raseSetRequest\022:\n\nphrase_set\030\001 \001(\0132!.goo"
+          + "gle.cloud.speech.v1.PhraseSetB\003\340A\002\022/\n\013up"
+          + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM"
+          + "ask\"L\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\t"
+          + "B\'\340A\002\372A!\n\037speech.googleapis.com/PhraseSe"
+          + "t\"v\n\024ListPhraseSetRequest\0227\n\006parent\030\001 \001("
+          + "\tB\'\340A\002\372A!\022\037speech.googleapis.com/PhraseS"
+          + "et\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001("
+          + "\t\"h\n\025ListPhraseSetResponse\0226\n\013phrase_set"
+          + "s\030\001 \003(\0132!.google.cloud.speech.v1.PhraseS"
+          + "et\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeletePhr"
+          + "aseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037spe"
+          + "ech.googleapis.com/PhraseSet\"\263\001\n\030CreateC"
+          + "ustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A"
+          + "#\022!speech.googleapis.com/CustomClass\022\034\n\017"
+          + "custom_class_id\030\002 \001(\tB\003\340A\002\022>\n\014custom_cla"
+          + "ss\030\003 \001(\0132#.google.cloud.speech.v1.Custom"
+          + "ClassB\003\340A\002\"\213\001\n\030UpdateCustomClassRequest\022"
+          + ">\n\014custom_class\030\001 \001(\0132#.google.cloud.spe"
+          + "ech.v1.CustomClassB\003\340A\002\022/\n\013update_mask\030\002"
+          + " \001(\0132\032.google.protobuf.FieldMask\"P\n\025GetC"
+          + "ustomClassRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n"
+          + "!speech.googleapis.com/CustomClass\"|\n\030Li"
+          + "stCustomClassesRequest\0229\n\006parent\030\001 \001(\tB)"
+          + "\340A\002\372A#\022!speech.googleapis.com/CustomClas"
+          + "s\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t"
+          + "\"q\n\031ListCustomClassesResponse\022;\n\016custom_"
+          + "classes\030\001 \003(\0132#.google.cloud.speech.v1.C"
+          + "ustomClass\022\027\n\017next_page_token\030\002 \001(\t\"S\n\030D"
+          + "eleteCustomClassRequest\0227\n\004name\030\001 \001(\tB)\340"
+          + "A\002\372A#\n!speech.googleapis.com/CustomClass"
+          + "2\216\017\n\nAdaptation\022\301\001\n\017CreatePhraseSet\022..go"
+          + "ogle.cloud.speech.v1.CreatePhraseSetRequ"
+          + "est\032!.google.cloud.speech.v1.PhraseSet\"["
+          + "\202\323\344\223\0023\"./v1/{parent=projects/*/locations"
+          + "/*}/phraseSets:\001*\332A\037parent,phrase_set,ph"
+          + "rase_set_id\022\235\001\n\014GetPhraseSet\022+.google.cl"
+          + "oud.speech.v1.GetPhraseSetRequest\032!.goog"
+          + "le.cloud.speech.v1.PhraseSet\"=\202\323\344\223\0020\022./v"
+          + "1/{name=projects/*/locations/*/phraseSet"
+          + "s/*}\332A\004name\022\255\001\n\rListPhraseSet\022,.google.c"
+          + "loud.speech.v1.ListPhraseSetRequest\032-.go"
+          + "ogle.cloud.speech.v1.ListPhraseSetRespon"
+          + "se\"?\202\323\344\223\0020\022./v1/{parent=projects/*/locat"
+          + "ions/*}/phraseSets\332A\006parent\022\314\001\n\017UpdatePh"
+          + "raseSet\022..google.cloud.speech.v1.UpdateP"
+          + "hraseSetRequest\032!.google.cloud.speech.v1"
+          + ".PhraseSet\"f\202\323\344\223\002G29/v1/{phrase_set.name"
+          + "=projects/*/locations/*/phraseSets/*}:\np"
+          + "hrase_set\332A\026phrase_set,update_mask\022\230\001\n\017D"
+          + "eletePhraseSet\022..google.cloud.speech.v1."
+          + "DeletePhraseSetRequest\032\026.google.protobuf"
+          + ".Empty\"=\202\323\344\223\0020*./v1/{name=projects/*/loc"
+          + "ations/*/phraseSets/*}\332A\004name\022\316\001\n\021Create"
+          + "CustomClass\0220.google.cloud.speech.v1.Cre"
+          + "ateCustomClassRequest\032#.google.cloud.spe"
+          + "ech.v1.CustomClass\"b\202\323\344\223\0026\"1/v1/{parent="
+          + "projects/*/locations/*}/customClasses:\001*"
+          + "\332A#parent,custom_class,custom_class_id\022\246"
+          + "\001\n\016GetCustomClass\022-.google.cloud.speech."
+          + "v1.GetCustomClassRequest\032#.google.cloud."
+          + "speech.v1.CustomClass\"@\202\323\344\223\0023\0221/v1/{name"
+          + "=projects/*/locations/*/customClasses/*}"
+          + "\332A\004name\022\274\001\n\021ListCustomClasses\0220.google.c"
+          + "loud.speech.v1.ListCustomClassesRequest\032"
+          + "1.google.cloud.speech.v1.ListCustomClass"
+          + "esResponse\"B\202\323\344\223\0023\0221/v1/{parent=projects"
+          + "/*/locations/*}/customClasses\332A\006parent\022\333"
+          + "\001\n\021UpdateCustomClass\0220.google.cloud.spee"
+          + "ch.v1.UpdateCustomClassRequest\032#.google."
+          + "cloud.speech.v1.CustomClass\"o\202\323\344\223\002N2>/v1"
+          + "/{custom_class.name=projects/*/locations"
+          + "/*/customClasses/*}:\014custom_class\332A\030cust"
+          + "om_class,update_mask\022\237\001\n\021DeleteCustomCla"
+          + "ss\0220.google.cloud.speech.v1.DeleteCustom"
+          + "ClassRequest\032\026.google.protobuf.Empty\"@\202\323"
+          + "\344\223\0023*1/v1/{name=projects/*/locations/*/c"
+          + "ustomClasses/*}\332A\004name\032I\312A\025speech.google"
+          + "apis.com\322A.https://www.googleapis.com/au"
+          + "th/cloud-platformB|\n\032com.google.cloud.sp"
+          + "eech.v1B\025SpeechAdaptationProtoP\001Z
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
  */
-public final class SpeechContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechContext)
     SpeechContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,27 +72,28 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(s);
+              break;
             }
-            phrases_.add(s);
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,8 +101,7 @@ private SpeechContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -93,22 +110,27 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1.SpeechContext.class,
+            com.google.cloud.speech.v1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
+   *
+   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -124,13 +146,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -146,12 +170,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -167,6 +194,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -174,6 +202,8 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -189,17 +219,19 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -212,6 +244,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -220,6 +253,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < phrases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrases_.getRaw(i)); } @@ -257,8 +290,7 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -268,18 +300,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechContext)) { return super.equals(obj); } com.google.cloud.speech.v1.SpeechContext other = (com.google.cloud.speech.v1.SpeechContext) obj; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -296,104 +326,110 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -401,21 +437,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.SpeechContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechContext)
       com.google.cloud.speech.v1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.SpeechContext.class, com.google.cloud.speech.v1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1.SpeechContext.class,
+              com.google.cloud.speech.v1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.SpeechContext.newBuilder()
@@ -423,16 +461,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +481,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
@@ -465,7 +502,8 @@ public com.google.cloud.speech.v1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1.SpeechContext result = new com.google.cloud.speech.v1.SpeechContext(this);
+      com.google.cloud.speech.v1.SpeechContext result =
+          new com.google.cloud.speech.v1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -481,38 +519,39 @@ public com.google.cloud.speech.v1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1.SpeechContext)other);
+        return mergeFrom((com.google.cloud.speech.v1.SpeechContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -562,16 +601,21 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList phrases_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -587,13 +631,15 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_.getUnmodifiableView(); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -609,12 +655,15 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -630,6 +679,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -637,6 +687,8 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -652,14 +704,16 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -675,21 +729,23 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases( - int index, java.lang.String value) { + public Builder setPhrases(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -705,20 +761,22 @@ public Builder setPhrases(
      * 
* * repeated string phrases = 1; + * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases( - java.lang.String value) { + public Builder addPhrases(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -734,18 +792,19 @@ public Builder addPhrases(
      * 
* * repeated string phrases = 1; + * * @param values The phrases to add. * @return This builder for chaining. */ - public Builder addAllPhrases( - java.lang.Iterable values) { + public Builder addAllPhrases(java.lang.Iterable values) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -761,6 +820,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -770,6 +830,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -785,23 +847,25 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; + * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -814,6 +878,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -821,6 +886,8 @@ public float getBoost() { return boost_; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -833,16 +900,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -855,17 +925,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +946,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechContext) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechContext) private static final com.google.cloud.speech.v1.SpeechContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechContext(); } @@ -889,16 +960,16 @@ public static com.google.cloud.speech.v1.SpeechContext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -913,6 +984,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java index 97fbd87c3..a529f0428 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechContextOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechContextOrBuilder extends +public interface SpeechContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -23,11 +41,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -43,10 +63,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ int getPhrasesCount(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -62,11 +85,14 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -82,13 +108,15 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString - getPhrasesBytes(int index); + com.google.protobuf.ByteString getPhrasesBytes(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -101,6 +129,7 @@ public interface SpeechContextOrBuilder extends
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java new file mode 100644 index 000000000..c8ab1411b --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechProto.java @@ -0,0 +1,463 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/cloud_speech.proto + +package com.google.cloud.speech.v1; + +public final class SpeechProto { + private SpeechProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognitionAudio_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_RecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_WordInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n)google/cloud/speech/v1/cloud_speech.pr" + + "oto\022\026google.cloud.speech.v1\032\034google/api/" + + "annotations.proto\032\027google/api/client.pro" + + "to\032\037google/api/field_behavior.proto\032%goo" + + "gle/cloud/speech/v1/resource.proto\032#goog" + + "le/longrunning/operations.proto\032\036google/" + + "protobuf/duration.proto\032\037google/protobuf" + + "/timestamp.proto\032\036google/protobuf/wrappe" + + "rs.proto\032\027google/rpc/status.proto\"\220\001\n\020Re" + + "cognizeRequest\022>\n\006config\030\001 \001(\0132).google." + + "cloud.speech.v1.RecognitionConfigB\003\340A\002\022<" + + "\n\005audio\030\002 \001(\0132(.google.cloud.speech.v1.R" + + "ecognitionAudioB\003\340A\002\"\347\001\n\033LongRunningReco" + + "gnizeRequest\022>\n\006config\030\001 \001(\0132).google.cl" + + "oud.speech.v1.RecognitionConfigB\003\340A\002\022<\n\005" + + "audio\030\002 \001(\0132(.google.cloud.speech.v1.Rec" + + "ognitionAudioB\003\340A\002\022J\n\routput_config\030\004 \001(" + + "\0132..google.cloud.speech.v1.TranscriptOut" + + "putConfigB\003\340A\001\":\n\026TranscriptOutputConfig" + + "\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013output_type\"\231\001\n\031S" + + "treamingRecognizeRequest\022N\n\020streaming_co" + + "nfig\030\001 \001(\01322.google.cloud.speech.v1.Stre" + + "amingRecognitionConfigH\000\022\027\n\raudio_conten" + + "t\030\002 \001(\014H\000B\023\n\021streaming_request\"\217\001\n\032Strea" + + "mingRecognitionConfig\022>\n\006config\030\001 \001(\0132)." + + "google.cloud.speech.v1.RecognitionConfig" + + "B\003\340A\002\022\030\n\020single_utterance\030\002 \001(\010\022\027\n\017inter" + + "im_results\030\003 \001(\010\"\351\007\n\021RecognitionConfig\022I" + + "\n\010encoding\030\001 \001(\01627.google.cloud.speech.v" + + "1.RecognitionConfig.AudioEncoding\022\031\n\021sam" + + "ple_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_co" + + "unt\030\007 \001(\005\022/\n\'enable_separate_recognition" + + "_per_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(" + + "\tB\003\340A\002\022\"\n\032alternative_language_codes\030\022 \003" + + "(\t\022\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanit" + + "y_filter\030\005 \001(\010\022<\n\nadaptation\030\024 \001(\0132(.goo" + + "gle.cloud.speech.v1.SpeechAdaptation\022>\n\017" + + "speech_contexts\030\006 \003(\0132%.google.cloud.spe" + + "ech.v1.SpeechContext\022 \n\030enable_word_time" + + "_offsets\030\010 \001(\010\022\036\n\026enable_word_confidence" + + "\030\017 \001(\010\022$\n\034enable_automatic_punctuation\030\013" + + " \001(\010\022=\n\031enable_spoken_punctuation\030\026 \001(\0132" + + "\032.google.protobuf.BoolValue\0228\n\024enable_sp" + + "oken_emojis\030\027 \001(\0132\032.google.protobuf.Bool" + + "Value\022L\n\022diarization_config\030\023 \001(\01320.goog" + + "le.cloud.speech.v1.SpeakerDiarizationCon" + + "fig\022=\n\010metadata\030\t \001(\0132+.google.cloud.spe" + + "ech.v1.RecognitionMetadata\022\r\n\005model\030\r \001(" + + "\t\022\024\n\014use_enhanced\030\016 \001(\010\"\232\001\n\rAudioEncodin" + + "g\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020" + + "\001\022\010\n\004FLAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_W" + + "B\020\005\022\014\n\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_B" + + "YTE\020\007\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiarizat" + + "ionConfig\022\"\n\032enable_speaker_diarization\030" + + "\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021max_" + + "speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 \001(\005" + + "B\005\030\001\340A\003\"\244\010\n\023RecognitionMetadata\022U\n\020inter" + + "action_type\030\001 \001(\0162;.google.cloud.speech." + + "v1.RecognitionMetadata.InteractionType\022$" + + "\n\034industry_naics_code_of_audio\030\003 \001(\r\022[\n\023" + + "microphone_distance\030\004 \001(\0162>.google.cloud" + + ".speech.v1.RecognitionMetadata.Microphon" + + "eDistance\022Z\n\023original_media_type\030\005 \001(\0162=" + + ".google.cloud.speech.v1.RecognitionMetad" + + "ata.OriginalMediaType\022^\n\025recording_devic" + + "e_type\030\006 \001(\0162?.google.cloud.speech.v1.Re" + + "cognitionMetadata.RecordingDeviceType\022\035\n" + + "\025recording_device_name\030\007 \001(\t\022\032\n\022original" + + "_mime_type\030\010 \001(\t\022\023\n\013audio_topic\030\n \001(\t\"\305\001" + + "\n\017InteractionType\022 \n\034INTERACTION_TYPE_UN" + + "SPECIFIED\020\000\022\016\n\nDISCUSSION\020\001\022\020\n\014PRESENTAT" + + "ION\020\002\022\016\n\nPHONE_CALL\020\003\022\r\n\tVOICEMAIL\020\004\022\033\n\027" + + "PROFESSIONALLY_PRODUCED\020\005\022\020\n\014VOICE_SEARC" + + "H\020\006\022\021\n\rVOICE_COMMAND\020\007\022\r\n\tDICTATION\020\010\"d\n" + + "\022MicrophoneDistance\022#\n\037MICROPHONE_DISTAN" + + "CE_UNSPECIFIED\020\000\022\r\n\tNEARFIELD\020\001\022\014\n\010MIDFI" + + "ELD\020\002\022\014\n\010FARFIELD\020\003\"N\n\021OriginalMediaType" + + "\022#\n\037ORIGINAL_MEDIA_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001\n\023RecordingDeviceT" + + "ype\022%\n!RECORDING_DEVICE_TYPE_UNSPECIFIED" + + "\020\000\022\016\n\nSMARTPHONE\020\001\022\006\n\002PC\020\002\022\016\n\nPHONE_LINE" + + "\020\003\022\013\n\007VEHICLE\020\004\022\030\n\024OTHER_OUTDOOR_DEVICE\020" + + "\005\022\027\n\023OTHER_INDOOR_DEVICE\020\006:\002\030\001\"/\n\rSpeech" + + "Context\022\017\n\007phrases\030\001 \003(\t\022\r\n\005boost\030\004 \001(\002\"" + + "D\n\020RecognitionAudio\022\021\n\007content\030\001 \001(\014H\000\022\r" + + "\n\003uri\030\002 \001(\tH\000B\016\n\014audio_source\"\213\001\n\021Recogn" + + "izeResponse\022@\n\007results\030\002 \003(\0132/.google.cl" + + "oud.speech.v1.SpeechRecognitionResult\0224\n" + + "\021total_billed_time\030\003 \001(\0132\031.google.protob" + + "uf.Duration\"\207\002\n\034LongRunningRecognizeResp" + + "onse\022@\n\007results\030\002 \003(\0132/.google.cloud.spe" + + "ech.v1.SpeechRecognitionResult\0224\n\021total_" + + "billed_time\030\003 \001(\0132\031.google.protobuf.Dura" + + "tion\022E\n\routput_config\030\006 \001(\0132..google.clo" + + "ud.speech.v1.TranscriptOutputConfig\022(\n\014o" + + "utput_error\030\007 \001(\0132\022.google.rpc.Status\"\260\001" + + "\n\034LongRunningRecognizeMetadata\022\030\n\020progre" + + "ss_percent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\0224\n\020last_update_" + + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020" + + "\n\003uri\030\004 \001(\tB\003\340A\003\"\347\002\n\032StreamingRecognizeR" + + "esponse\022!\n\005error\030\001 \001(\0132\022.google.rpc.Stat" + + "us\022C\n\007results\030\002 \003(\01322.google.cloud.speec" + + "h.v1.StreamingRecognitionResult\022]\n\021speec" + + "h_event_type\030\004 \001(\0162B.google.cloud.speech" + + ".v1.StreamingRecognizeResponse.SpeechEve" + + "ntType\0224\n\021total_billed_time\030\005 \001(\0132\031.goog" + + "le.protobuf.Duration\"L\n\017SpeechEventType\022" + + "\034\n\030SPEECH_EVENT_UNSPECIFIED\020\000\022\033\n\027END_OF_" + + "SINGLE_UTTERANCE\020\001\"\362\001\n\032StreamingRecognit" + + "ionResult\022J\n\014alternatives\030\001 \003(\01324.google" + + ".cloud.speech.v1.SpeechRecognitionAltern" + + "ative\022\020\n\010is_final\030\002 \001(\010\022\021\n\tstability\030\003 \001" + + "(\002\0222\n\017result_end_time\030\004 \001(\0132\031.google.pro" + + "tobuf.Duration\022\023\n\013channel_tag\030\005 \001(\005\022\032\n\rl" + + "anguage_code\030\006 \001(\tB\003\340A\003\"\312\001\n\027SpeechRecogn" + + "itionResult\022J\n\014alternatives\030\001 \003(\01324.goog" + + "le.cloud.speech.v1.SpeechRecognitionAlte" + + "rnative\022\023\n\013channel_tag\030\002 \001(\005\0222\n\017result_e" + + "nd_time\030\004 \001(\0132\031.google.protobuf.Duration" + + "\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\003\"w\n\034SpeechRe" + + "cognitionAlternative\022\022\n\ntranscript\030\001 \001(\t" + + "\022\022\n\nconfidence\030\002 \001(\002\022/\n\005words\030\003 \003(\0132 .go" + + "ogle.cloud.speech.v1.WordInfo\"\242\001\n\010WordIn" + + "fo\022-\n\nstart_time\030\001 \001(\0132\031.google.protobuf" + + ".Duration\022+\n\010end_time\030\002 \001(\0132\031.google.pro" + + "tobuf.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfiden" + + "ce\030\004 \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\321\004\n\006S" + + "peech\022\220\001\n\tRecognize\022(.google.cloud.speec" + + "h.v1.RecognizeRequest\032).google.cloud.spe" + + "ech.v1.RecognizeResponse\".\202\323\344\223\002\031\"\024/v1/sp" + + "eech:recognize:\001*\332A\014config,audio\022\344\001\n\024Lon" + + "gRunningRecognize\0223.google.cloud.speech." + + "v1.LongRunningRecognizeRequest\032\035.google." + + "longrunning.Operation\"x\202\323\344\223\002$\"\037/v1/speec" + + "h:longrunningrecognize:\001*\332A\014config,audio" + + "\312A<\n\034LongRunningRecognizeResponse\022\034LongR" + + "unningRecognizeMetadata\022\201\001\n\022StreamingRec" + + "ognize\0221.google.cloud.speech.v1.Streamin" + + "gRecognizeRequest\0322.google.cloud.speech." + + "v1.StreamingRecognizeResponse\"\000(\0010\001\032I\312A\025" + + "speech.googleapis.com\322A.https://www.goog" + + "leapis.com/auth/cloud-platformBr\n\032com.go" + + "ogle.cloud.speech.v1B\013SpeechProtoP\001Z * Alternative hypotheses (a.k.a. n-best list). *
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,33 +72,36 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - transcript_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + transcript_ = s; + break; } - words_.add( - input.readMessage(com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 21: + { + confidence_ = input.readFloat(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.speech.v1.WordInfo.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +109,7 @@ private SpeechRecognitionAlternative( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -99,22 +118,27 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** + * + * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -123,6 +147,7 @@ private SpeechRecognitionAlternative(
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -131,14 +156,15 @@ public java.lang.String getTranscript() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transcript_ = s; return s; } } /** + * + * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -147,16 +173,15 @@ public java.lang.String getTranscript() {
    * 
* * string transcript = 1; + * * @return The bytes for transcript. */ @java.lang.Override - public com.google.protobuf.ByteString - getTranscriptBytes() { + public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); transcript_ = b; return b; } else { @@ -167,6 +192,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -178,6 +205,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -188,6 +216,8 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** + * + * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -201,6 +231,8 @@ public java.util.List getWordsList() {
     return words_;
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -210,11 +242,13 @@ public java.util.List getWordsList() {
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getWordsOrBuilderList() {
     return words_;
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -228,6 +262,8 @@ public int getWordsCount() {
     return words_.size();
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -241,6 +277,8 @@ public com.google.cloud.speech.v1.WordInfo getWords(int index) {
     return words_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -250,12 +288,12 @@ public com.google.cloud.speech.v1.WordInfo getWords(int index) {
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index) {
     return words_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -267,8 +305,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transcript_);
     }
@@ -291,12 +328,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -306,20 +341,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1.SpeechRecognitionAlternative other =
+        (com.google.cloud.speech.v1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript()
-        .equals(other.getTranscript())) return false;
+    if (!getTranscript().equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
-    if (!getWordsList()
-        .equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+    if (!getWordsList().equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -334,8 +367,7 @@ public int hashCode() {
     hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER;
     hash = (53 * hash) + getTranscript().hashCode();
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
     if (getWordsCount() > 0) {
       hash = (37 * hash) + WORDS_FIELD_NUMBER;
       hash = (53 * hash) + getWordsList().hashCode();
@@ -346,117 +378,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionAlternative} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionAlternative) com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionAlternative.newBuilder() @@ -464,17 +506,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -492,9 +534,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override @@ -513,7 +555,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1.SpeechRecognitionAlternative result = + new com.google.cloud.speech.v1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -534,38 +577,39 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionAlternative) other); } else { super.mergeFrom(other); return this; @@ -573,7 +617,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance()) + return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -599,9 +644,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionAlternative wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -626,7 +672,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,10 +682,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object transcript_ = ""; /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -647,13 +697,13 @@ public Builder mergeFrom(
      * 
* * string transcript = 1; + * * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transcript_ = s; return s; @@ -662,6 +712,8 @@ public java.lang.String getTranscript() { } } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -670,15 +722,14 @@ public java.lang.String getTranscript() {
      * 
* * string transcript = 1; + * * @return The bytes for transcript. */ - public com.google.protobuf.ByteString - getTranscriptBytes() { + public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); transcript_ = b; return b; } else { @@ -686,6 +737,8 @@ public java.lang.String getTranscript() { } } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -694,20 +747,22 @@ public java.lang.String getTranscript() {
      * 
* * string transcript = 1; + * * @param value The transcript to set. * @return This builder for chaining. */ - public Builder setTranscript( - java.lang.String value) { + public Builder setTranscript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -716,15 +771,18 @@ public Builder setTranscript(
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -733,23 +791,25 @@ public Builder clearTranscript() {
      * 
* * string transcript = 1; + * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes( - com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -761,6 +821,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -768,6 +829,8 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -779,16 +842,19 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -800,28 +866,35 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> wordsBuilder_; + com.google.cloud.speech.v1.WordInfo, + com.google.cloud.speech.v1.WordInfo.Builder, + com.google.cloud.speech.v1.WordInfoOrBuilder> + wordsBuilder_; /** + * + * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -838,6 +911,8 @@ public java.util.List getWordsList() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -854,6 +929,8 @@ public int getWordsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -870,6 +947,8 @@ public com.google.cloud.speech.v1.WordInfo getWords(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -878,8 +957,7 @@ public com.google.cloud.speech.v1.WordInfo getWords(int index) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public Builder setWords(
-        int index, com.google.cloud.speech.v1.WordInfo value) {
+    public Builder setWords(int index, com.google.cloud.speech.v1.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -893,6 +971,8 @@ public Builder setWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -913,6 +993,8 @@ public Builder setWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -935,6 +1017,8 @@ public Builder addWords(com.google.cloud.speech.v1.WordInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -943,8 +1027,7 @@ public Builder addWords(com.google.cloud.speech.v1.WordInfo value) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public Builder addWords(
-        int index, com.google.cloud.speech.v1.WordInfo value) {
+    public Builder addWords(int index, com.google.cloud.speech.v1.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -958,6 +1041,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -966,8 +1051,7 @@ public Builder addWords(
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public Builder addWords(
-        com.google.cloud.speech.v1.WordInfo.Builder builderForValue) {
+    public Builder addWords(com.google.cloud.speech.v1.WordInfo.Builder builderForValue) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
         words_.add(builderForValue.build());
@@ -978,6 +1062,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -998,6 +1084,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1010,8 +1098,7 @@ public Builder addAllWords(
         java.lang.Iterable values) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, words_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_);
         onChanged();
       } else {
         wordsBuilder_.addAllMessages(values);
@@ -1019,6 +1106,8 @@ public Builder addAllWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1038,6 +1127,8 @@ public Builder clearWords() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1057,6 +1148,8 @@ public Builder removeWords(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1065,11 +1158,12 @@ public Builder removeWords(int index) {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1.WordInfo.Builder getWordsBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.WordInfo.Builder getWordsBuilder(int index) {
       return getWordsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1078,14 +1172,16 @@ public com.google.cloud.speech.v1.WordInfo.Builder getWordsBuilder(
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index) {
       if (wordsBuilder_ == null) {
-        return words_.get(index);  } else {
+        return words_.get(index);
+      } else {
         return wordsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1094,8 +1190,8 @@ public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsOrBuilderList() {
+    public java.util.List
+        getWordsOrBuilderList() {
       if (wordsBuilder_ != null) {
         return wordsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1103,6 +1199,8 @@ public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1112,10 +1210,12 @@ public com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
     public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder() {
-      return getWordsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1.WordInfo.getDefaultInstance());
+      return getWordsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1.WordInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1124,12 +1224,13 @@ public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder() {
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder(
-        int index) {
-      return getWordsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1.WordInfo.getDefaultInstance());
+    public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder(int index) {
+      return getWordsFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v1.WordInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1138,27 +1239,29 @@ public com.google.cloud.speech.v1.WordInfo.Builder addWordsBuilder(
      *
      * repeated .google.cloud.speech.v1.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsBuilderList() {
+    public java.util.List getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder> 
+            com.google.cloud.speech.v1.WordInfo,
+            com.google.cloud.speech.v1.WordInfo.Builder,
+            com.google.cloud.speech.v1.WordInfoOrBuilder>
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.WordInfo, com.google.cloud.speech.v1.WordInfo.Builder, com.google.cloud.speech.v1.WordInfoOrBuilder>(
-                words_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        wordsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.WordInfo,
+                com.google.cloud.speech.v1.WordInfo.Builder,
+                com.google.cloud.speech.v1.WordInfoOrBuilder>(
+                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1168,12 +1271,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechRecognitionAlternative)
   private static final com.google.cloud.speech.v1.SpeechRecognitionAlternative DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechRecognitionAlternative();
   }
@@ -1182,16 +1285,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefault
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechRecognitionAlternative parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechRecognitionAlternative(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechRecognitionAlternative parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechRecognitionAlternative(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1206,6 +1309,4 @@ public com.google.protobuf.Parser getParserForType
   public com.google.cloud.speech.v1.SpeechRecognitionAlternative getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 78%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
index 90fecb6d9..058f60aa9 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
-public interface SpeechRecognitionAlternativeOrBuilder extends
+public interface SpeechRecognitionAlternativeOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechRecognitionAlternative)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -16,10 +34,13 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    * 
* * string transcript = 1; + * * @return The transcript. */ java.lang.String getTranscript(); /** + * + * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -28,12 +49,14 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    * 
* * string transcript = 1; + * * @return The bytes for transcript. */ - com.google.protobuf.ByteString - getTranscriptBytes(); + com.google.protobuf.ByteString getTranscriptBytes(); /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -45,11 +68,14 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -58,9 +84,10 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
-  java.util.List 
-      getWordsList();
+  java.util.List getWordsList();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -71,6 +98,8 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    */
   com.google.cloud.speech.v1.WordInfo getWords(int index);
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -81,6 +110,8 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    */
   int getWordsCount();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -89,9 +120,10 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
-  java.util.List 
-      getWordsOrBuilderList();
+  java.util.List getWordsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -100,6 +132,5 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.WordInfoOrBuilder getWordsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
similarity index 77%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
index 5ae5d7147..cfd3c52dd 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResult.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
+ *
+ *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -26,16 +44,15 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,54 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = + new java.util.ArrayList< + com.google.cloud.speech.v1.SpeechRecognitionAlternative>(); + mutable_bitField0_ |= 0x00000001; + } + alternatives_.add( + input.readMessage( + com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), + extensionRegistry)); + break; } - alternatives_.add( - input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry)); - break; - } - case 16: { - - channelTag_ = input.readInt32(); - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); - } - resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); + case 16: + { + channelTag_ = input.readInt32(); + break; } + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); + } + resultEndTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +127,7 @@ private SpeechRecognitionResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -112,22 +136,27 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; private java.util.List alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -138,10 +167,13 @@ private SpeechRecognitionResult(
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List getAlternativesList() {
+  public java.util.List
+      getAlternativesList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -152,11 +184,13 @@ public java.util.List g
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -171,6 +205,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -185,6 +221,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -203,6 +241,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int CHANNEL_TAG_FIELD_NUMBER = 2;
   private int channelTag_;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -210,6 +250,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -220,12 +261,15 @@ public int getChannelTag() { public static final int RESULT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndTime_; /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ @java.lang.Override @@ -233,19 +277,26 @@ public boolean hasResultEndTime() { return resultEndTime_ != null; } /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ @java.lang.Override public com.google.protobuf.Duration getResultEndTime() { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -261,6 +312,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -268,6 +321,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -276,14 +330,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -291,16 +346,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -309,6 +363,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,8 +375,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -344,16 +398,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < alternatives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, alternatives_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, alternatives_.get(i)); } if (channelTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, channelTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, channelTag_); } if (resultEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResultEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -366,24 +417,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.SpeechRecognitionResult other = (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1.SpeechRecognitionResult other = + (com.google.cloud.speech.v1.SpeechRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getChannelTag() - != other.getChannelTag()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getChannelTag() != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,117 +461,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1.SpeechRecognitionResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.SpeechRecognitionResult) com.google.cloud.speech.v1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.SpeechRecognitionResult.class, com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1.SpeechRecognitionResult.newBuilder() @@ -531,17 +588,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +622,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_SpeechRecognitionResult_descriptor; } @java.lang.Override @@ -586,7 +643,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1.SpeechRecognitionResult result = new com.google.cloud.speech.v1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1.SpeechRecognitionResult result = + new com.google.cloud.speech.v1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -612,38 +670,39 @@ public com.google.cloud.speech.v1.SpeechRecognitionResult buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult)other); + return mergeFrom((com.google.cloud.speech.v1.SpeechRecognitionResult) other); } else { super.mergeFrom(other); return this; @@ -651,7 +710,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionResult other) { - if (other == com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.SpeechRecognitionResult.getDefaultInstance()) + return this; if (alternativesBuilder_ == null) { if (!other.alternatives_.isEmpty()) { if (alternatives_.isEmpty()) { @@ -670,9 +730,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.SpeechRecognitionResult othe alternativesBuilder_ = null; alternatives_ = other.alternatives_; bitField0_ = (bitField0_ & ~0x00000001); - alternativesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAlternativesFieldBuilder() : null; + alternativesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAlternativesFieldBuilder() + : null; } else { alternativesBuilder_.addAllMessages(other.alternatives_); } @@ -707,7 +768,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -716,21 +778,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List alternatives_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(alternatives_); + alternatives_ = + new java.util.ArrayList( + alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; + com.google.cloud.speech.v1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> + alternativesBuilder_; /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -740,7 +811,8 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List getAlternativesList() {
+    public java.util.List
+        getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -748,6 +820,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -765,6 +839,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -782,6 +858,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -806,6 +884,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -816,7 +896,8 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -827,6 +908,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -850,6 +933,8 @@ public Builder addAlternatives(com.google.cloud.speech.v1.SpeechRecognitionAlter
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -874,6 +959,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -895,6 +982,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -905,7 +994,8 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -916,6 +1006,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -926,11 +1018,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAllAlternatives(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, alternatives_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternatives_);
         onChanged();
       } else {
         alternativesBuilder_.addAllMessages(values);
@@ -938,6 +1030,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -958,6 +1052,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -978,6 +1074,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -992,6 +1090,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1001,14 +1101,17 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder
+        getAlternativesOrBuilder(int index) {
       if (alternativesBuilder_ == null) {
-        return alternatives_.get(index);  } else {
+        return alternatives_.get(index);
+      } else {
         return alternativesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1018,8 +1121,9 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List 
-         getAlternativesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
+        getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1027,6 +1131,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1036,11 +1142,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
-      return getAlternativesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder
+        addAlternativesBuilder() {
+      return getAlternativesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1052,10 +1161,13 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      */
     public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1065,27 +1177,32 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List 
-         getAlternativesBuilderList() {
+    public java.util.List
+        getAlternativesBuilderList() {
       return getAlternativesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> 
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        alternativesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechRecognitionAlternative,
+                com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
+                com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>(
+                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         alternatives_ = null;
       }
       return alternativesBuilder_;
     }
 
-    private int channelTag_ ;
+    private int channelTag_;
     /**
+     *
+     *
      * 
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1093,6 +1210,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1100,6 +1218,8 @@ public int getChannelTag() { return channelTag_; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1107,16 +1227,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1124,10 +1247,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1135,36 +1259,49 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1186,6 +1323,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1193,8 +1332,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1205,6 +1343,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1216,7 +1356,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1228,6 +1370,8 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1247,6 +1391,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1255,11 +1401,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1271,11 +1419,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
       if (resultEndTimeBuilder_ != null) {
         return resultEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+        return resultEndTime_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : resultEndTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1284,14 +1435,17 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getResultEndTimeFieldBuilder() {
       if (resultEndTimeBuilder_ == null) {
-        resultEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getResultEndTime(),
-                getParentForChildren(),
-                isClean());
+        resultEndTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getResultEndTime(), getParentForChildren(), isClean());
         resultEndTime_ = null;
       }
       return resultEndTimeBuilder_;
@@ -1299,6 +1453,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
 
     private java.lang.Object languageCode_ = "";
     /**
+     *
+     *
      * 
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1306,13 +1462,13 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1321,6 +1477,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1328,15 +1486,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1344,6 +1501,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1351,20 +1510,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1372,15 +1533,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1388,23 +1552,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1414,12 +1578,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.SpeechRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.SpeechRecognitionResult) private static final com.google.cloud.speech.v1.SpeechRecognitionResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.SpeechRecognitionResult(); } @@ -1428,16 +1592,16 @@ public static com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1452,6 +1616,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java similarity index 83% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java index aa2bef7b6..50085b974 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface SpeechRecognitionResultOrBuilder extends +public interface SpeechRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -17,9 +35,10 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -31,6 +50,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -42,6 +63,8 @@ public interface SpeechRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -51,9 +74,11 @@ public interface SpeechRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -67,6 +92,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -74,31 +101,40 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -109,6 +145,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -116,10 +154,13 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -127,8 +168,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java new file mode 100644 index 000000000..0eeef5bbd --- /dev/null +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/SpeechResourceProto.java @@ -0,0 +1,140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1/resource.proto + +package com.google.cloud.speech.v1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1_SpeechAdaptation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1_SpeechAdaptation_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n%google/cloud/speech/v1/resource.proto\022" + + "\026google.cloud.speech.v1\032\031google/api/reso" + + "urce.proto\"\374\001\n\013CustomClass\022\014\n\004name\030\001 \001(\t" + + "\022\027\n\017custom_class_id\030\002 \001(\t\022<\n\005items\030\003 \003(\013" + + "2-.google.cloud.speech.v1.CustomClass.Cl" + + "assItem\032\032\n\tClassItem\022\r\n\005value\030\001 \001(\t:l\352Ai" + + "\n!speech.googleapis.com/CustomClass\022Dpro" + + "jects/{project}/locations/{location}/cus" + + "tomClasses/{custom_class}\"\362\001\n\tPhraseSet\022" + + "\014\n\004name\030\001 \001(\t\0229\n\007phrases\030\002 \003(\0132(.google." + + "cloud.speech.v1.PhraseSet.Phrase\022\r\n\005boos" + + "t\030\004 \001(\002\032&\n\006Phrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boos" + + "t\030\002 \001(\002:e\352Ab\n\037speech.googleapis.com/Phra" + + "seSet\022?projects/{project}/locations/{loc" + + "ation}/phraseSets/{phrase_set}\"\314\001\n\020Speec" + + "hAdaptation\0226\n\013phrase_sets\030\001 \003(\0132!.googl" + + "e.cloud.speech.v1.PhraseSet\022C\n\025phrase_se" + + "t_references\030\002 \003(\tB$\372A!\n\037speech.googleap" + + "is.com/PhraseSet\022;\n\016custom_classes\030\003 \003(\013" + + "2#.google.cloud.speech.v1.CustomClassBz\n" + + "\032com.google.cloud.speech.v1B\023SpeechResou" + + "rceProtoP\001Z * Provides information to the recognizer that specifies how to process the * request. @@ -11,30 +28,29 @@ * * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig} */ -public final class StreamingRecognitionConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionConfig) StreamingRecognitionConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamingRecognitionConfig.newBuilder() to construct. private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamingRecognitionConfig() { - } + + private StreamingRecognitionConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamingRecognitionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StreamingRecognitionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,36 +69,39 @@ private StreamingRecognitionConfig( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); + case 10: + { + com.google.cloud.speech.v1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } + + break; } - config_ = input.readMessage(com.google.cloud.speech.v1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); + case 16: + { + singleUtterance_ = input.readBool(); + break; } - - break; - } - case 16: { - - singleUtterance_ = input.readBool(); - break; - } - case 24: { - - interimResults_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + interimResults_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,35 +109,42 @@ private StreamingRecognitionConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); + com.google.cloud.speech.v1.StreamingRecognitionConfig.class, + com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.RecognitionConfig config_; /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -126,25 +152,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -154,6 +191,8 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder( public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -176,6 +215,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -186,6 +226,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -194,6 +236,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -202,6 +245,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,8 +257,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -234,16 +277,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -253,22 +293,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1.StreamingRecognitionConfig other = + (com.google.cloud.speech.v1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } - if (getSingleUtterance() - != other.getSingleUtterance()) return false; - if (getInterimResults() - != other.getInterimResults()) return false; + if (getSingleUtterance() != other.getSingleUtterance()) return false; + if (getInterimResults() != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -285,107 +323,113 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -393,21 +437,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.class,
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder()
@@ -415,16 +461,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -442,9 +487,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -463,7 +508,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -479,38 +525,39 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -518,7 +565,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognitionConfig other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance())
+        return this;
       if (other.hasConfig()) {
         mergeConfig(other.getConfig());
       }
@@ -547,7 +595,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -559,42 +608,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1.RecognitionConfig,
+            com.google.cloud.speech.v1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -610,15 +678,18 @@ public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setConfig( - com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { + public Builder setConfig(com.google.cloud.speech.v1.RecognitionConfig.Builder builderForValue) { if (configBuilder_ == null) { config_ = builderForValue.build(); onChanged(); @@ -629,18 +700,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -652,12 +729,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1.RecognitionConfig value) { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -671,58 +752,76 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.RecognitionConfig, com.google.cloud.speech.v1.RecognitionConfig.Builder, com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.RecognitionConfig, + com.google.cloud.speech.v1.RecognitionConfig.Builder, + com.google.cloud.speech.v1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_ ; + private boolean singleUtterance_; /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -745,6 +844,7 @@ public com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -752,6 +852,8 @@ public boolean getSingleUtterance() { return singleUtterance_; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -774,16 +876,19 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; + * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -806,17 +911,20 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_ ; + private boolean interimResults_; /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -825,6 +933,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -832,6 +941,8 @@ public boolean getInterimResults() { return interimResults_; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -840,16 +951,19 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; + * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -858,17 +972,18 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -878,12 +993,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.StreamingRecognitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognitionConfig) private static final com.google.cloud.speech.v1.StreamingRecognitionConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.StreamingRecognitionConfig(); } @@ -892,16 +1007,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -916,6 +1031,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java index 8c5cfecdc..7b3064599 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionConfigOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionConfigOrBuilder extends +public interface StreamingRecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -60,11 +92,14 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ boolean getSingleUtterance(); /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -73,6 +108,7 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ boolean getInterimResults(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java index 91bf80323..779001ee5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -27,16 +45,15 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,56 +73,64 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternatives_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternatives_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1.SpeechRecognitionAlternative>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternatives_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry));
+              break;
             }
-            alternatives_.add(
-                input.readMessage(com.google.cloud.speech.v1.SpeechRecognitionAlternative.parser(), extensionRegistry));
-            break;
-          }
-          case 16: {
-
-            isFinal_ = input.readBool();
-            break;
-          }
-          case 29: {
-
-            stability_ = input.readFloat();
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (resultEndTime_ != null) {
-              subBuilder = resultEndTime_.toBuilder();
+          case 16:
+            {
+              isFinal_ = input.readBool();
+              break;
             }
-            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resultEndTime_);
-              resultEndTime_ = subBuilder.buildPartial();
+          case 29:
+            {
+              stability_ = input.readFloat();
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (resultEndTime_ != null) {
+                subBuilder = resultEndTime_.toBuilder();
+              }
+              resultEndTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resultEndTime_);
+                resultEndTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 40:
+            {
+              channelTag_ = input.readInt32();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 40: {
-
-            channelTag_ = input.readInt32();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              languageCode_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,8 +138,7 @@ private StreamingRecognitionResult(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -123,22 +147,27 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognitionResult.class,
+            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
   private java.util.List alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -149,10 +178,13 @@ private StreamingRecognitionResult(
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List getAlternativesList() {
+  public java.util.List
+      getAlternativesList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -163,11 +195,13 @@ public java.util.List g
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -182,6 +216,8 @@ public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -196,6 +232,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(i
     return alternatives_.get(index);
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -214,6 +252,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
   public static final int IS_FINAL_FIELD_NUMBER = 2;
   private boolean isFinal_;
   /**
+   *
+   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -223,6 +263,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -233,6 +274,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -242,6 +285,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -252,12 +296,15 @@ public float getStability() { public static final int RESULT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndTime_; /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ @java.lang.Override @@ -265,19 +312,26 @@ public boolean hasResultEndTime() { return resultEndTime_ != null; } /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ @java.lang.Override public com.google.protobuf.Duration getResultEndTime() { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -293,6 +347,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -300,6 +356,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -310,6 +367,8 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -317,6 +376,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -325,14 +385,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -340,16 +401,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -358,6 +418,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,8 +430,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -399,24 +459,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < alternatives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, alternatives_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, alternatives_.get(i)); } if (isFinal_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isFinal_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isFinal_); } if (java.lang.Float.floatToRawIntBits(stability_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, stability_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, stability_); } if (resultEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResultEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndTime()); } if (channelTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, channelTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, channelTag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -429,29 +484,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognitionResult other = (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1.StreamingRecognitionResult other = + (com.google.cloud.speech.v1.StreamingRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getIsFinal() - != other.getIsFinal()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getIsFinal() != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits( - other.getStability())) return false; + != java.lang.Float.floatToIntBits(other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (getChannelTag() - != other.getChannelTag()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (getChannelTag() != other.getChannelTag()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -468,11 +518,9 @@ public int hashCode() { hash = (53 * hash) + getAlternativesList().hashCode(); } hash = (37 * hash) + IS_FINAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFinal()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFinal()); hash = (37 * hash) + STABILITY_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getStability()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getStability()); if (hasResultEndTime()) { hash = (37 * hash) + RESULT_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getResultEndTime().hashCode(); @@ -487,96 +535,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognitionResult prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1.StreamingRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A streaming speech recognition result corresponding to a portion of the audio
    * that is currently being processed.
@@ -584,21 +640,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognitionResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognitionResult)
       com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognitionResult.class, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognitionResult.class,
+              com.google.cloud.speech.v1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognitionResult.newBuilder()
@@ -606,17 +664,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -644,9 +702,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
@@ -665,7 +723,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognitionResult result = new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1.StreamingRecognitionResult result =
+          new com.google.cloud.speech.v1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -693,38 +752,39 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -732,7 +792,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognitionResult other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance())
+        return this;
       if (alternativesBuilder_ == null) {
         if (!other.alternatives_.isEmpty()) {
           if (alternatives_.isEmpty()) {
@@ -751,9 +812,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognitionResult o
             alternativesBuilder_ = null;
             alternatives_ = other.alternatives_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            alternativesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAlternativesFieldBuilder() : null;
+            alternativesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAlternativesFieldBuilder()
+                    : null;
           } else {
             alternativesBuilder_.addAllMessages(other.alternatives_);
           }
@@ -794,7 +856,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -803,21 +866,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List alternatives_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ = new java.util.ArrayList(alternatives_);
+        alternatives_ =
+            new java.util.ArrayList(
+                alternatives_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
+        alternativesBuilder_;
 
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -827,7 +899,8 @@ private void ensureAlternativesIsMutable() {
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List getAlternativesList() {
+    public java.util.List
+        getAlternativesList() {
       if (alternativesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(alternatives_);
       } else {
@@ -835,6 +908,8 @@ public java.util.List g
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -852,6 +927,8 @@ public int getAlternativesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -869,6 +946,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(i
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -893,6 +972,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -903,7 +984,8 @@ public Builder setAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder setAlternatives(
-        int index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.set(index, builderForValue.build());
@@ -914,6 +996,8 @@ public Builder setAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -937,6 +1021,8 @@ public Builder addAlternatives(com.google.cloud.speech.v1.SpeechRecognitionAlter
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -961,6 +1047,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -982,6 +1070,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -992,7 +1082,8 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAlternatives(
-        int index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder builderForValue) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
         alternatives_.add(index, builderForValue.build());
@@ -1003,6 +1094,8 @@ public Builder addAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1013,11 +1106,11 @@ public Builder addAlternatives(
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
     public Builder addAllAlternatives(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (alternativesBuilder_ == null) {
         ensureAlternativesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, alternatives_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternatives_);
         onChanged();
       } else {
         alternativesBuilder_.addAllMessages(values);
@@ -1025,6 +1118,8 @@ public Builder addAllAlternatives(
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1045,6 +1140,8 @@ public Builder clearAlternatives() {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1065,6 +1162,8 @@ public Builder removeAlternatives(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1079,6 +1178,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
       return getAlternativesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1088,14 +1189,17 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder getAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder
+        getAlternativesOrBuilder(int index) {
       if (alternativesBuilder_ == null) {
-        return alternatives_.get(index);  } else {
+        return alternatives_.get(index);
+      } else {
         return alternativesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1105,8 +1209,9 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List 
-         getAlternativesOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
+        getAlternativesOrBuilderList() {
       if (alternativesBuilder_ != null) {
         return alternativesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1114,6 +1219,8 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
       }
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1123,11 +1230,14 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlter
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder() {
-      return getAlternativesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
+    public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder
+        addAlternativesBuilder() {
+      return getAlternativesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1139,10 +1249,13 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      */
     public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAlternativesBuilder(
         int index) {
-      return getAlternativesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
+      return getAlternativesFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v1.SpeechRecognitionAlternative.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1152,27 +1265,32 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      *
      * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
      */
-    public java.util.List 
-         getAlternativesBuilderList() {
+    public java.util.List
+        getAlternativesBuilderList() {
       return getAlternativesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder> 
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>
         getAlternativesFieldBuilder() {
       if (alternativesBuilder_ == null) {
-        alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.SpeechRecognitionAlternative, com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>(
-                alternatives_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        alternativesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.SpeechRecognitionAlternative,
+                com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder,
+                com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder>(
+                alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         alternatives_ = null;
       }
       return alternativesBuilder_;
     }
 
-    private boolean isFinal_ ;
+    private boolean isFinal_;
     /**
+     *
+     *
      * 
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1182,6 +1300,7 @@ public com.google.cloud.speech.v1.SpeechRecognitionAlternative.Builder addAltern
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1189,6 +1308,8 @@ public boolean getIsFinal() { return isFinal_; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1198,16 +1319,19 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; + * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1217,17 +1341,20 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_ ; + private float stability_; /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1237,6 +1364,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1244,6 +1372,8 @@ public float getStability() { return stability_; } /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1253,16 +1383,19 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1272,10 +1405,11 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1283,36 +1417,49 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1334,6 +1481,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1341,8 +1490,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1353,6 +1501,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1364,7 +1514,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1376,6 +1528,8 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1395,6 +1549,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1403,11 +1559,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1419,11 +1577,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
       if (resultEndTimeBuilder_ != null) {
         return resultEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+        return resultEndTime_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : resultEndTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1432,21 +1593,26 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getResultEndTimeFieldBuilder() {
       if (resultEndTimeBuilder_ == null) {
-        resultEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getResultEndTime(),
-                getParentForChildren(),
-                isClean());
+        resultEndTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getResultEndTime(), getParentForChildren(), isClean());
         resultEndTime_ = null;
       }
       return resultEndTimeBuilder_;
     }
 
-    private int channelTag_ ;
+    private int channelTag_;
     /**
+     *
+     *
      * 
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1454,6 +1620,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1461,6 +1628,8 @@ public int getChannelTag() { return channelTag_; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1468,16 +1637,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1485,10 +1657,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1496,6 +1669,8 @@ public Builder clearChannelTag() { private java.lang.Object languageCode_ = ""; /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1503,13 +1678,13 @@ public Builder clearChannelTag() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1518,6 +1693,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1525,15 +1702,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1541,6 +1717,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1548,20 +1726,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1569,15 +1749,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1585,23 +1768,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1611,12 +1794,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.StreamingRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognitionResult) private static final com.google.cloud.speech.v1.StreamingRecognitionResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.StreamingRecognitionResult(); } @@ -1625,16 +1808,16 @@ public static com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1649,6 +1832,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java similarity index 85% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java index c44aa1077..21ef917f1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognitionResultOrBuilder extends +public interface StreamingRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -17,9 +35,10 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
-      getAlternativesList();
+  java.util.List getAlternativesList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -31,6 +50,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   com.google.cloud.speech.v1.SpeechRecognitionAlternative getAlternatives(int index);
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -42,6 +63,8 @@ public interface StreamingRecognitionResultOrBuilder extends
    */
   int getAlternativesCount();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -51,9 +74,11 @@ public interface StreamingRecognitionResultOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.SpeechRecognitionAlternative alternatives = 1;
    */
-  java.util.List 
+  java.util.List
       getAlternativesOrBuilderList();
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -67,6 +92,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
       int index);
 
   /**
+   *
+   *
    * 
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -76,11 +103,14 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * bool is_final = 2; + * * @return The isFinal. */ boolean getIsFinal(); /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -90,31 +120,40 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * float stability = 3; + * * @return The stability. */ float getStability(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -125,6 +164,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -132,11 +173,14 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -144,10 +188,13 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -155,8 +202,8 @@ com.google.cloud.speech.v1.SpeechRecognitionAlternativeOrBuilder getAlternatives
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java index 0632d9754..14b5d8f69 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -14,30 +31,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StreamingRecognizeRequest() {
-  }
+
+  private StreamingRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,32 +72,39 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
-            if (streamingRequestCase_ == 1) {
-              subBuilder = ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
+          case 10:
+            {
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder subBuilder = null;
+              if (streamingRequestCase_ == 1) {
+                subBuilder =
+                    ((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_)
+                        .toBuilder();
+              }
+              streamingRequest_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
+                streamingRequest_ = subBuilder.buildPartial();
+              }
+              streamingRequestCase_ = 1;
+              break;
             }
-            streamingRequest_ =
-                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_);
-              streamingRequest_ = subBuilder.buildPartial();
+          case 18:
+            {
+              streamingRequest_ = input.readBytes();
+              streamingRequestCase_ = 2;
+              break;
             }
-            streamingRequestCase_ = 1;
-            break;
-          }
-          case 18: {
-            streamingRequest_ = input.readBytes();
-            streamingRequestCase_ = 2;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -89,35 +112,40 @@ private StreamingRecognizeRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
+            com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
+
   public enum StreamingRequestCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
+
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -133,25 +161,30 @@ public static StreamingRequestCase valueOf(int value) {
 
     public static StreamingRequestCase forNumber(int value) {
       switch (value) {
-        case 1: return STREAMING_CONFIG;
-        case 2: return AUDIO_CONTENT;
-        case 0: return STREAMINGREQUEST_NOT_SET;
-        default: return null;
+        case 1:
+          return STREAMING_CONFIG;
+        case 2:
+          return AUDIO_CONTENT;
+        case 0:
+          return STREAMINGREQUEST_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public StreamingRequestCase
-  getStreamingRequestCase() {
-    return StreamingRequestCase.forNumber(
-        streamingRequestCase_);
+  public StreamingRequestCase getStreamingRequestCase() {
+    return StreamingRequestCase.forNumber(streamingRequestCase_);
   }
 
   public static final int STREAMING_CONFIG_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -159,6 +192,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -166,6 +200,8 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 1; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -173,16 +209,19 @@ public boolean hasStreamingConfig() {
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig() { if (streamingRequestCase_ == 1) { - return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_; + return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance(); } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -192,15 +231,18 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(
    * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
+  public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder
+      getStreamingConfigOrBuilder() {
     if (streamingRequestCase_ == 1) {
-       return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_;
+      return (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_;
     }
     return com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
   }
 
   public static final int AUDIO_CONTENT_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -213,6 +255,7 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -220,6 +263,8 @@ public boolean hasAudioContent() { return streamingRequestCase_ == 2; } /** + * + * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -232,6 +277,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -243,6 +289,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,14 +301,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage( + 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -273,13 +319,14 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -289,22 +336,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.StreamingRecognizeRequest other = (com.google.cloud.speech.v1.StreamingRecognizeRequest) obj; + com.google.cloud.speech.v1.StreamingRecognizeRequest other = + (com.google.cloud.speech.v1.StreamingRecognizeRequest) obj; if (!getStreamingRequestCase().equals(other.getStreamingRequestCase())) return false; switch (streamingRequestCase_) { case 1: - if (!getStreamingConfig() - .equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; break; case 2: - if (!getAudioContent() - .equals(other.getAudioContent())) return false; + if (!getAudioContent().equals(other.getAudioContent())) return false; break; case 0: default: @@ -338,96 +384,103 @@ public int hashCode() { } public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.StreamingRecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `StreamingRecognize` method.
    * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -438,21 +491,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeRequest.class,
+              com.google.cloud.speech.v1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeRequest.newBuilder()
@@ -460,16 +515,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -479,9 +533,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -500,7 +554,8 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -520,38 +575,39 @@ public com.google.cloud.speech.v1.StreamingRecognizeRequest buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -559,19 +615,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognizeRequest.getDefaultInstance())
+        return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case AUDIO_CONTENT: {
-          setAudioContent(other.getAudioContent());
-          break;
-        }
-        case STREAMINGREQUEST_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case AUDIO_CONTENT:
+          {
+            setAudioContent(other.getAudioContent());
+            break;
+          }
+        case STREAMINGREQUEST_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -592,7 +652,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -601,12 +662,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-    public StreamingRequestCase
-        getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(
-          streamingRequestCase_);
+
+    public StreamingRequestCase getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -616,10 +677,14 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
+            com.google.cloud.speech.v1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
+        streamingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -627,6 +692,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -634,6 +700,8 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 1; } /** + * + * *
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -641,6 +709,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -658,6 +727,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig( } } /** + * + * *
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -680,6 +751,8 @@ public Builder setStreamingConfig(com.google.cloud.speech.v1.StreamingRecognitio
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -700,6 +773,8 @@ public Builder setStreamingConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -708,12 +783,17 @@ public Builder setStreamingConfig(
      *
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public Builder mergeStreamingConfig(com.google.cloud.speech.v1.StreamingRecognitionConfig value) {
+    public Builder mergeStreamingConfig(
+        com.google.cloud.speech.v1.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
-        if (streamingRequestCase_ == 1 &&
-            streamingRequest_ != com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance()) {
-          streamingRequest_ = com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder((com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_)
-              .mergeFrom(value).buildPartial();
+        if (streamingRequestCase_ == 1
+            && streamingRequest_
+                != com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance()) {
+          streamingRequest_ =
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.newBuilder(
+                      (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           streamingRequest_ = value;
         }
@@ -729,6 +809,8 @@ public Builder mergeStreamingConfig(com.google.cloud.speech.v1.StreamingRecognit
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -754,6 +836,8 @@ public Builder clearStreamingConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -762,10 +846,13 @@ public Builder clearStreamingConfig() {
      *
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder getStreamingConfigBuilder() {
+    public com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder
+        getStreamingConfigBuilder() {
       return getStreamingConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -775,7 +862,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder getStreamin
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
+    public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder
+        getStreamingConfigOrBuilder() {
       if ((streamingRequestCase_ == 1) && (streamingConfigBuilder_ != null)) {
         return streamingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -786,6 +874,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
       }
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -795,25 +885,34 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
      * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ = com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ =
+              com.google.cloud.speech.v1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionConfig, com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1.StreamingRecognitionConfig,
+                com.google.cloud.speech.v1.StreamingRecognitionConfig.Builder,
+                com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return streamingConfigBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -826,12 +925,15 @@ public com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreami
      * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ public boolean hasAudioContent() { return streamingRequestCase_ == 2; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -844,6 +946,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -853,6 +956,8 @@ public com.google.protobuf.ByteString getAudioContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -865,19 +970,22 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; + * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -890,6 +998,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -900,9 +1009,9 @@ public Builder clearAudioContent() { } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -912,12 +1021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.StreamingRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognizeRequest) private static final com.google.cloud.speech.v1.StreamingRecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.StreamingRecognizeRequest(); } @@ -926,16 +1035,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,6 +1059,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java similarity index 79% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java index 28ed92b15..13fc461c9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface StreamingRecognizeRequestOrBuilder extends +public interface StreamingRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -15,10 +33,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -26,10 +47,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ com.google.cloud.speech.v1.StreamingRecognitionConfig getStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -41,6 +65,8 @@ public interface StreamingRecognizeRequestOrBuilder extends
   com.google.cloud.speech.v1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -53,10 +79,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** + * + * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -69,9 +98,11 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); + public com.google.cloud.speech.v1.StreamingRecognizeRequest.StreamingRequestCase + getStreamingRequestCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java index a4e49a132..9e1247d71 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -45,15 +62,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -61,16 +79,15 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -90,54 +107,63 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
+          case 10:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1.StreamingRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1.StreamingRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              speechEventType_ = rawValue;
+              break;
             }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1.StreamingRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
-
-            speechEventType_ = rawValue;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -145,8 +171,7 @@ private StreamingRecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -155,29 +180,35 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1.SpeechProto
+        .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
+            com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No speech event specified.
      * 
@@ -186,6 +217,8 @@ public enum SpeechEventType */ SPEECH_EVENT_UNSPECIFIED(0), /** + * + * *
      * This event indicates that the server has detected the end of the user's
      * speech utterance and expects no additional speech. Therefore, the server
@@ -203,6 +236,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -211,6 +246,8 @@ public enum SpeechEventType */ public static final int SPEECH_EVENT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * This event indicates that the server has detected the end of the user's
      * speech utterance and expects no additional speech. Therefore, the server
@@ -225,7 +262,6 @@ public enum SpeechEventType
      */
     public static final int END_OF_SINGLE_UTTERANCE_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -250,39 +286,43 @@ public static SpeechEventType valueOf(int value) {
      */
     public static SpeechEventType forNumber(int value) {
       switch (value) {
-        case 0: return SPEECH_EVENT_UNSPECIFIED;
-        case 1: return END_OF_SINGLE_UTTERANCE;
-        default: return null;
+        case 0:
+          return SPEECH_EVENT_UNSPECIFIED;
+        case 1:
+          return END_OF_SINGLE_UTTERANCE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        SpeechEventType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public SpeechEventType findValueByNumber(int number) {
-              return SpeechEventType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public SpeechEventType findValueByNumber(int number) {
+                return SpeechEventType.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.StreamingRecognizeResponse.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.speech.v1.StreamingRecognizeResponse.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final SpeechEventType[] VALUES = values();
@@ -290,8 +330,7 @@ public SpeechEventType findValueByNumber(int number) {
     public static SpeechEventType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -311,12 +350,15 @@ private SpeechEventType(int value) {
   public static final int ERROR_FIELD_NUMBER = 1;
   private com.google.rpc.Status error_;
   /**
+   *
+   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ @java.lang.Override @@ -324,12 +366,15 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return The error. */ @java.lang.Override @@ -337,6 +382,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -352,6 +399,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -366,6 +415,8 @@ public java.util.List get
     return results_;
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -376,11 +427,13 @@ public java.util.List get
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getResultsOrBuilderList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -395,6 +448,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -409,6 +464,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult getResults(int inde
     return results_.get(index);
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -427,39 +484,57 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + @java.lang.Override + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -467,19 +542,26 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
@@ -493,6 +575,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -504,15 +587,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (error_ != null) {
       output.writeMessage(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
       output.writeMessage(2, results_.get(i));
     }
-    if (speechEventType_ != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
+    if (speechEventType_
+        != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType
+            .SPEECH_EVENT_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
@@ -528,20 +613,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_ != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(4, speechEventType_);
+    if (speechEventType_
+        != com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType
+            .SPEECH_EVENT_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -551,25 +635,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1.StreamingRecognizeResponse other =
+        (com.google.cloud.speech.v1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
-    if (!getResultsList()
-        .equals(other.getResultsList())) return false;
+    if (!getResultsList().equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime()
-          .equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -602,96 +684,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -733,21 +823,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1.StreamingRecognizeResponse.class,
+              com.google.cloud.speech.v1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1.StreamingRecognizeResponse.newBuilder()
@@ -755,17 +847,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -793,9 +885,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1.SpeechProto
+          .internal_static_google_cloud_speech_v1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -814,7 +906,8 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1.StreamingRecognizeResponse result =
+          new com.google.cloud.speech.v1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -844,38 +937,39 @@ public com.google.cloud.speech.v1.StreamingRecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1.StreamingRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -883,7 +977,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v1.StreamingRecognizeResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1.StreamingRecognizeResponse.getDefaultInstance())
+        return this;
       if (other.hasError()) {
         mergeError(other.getError());
       }
@@ -905,9 +1000,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1.StreamingRecognizeResponse o
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -938,7 +1034,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -947,30 +1044,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        errorBuilder_;
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -981,6 +1086,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1002,6 +1109,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1009,8 +1118,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1021,6 +1129,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1031,8 +1141,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1044,6 +1153,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1063,6 +1174,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1071,11 +1184,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1087,11 +1202,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1100,32 +1216,40 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1143,6 +1267,8 @@ public java.util.List get
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1160,6 +1286,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1177,6 +1305,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult getResults(int inde
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1201,6 +1331,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1222,6 +1354,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1245,6 +1379,8 @@ public Builder addResults(com.google.cloud.speech.v1.StreamingRecognitionResult
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1269,6 +1405,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1290,6 +1428,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1311,6 +1451,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1321,11 +1463,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
     public Builder addAllResults(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -1333,6 +1475,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1353,6 +1497,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1373,6 +1519,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1387,6 +1535,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder getResultsB
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1399,11 +1549,14 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder getResultsB
     public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);  } else {
+        return results_.get(index);
+      } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1413,8 +1566,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
      *
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1422,6 +1575,8 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1432,10 +1587,12 @@ public com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResults
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1447,10 +1604,13 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
      */
     public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.speech.v1.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1460,20 +1620,23 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
      *
      * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1.StreamingRecognitionResult, com.google.cloud.speech.v1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1.StreamingRecognitionResult,
+                com.google.cloud.speech.v1.StreamingRecognitionResult.Builder,
+                com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1481,73 +1644,105 @@ public com.google.cloud.speech.v1.StreamingRecognitionResult.Builder addResultsB
 
     private int speechEventType_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + public com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType(com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType( + com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1555,36 +1750,49 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + totalBilledTimeBuilder_; /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1606,6 +1814,8 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1613,8 +1823,7 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1625,6 +1834,8 @@ public Builder setTotalBilledTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1636,7 +1847,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1648,6 +1861,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1667,6 +1882,8 @@ public Builder clearTotalBilledTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1675,11 +1892,13 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-      
+
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1691,11 +1910,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
       if (totalBilledTimeBuilder_ != null) {
         return totalBilledTimeBuilder_.getMessageOrBuilder();
       } else {
-        return totalBilledTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
+        return totalBilledTime_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : totalBilledTime_;
       }
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1704,21 +1926,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(),
-                getParentForChildren(),
-                isClean());
+        totalBilledTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(), getParentForChildren(), isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1728,12 +1953,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.StreamingRecognizeResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.StreamingRecognizeResponse)
   private static final com.google.cloud.speech.v1.StreamingRecognizeResponse DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1.StreamingRecognizeResponse();
   }
@@ -1742,16 +1967,16 @@ public static com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultIn
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StreamingRecognizeResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new StreamingRecognizeResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public StreamingRecognizeResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new StreamingRecognizeResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1766,6 +1991,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
index 1a3c3b062..2c285ed9f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/StreamingRecognizeResponseOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
-public interface StreamingRecognizeResponseOrBuilder extends
+public interface StreamingRecognizeResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -38,6 +62,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -47,9 +73,10 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -61,6 +88,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1.StreamingRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -72,6 +101,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -81,9 +112,11 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -93,49 +126,64 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * .google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ com.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
similarity index 70%
rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
index aa9696e23..45c5f040a 100644
--- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
+++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1/cloud_speech.proto
 
 package com.google.cloud.speech.v1;
 
 /**
+ *
+ *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranscriptOutputConfig() { - } + + private TranscriptOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,19 +68,20 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -72,34 +89,39 @@ private TranscriptOutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; + public enum OutputTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; + private OutputTypeCase(int value) { this.value = value; } @@ -115,24 +137,28 @@ public static OutputTypeCase valueOf(int value) { public static OutputTypeCase forNumber(int value) { switch (value) { - case 1: return GCS_URI; - case 0: return OUTPUTTYPE_NOT_SET; - default: return null; + case 1: + return GCS_URI; + case 0: + return OUTPUTTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public OutputTypeCase - getOutputTypeCase() { - return OutputTypeCase.forNumber( - outputTypeCase_); + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); } public static final int GCS_URI_FIELD_NUMBER = 1; /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -140,12 +166,15 @@ public int getNumber() {
    * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ public boolean hasGcsUri() { return outputTypeCase_ == 1; } /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -153,6 +182,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -163,8 +193,7 @@ public java.lang.String getGcsUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputTypeCase_ == 1) { outputType_ = s; @@ -173,6 +202,8 @@ public java.lang.String getGcsUri() { } } /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -180,18 +211,17 @@ public java.lang.String getGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ - public com.google.protobuf.ByteString - getGcsUriBytes() { + public com.google.protobuf.ByteString getGcsUriBytes() { java.lang.Object ref = ""; if (outputTypeCase_ == 1) { ref = outputType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputTypeCase_ == 1) { outputType_ = b; } @@ -202,6 +232,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,8 +244,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputTypeCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputType_); } @@ -238,18 +268,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.TranscriptOutputConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1.TranscriptOutputConfig other = (com.google.cloud.speech.v1.TranscriptOutputConfig) obj; + com.google.cloud.speech.v1.TranscriptOutputConfig other = + (com.google.cloud.speech.v1.TranscriptOutputConfig) obj; if (!getOutputTypeCase().equals(other.getOutputTypeCase())) return false; switch (outputTypeCase_) { case 1: - if (!getGcsUri() - .equals(other.getGcsUri())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; break; case 0: default: @@ -279,117 +309,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1.TranscriptOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.TranscriptOutputConfig) com.google.cloud.speech.v1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.TranscriptOutputConfig.class, com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1.TranscriptOutputConfig.newBuilder() @@ -397,16 +436,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +454,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_TranscriptOutputConfig_descriptor; } @java.lang.Override @@ -437,7 +475,8 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1.TranscriptOutputConfig result = new com.google.cloud.speech.v1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -450,38 +489,39 @@ public com.google.cloud.speech.v1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig)other); + return mergeFrom((com.google.cloud.speech.v1.TranscriptOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -489,17 +529,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.TranscriptOutputConfig.getDefaultInstance()) + return this; switch (other.getOutputTypeCase()) { - case GCS_URI: { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: { - break; - } + case GCS_URI: + { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -520,7 +563,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -529,12 +573,12 @@ public Builder mergeFrom( } return this; } + private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public OutputTypeCase - getOutputTypeCase() { - return OutputTypeCase.forNumber( - outputTypeCase_); + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); } public Builder clearOutputType() { @@ -544,8 +588,9 @@ public Builder clearOutputType() { return this; } - /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -553,6 +598,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -560,6 +606,8 @@ public boolean hasGcsUri() { return outputTypeCase_ == 1; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -567,6 +615,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -576,8 +625,7 @@ public java.lang.String getGcsUri() { ref = outputType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputTypeCase_ == 1) { outputType_ = s; @@ -588,6 +636,8 @@ public java.lang.String getGcsUri() { } } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -595,19 +645,18 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsUriBytes() { + public com.google.protobuf.ByteString getGcsUriBytes() { java.lang.Object ref = ""; if (outputTypeCase_ == 1) { ref = outputType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputTypeCase_ == 1) { outputType_ = b; } @@ -617,6 +666,8 @@ public java.lang.String getGcsUri() { } } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -624,20 +675,22 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri( - java.lang.String value) { + public Builder setGcsUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -645,6 +698,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -656,6 +710,8 @@ public Builder clearGcsUri() { return this; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -663,23 +719,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -689,12 +745,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.TranscriptOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.TranscriptOutputConfig) private static final com.google.cloud.speech.v1.TranscriptOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.TranscriptOutputConfig(); } @@ -703,16 +759,16 @@ public static com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -727,6 +783,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java index 5ce9fd833..c5255ae75 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/TranscriptOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface TranscriptOutputConfigOrBuilder extends +public interface TranscriptOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -15,10 +33,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -26,10 +47,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ java.lang.String getGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -37,10 +61,10 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString - getGcsUriBytes(); + com.google.protobuf.ByteString getGcsUriBytes(); public com.google.cloud.speech.v1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java index f77de019b..59d7d95d0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `UpdateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.UpdateCustomClassRequest} */ -public final class UpdateCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.UpdateCustomClassRequest) UpdateCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateCustomClassRequest.newBuilder() to construct. private UpdateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateCustomClassRequest() { - } + + private UpdateCustomClassRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateCustomClassRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = input.readMessage(com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = + input.readMessage( + com.google.cloud.speech.v1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +113,33 @@ private UpdateCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.UpdateCustomClassRequest.class, + com.google.cloud.speech.v1.UpdateCustomClassRequest.Builder.class); } public static final int CUSTOM_CLASS_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.CustomClass customClass_; /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -127,7 +152,10 @@ private UpdateCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -135,6 +163,8 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -147,14 +177,21 @@ public boolean hasCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -167,7 +204,9 @@ public com.google.cloud.speech.v1.CustomClass getCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -177,11 +216,14 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -189,11 +231,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -201,6 +246,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -213,6 +260,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (customClass_ != null) { output.writeMessage(1, getCustomClass()); } @@ -242,12 +289,10 @@ public int getSerializedSize() { size = 0; if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomClass()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomClass()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,22 +302,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.UpdateCustomClassRequest other = (com.google.cloud.speech.v1.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v1.UpdateCustomClassRequest other = + (com.google.cloud.speech.v1.UpdateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -299,117 +343,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.UpdateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.UpdateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `UpdateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.UpdateCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.UpdateCustomClassRequest) com.google.cloud.speech.v1.UpdateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1.UpdateCustomClassRequest.class, + com.google.cloud.speech.v1.UpdateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.UpdateCustomClassRequest.newBuilder() @@ -417,16 +470,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdateCustomClassRequest_descriptor; } @java.lang.Override @@ -467,7 +519,8 @@ public com.google.cloud.speech.v1.UpdateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1.UpdateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1.UpdateCustomClassRequest(this); + com.google.cloud.speech.v1.UpdateCustomClassRequest result = + new com.google.cloud.speech.v1.UpdateCustomClassRequest(this); if (customClassBuilder_ == null) { result.customClass_ = customClass_; } else { @@ -486,38 +539,39 @@ public com.google.cloud.speech.v1.UpdateCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.UpdateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1.UpdateCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1.UpdateCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +579,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.UpdateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1.UpdateCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.UpdateCustomClassRequest.getDefaultInstance()) + return this; if (other.hasCustomClass()) { mergeCustomClass(other.getCustomClass()); } @@ -551,7 +606,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.UpdateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.UpdateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,8 +619,13 @@ public Builder mergeFrom( private com.google.cloud.speech.v1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> customClassBuilder_; + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder> + customClassBuilder_; /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -577,13 +638,18 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -596,17 +662,24 @@ public boolean hasCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -619,7 +692,9 @@ public com.google.cloud.speech.v1.CustomClass getCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) { if (customClassBuilder_ == null) { @@ -635,6 +710,8 @@ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) { return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -647,10 +724,11 @@ public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass value) {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setCustomClass( - com.google.cloud.speech.v1.CustomClass.Builder builderForValue) { + public Builder setCustomClass(com.google.cloud.speech.v1.CustomClass.Builder builderForValue) { if (customClassBuilder_ == null) { customClass_ = builderForValue.build(); onChanged(); @@ -661,6 +739,8 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -673,13 +753,17 @@ public Builder setCustomClass(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.CustomClass.newBuilder(customClass_) + .mergeFrom(value) + .buildPartial(); } else { customClass_ = value; } @@ -691,6 +775,8 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) { return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -703,7 +789,9 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1.CustomClass value) {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -717,6 +805,8 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -729,14 +819,18 @@ public Builder clearCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -749,17 +843,22 @@ public com.google.cloud.speech.v1.CustomClass.Builder getCustomClassBuilder() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -772,17 +871,22 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder()
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder> + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.CustomClass, com.google.cloud.speech.v1.CustomClass.Builder, com.google.cloud.speech.v1.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.CustomClass, + com.google.cloud.speech.v1.CustomClass.Builder, + com.google.cloud.speech.v1.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; @@ -790,34 +894,47 @@ public com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder() private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -838,14 +955,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -856,6 +974,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -866,7 +986,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -878,6 +998,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -896,6 +1018,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -903,11 +1027,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -918,11 +1044,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -930,21 +1059,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -954,12 +1086,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.UpdateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.UpdateCustomClassRequest) private static final com.google.cloud.speech.v1.UpdateCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.UpdateCustomClassRequest(); } @@ -968,16 +1100,16 @@ public static com.google.cloud.speech.v1.UpdateCustomClassRequest getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java index 502a36d40..884d296e1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdateCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface UpdateCustomClassRequestOrBuilder extends +public interface UpdateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -20,11 +38,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -37,11 +60,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v1.CustomClass getCustomClass(); /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -54,29 +82,39 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.CustomClassOrBuilder getCustomClassOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java index b0510d68c..bdd332557 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; /** + * + * *
  * Message sent by the client for the `UpdatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1.UpdatePhraseSetRequest} */ -public final class UpdatePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.UpdatePhraseSetRequest) UpdatePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdatePhraseSetRequest.newBuilder() to construct. private UpdatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdatePhraseSetRequest() { - } + + private UpdatePhraseSetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdatePhraseSetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = input.readMessage(com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = + input.readMessage( + com.google.cloud.speech.v1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +113,33 @@ private UpdatePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, + com.google.cloud.speech.v1.UpdatePhraseSetRequest.Builder.class); } public static final int PHRASE_SET_FIELD_NUMBER = 1; private com.google.cloud.speech.v1.PhraseSet phraseSet_; /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -127,7 +152,10 @@ private UpdatePhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -135,6 +163,8 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -147,14 +177,21 @@ public boolean hasPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -167,7 +204,9 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -177,11 +216,14 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -189,11 +231,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -201,6 +246,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -213,6 +260,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (phraseSet_ != null) { output.writeMessage(1, getPhraseSet()); } @@ -242,12 +289,10 @@ public int getSerializedSize() { size = 0; if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPhraseSet()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,22 +302,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1.UpdatePhraseSetRequest other = (com.google.cloud.speech.v1.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v1.UpdatePhraseSetRequest other = + (com.google.cloud.speech.v1.UpdatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -299,117 +343,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.UpdatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `UpdatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1.UpdatePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.UpdatePhraseSetRequest) com.google.cloud.speech.v1.UpdatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1.UpdatePhraseSetRequest.class, + com.google.cloud.speech.v1.UpdatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1.UpdatePhraseSetRequest.newBuilder() @@ -417,16 +470,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +498,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override @@ -467,7 +519,8 @@ public com.google.cloud.speech.v1.UpdatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1.UpdatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1.UpdatePhraseSetRequest(this); + com.google.cloud.speech.v1.UpdatePhraseSetRequest result = + new com.google.cloud.speech.v1.UpdatePhraseSetRequest(this); if (phraseSetBuilder_ == null) { result.phraseSet_ = phraseSet_; } else { @@ -486,38 +539,39 @@ public com.google.cloud.speech.v1.UpdatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.UpdatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1.UpdatePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1.UpdatePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +579,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1.UpdatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1.UpdatePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1.UpdatePhraseSetRequest.getDefaultInstance()) + return this; if (other.hasPhraseSet()) { mergePhraseSet(other.getPhraseSet()); } @@ -551,7 +606,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,8 +619,13 @@ public Builder mergeFrom( private com.google.cloud.speech.v1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> phraseSetBuilder_; + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder> + phraseSetBuilder_; /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -577,13 +638,18 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -596,17 +662,24 @@ public boolean hasPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -619,7 +692,9 @@ public com.google.cloud.speech.v1.PhraseSet getPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -635,6 +710,8 @@ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -647,10 +724,11 @@ public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet value) {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setPhraseSet( - com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { + public Builder setPhraseSet(com.google.cloud.speech.v1.PhraseSet.Builder builderForValue) { if (phraseSetBuilder_ == null) { phraseSet_ = builderForValue.build(); onChanged(); @@ -661,6 +739,8 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -673,13 +753,17 @@ public Builder setPhraseSet(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1.PhraseSet.newBuilder(phraseSet_) + .mergeFrom(value) + .buildPartial(); } else { phraseSet_ = value; } @@ -691,6 +775,8 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) { return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -703,7 +789,9 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1.PhraseSet value) {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -717,6 +805,8 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -729,14 +819,18 @@ public Builder clearPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -749,17 +843,22 @@ public com.google.cloud.speech.v1.PhraseSet.Builder getPhraseSetBuilder() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -772,17 +871,22 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder> + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1.PhraseSet, com.google.cloud.speech.v1.PhraseSet.Builder, com.google.cloud.speech.v1.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1.PhraseSet, + com.google.cloud.speech.v1.PhraseSet.Builder, + com.google.cloud.speech.v1.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; @@ -790,34 +894,47 @@ public com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder() { private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -838,14 +955,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -856,6 +974,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -866,7 +986,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -878,6 +998,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -896,6 +1018,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -903,11 +1027,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -918,11 +1044,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -930,21 +1059,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -954,12 +1086,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.UpdatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.UpdatePhraseSetRequest) private static final com.google.cloud.speech.v1.UpdatePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.UpdatePhraseSetRequest(); } @@ -968,16 +1100,16 @@ public static com.google.cloud.speech.v1.UpdatePhraseSetRequest getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,6 +1124,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java index 1c70780af..f4b31a356 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/UpdatePhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1; -public interface UpdatePhraseSetRequestOrBuilder extends +public interface UpdatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -20,11 +38,16 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -37,11 +60,16 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v1.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -54,29 +82,39 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java index 45597a92d..5542c73f0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfo.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; /** + * + * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ -public final class WordInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1.WordInfo) WordInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,55 +70,60 @@ private WordInfo( case 0: done = true; break; - case 10: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + word_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - word_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,29 +131,33 @@ private WordInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, + com.google.cloud.speech.v1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -142,6 +168,7 @@ private WordInfo(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -149,6 +176,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -159,6 +188,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -166,6 +196,8 @@ public com.google.protobuf.Duration getStartTime() { return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -185,6 +217,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration endTime_;
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -195,6 +229,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -202,6 +237,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -212,6 +249,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -219,6 +257,8 @@ public com.google.protobuf.Duration getEndTime() { return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -238,11 +278,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -251,29 +294,29 @@ public java.lang.String getWord() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); word_ = s; return s; } } /** + * + * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The bytes for word. */ @java.lang.Override - public com.google.protobuf.ByteString - getWordBytes() { + public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); word_ = b; return b; } else { @@ -284,6 +327,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -295,6 +340,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -305,6 +351,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -314,6 +362,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -322,6 +371,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,8 +383,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -360,23 +409,19 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(word_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, word_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -386,7 +431,7 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1.WordInfo)) { return super.equals(obj); @@ -395,21 +440,16 @@ public boolean equals(final java.lang.Object obj) { if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getWord() - .equals(other.getWord())) return false; + if (!getWord().equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -432,8 +472,7 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -441,118 +480,126 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1.WordInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1.WordInfo parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.speech.v1.WordInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.WordInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1.WordInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1.WordInfo) com.google.cloud.speech.v1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1.WordInfo.class, com.google.cloud.speech.v1.WordInfo.Builder.class); + com.google.cloud.speech.v1.WordInfo.class, + com.google.cloud.speech.v1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1.WordInfo.newBuilder() @@ -560,16 +607,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -595,9 +641,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1.SpeechProto.internal_static_google_cloud_speech_v1_WordInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1.SpeechProto + .internal_static_google_cloud_speech_v1_WordInfo_descriptor; } @java.lang.Override @@ -638,38 +684,39 @@ public com.google.cloud.speech.v1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1.WordInfo)other); + return mergeFrom((com.google.cloud.speech.v1.WordInfo) other); } else { super.mergeFrom(other); return this; @@ -725,8 +772,13 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -737,12 +789,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -753,6 +808,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -763,6 +819,8 @@ public com.google.protobuf.Duration getStartTime() { } } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -788,6 +846,8 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -799,8 +859,7 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -811,6 +870,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -826,7 +887,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -838,6 +899,8 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -861,6 +924,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -873,11 +938,13 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-      
+
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -893,11 +960,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : startTime_;
+        return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -910,14 +978,17 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Duration start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getStartTime(),
-                getParentForChildren(),
-                isClean());
+        startTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getStartTime(), getParentForChildren(), isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -925,8 +996,13 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Duration endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> endTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        endTimeBuilder_;
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -937,12 +1013,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -953,6 +1032,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -963,6 +1043,8 @@ public com.google.protobuf.Duration getEndTime() { } } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -988,6 +1070,8 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -999,8 +1083,7 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1011,6 +1094,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1026,7 +1111,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1038,6 +1123,8 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1061,6 +1148,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1073,11 +1162,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1093,11 +1184,12 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1110,14 +1202,17 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Duration end_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1125,18 +1220,20 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object word_ = "";
     /**
+     *
+     *
      * 
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); word_ = s; return s; @@ -1145,20 +1242,21 @@ public java.lang.String getWord() { } } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return The bytes for word. */ - public com.google.protobuf.ByteString - getWordBytes() { + public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); word_ = b; return b; } else { @@ -1166,61 +1264,70 @@ public java.lang.String getWord() { } } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord( - java.lang.String value) { + public Builder setWord(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes( - com.google.protobuf.ByteString value) { + public Builder setWordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1232,6 +1339,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1239,6 +1347,8 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1250,16 +1360,19 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1271,17 +1384,20 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1291,6 +1407,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1298,6 +1415,8 @@ public int getSpeakerTag() { return speakerTag_; } /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1307,16 +1426,19 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1326,17 +1448,18 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1346,12 +1469,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1.WordInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1.WordInfo) private static final com.google.cloud.speech.v1.WordInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1.WordInfo(); } @@ -1360,16 +1483,16 @@ public static com.google.cloud.speech.v1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1384,6 +1507,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java rename to proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java index f8e889216..45ed38fc6 100644 --- a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java +++ b/proto-google-cloud-speech-v1/src/main/java/com/google/cloud/speech/v1/WordInfoOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1/cloud_speech.proto package com.google.cloud.speech.v1; -public interface WordInfoOrBuilder extends +public interface WordInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1.WordInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -18,10 +36,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -32,10 +53,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -50,6 +74,8 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -60,10 +86,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -74,10 +103,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -92,26 +124,33 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ java.lang.String getWord(); /** + * + * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The bytes for word. */ - com.google.protobuf.ByteString - getWordBytes(); + com.google.protobuf.ByteString getWordBytes(); /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -123,11 +162,14 @@ public interface WordInfoOrBuilder extends
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -137,6 +179,7 @@ public interface WordInfoOrBuilder extends
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto b/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto rename to proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto b/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto rename to proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/cloud_speech_adaptation.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto b/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto rename to proto-google-cloud-speech-v1/src/main/proto/google/cloud/speech/v1/resource.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java index 8abd54116..6e9aa68ce 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `CreateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ -public final class CreateCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) CreateCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateCustomClassRequest.newBuilder() to construct. private CreateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateCustomClassRequest() { parent_ = ""; customClassId_ = ""; @@ -26,16 +44,15 @@ private CreateCustomClassRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreateCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - customClassId_ = s; - break; - } - case 26: { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); + parent_ = s; + break; } - customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + customClassId_ = s; + break; } + case 26: + { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,29 +115,33 @@ private CreateCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -126,7 +152,10 @@ private CreateCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -135,14 +164,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -153,17 +183,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -174,6 +205,8 @@ public java.lang.String getParent() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -182,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ @java.lang.Override @@ -190,14 +224,15 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -206,16 +241,15 @@ public java.lang.String getCustomClassId() {
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -226,11 +260,16 @@ public java.lang.String getCustomClassId() { public static final int CUSTOM_CLASS_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCustomClass()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCustomClass()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +399,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `CreateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreateCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) com.google.cloud.speech.v1p1beta1.CreateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.newBuilder() @@ -470,16 +527,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor; } @java.lang.Override @@ -518,7 +574,8 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(this); result.parent_ = parent_; result.customClassId_ = customClassId_; if (customClassBuilder_ == null) { @@ -534,38 +591,39 @@ public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +663,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,6 +676,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -626,14 +688,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -642,6 +706,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -652,16 +718,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -669,6 +736,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -679,21 +748,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -704,16 +777,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this custom class will be created. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -724,17 +802,19 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -742,6 +822,8 @@ public Builder setParentBytes( private java.lang.Object customClassId_ = ""; /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -750,13 +832,13 @@ public Builder setParentBytes(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -765,6 +847,8 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -773,15 +857,14 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -789,6 +872,8 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -797,20 +882,22 @@ public java.lang.String getCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -819,15 +906,18 @@ public Builder setCustomClassId(
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the custom class, which will become the final
      * component of the custom class' resource name.
@@ -836,16 +926,16 @@ public Builder clearCustomClassId() {
      * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; @@ -853,39 +943,58 @@ public Builder setCustomClassIdBytes( private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassBuilder_; /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { @@ -901,11 +1010,15 @@ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass valu return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass( com.google.cloud.speech.v1p1beta1.CustomClass.Builder builderForValue) { @@ -919,17 +1032,23 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) + .mergeFrom(value) + .buildPartial(); } else { customClass_ = value; } @@ -941,11 +1060,15 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -959,55 +1082,71 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The custom class to create.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1017,12 +1156,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) private static final com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest(); } @@ -1031,16 +1170,16 @@ public static com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1194,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java index a042d1917..0562cbcf6 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreateCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface CreateCustomClassRequestOrBuilder extends +public interface CreateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CreateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -18,11 +36,16 @@ public interface CreateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource where this custom class will be created. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -33,13 +56,17 @@ public interface CreateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -48,10 +75,13 @@ public interface CreateCustomClassRequestOrBuilder extends
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * Required. The ID to use for the custom class, which will become the final
    * component of the custom class' resource name.
@@ -60,35 +90,49 @@ public interface CreateCustomClassRequestOrBuilder extends
    * 
* * string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(); /** + * + * *
    * Required. The custom class to create.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java index c4450fceb..a8217d17d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `CreatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ -public final class CreatePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) CreatePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreatePhraseSetRequest.newBuilder() to construct. private CreatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreatePhraseSetRequest() { parent_ = ""; phraseSetId_ = ""; @@ -26,16 +44,15 @@ private CreatePhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,38 +71,43 @@ private CreatePhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - phraseSetId_ = s; - break; - } - case 26: { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); + parent_ = s; + break; } - phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + phraseSetId_ = s; + break; } + case 26: + { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,29 +115,33 @@ private CreatePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -126,7 +152,10 @@ private CreatePhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -135,14 +164,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -153,17 +183,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -174,6 +205,8 @@ public java.lang.String getParent() { public static final int PHRASE_SET_ID_FIELD_NUMBER = 2; private volatile java.lang.Object phraseSetId_; /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -182,6 +215,7 @@ public java.lang.String getParent() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ @java.lang.Override @@ -190,14 +224,15 @@ public java.lang.String getPhraseSetId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; } } /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -206,16 +241,15 @@ public java.lang.String getPhraseSetId() {
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phraseSetId. */ @java.lang.Override - public com.google.protobuf.ByteString - getPhraseSetIdBytes() { + public com.google.protobuf.ByteString getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -226,11 +260,16 @@ public java.lang.String getPhraseSetId() { public static final int PHRASE_SET_FIELD_NUMBER = 3; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -238,23 +277,34 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -262,6 +312,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -273,8 +324,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -300,8 +350,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, phraseSetId_); } if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPhraseSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -311,21 +360,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (!getPhraseSetId() - .equals(other.getPhraseSetId())) return false; + if (!getParent().equals(other.getParent())) return false; + if (!getPhraseSetId().equals(other.getPhraseSetId())) return false; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +399,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `CreatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CreatePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.newBuilder() @@ -470,16 +527,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -497,9 +553,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor; } @java.lang.Override @@ -518,7 +574,8 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(this); result.parent_ = parent_; result.phraseSetId_ = phraseSetId_; if (phraseSetBuilder_ == null) { @@ -534,38 +591,39 @@ public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -573,7 +631,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -604,7 +663,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,6 +676,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -626,14 +688,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -642,6 +706,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -652,16 +718,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -669,6 +736,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -679,21 +748,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -704,16 +777,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource where this phrase set will be created. Format:
      * `projects/{project}/locations/{location}/phraseSets`
@@ -724,17 +802,19 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -742,6 +822,8 @@ public Builder setParentBytes( private java.lang.Object phraseSetId_ = ""; /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -750,13 +832,13 @@ public Builder setParentBytes(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ public java.lang.String getPhraseSetId() { java.lang.Object ref = phraseSetId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); phraseSetId_ = s; return s; @@ -765,6 +847,8 @@ public java.lang.String getPhraseSetId() { } } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -773,15 +857,14 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phraseSetId. */ - public com.google.protobuf.ByteString - getPhraseSetIdBytes() { + public com.google.protobuf.ByteString getPhraseSetIdBytes() { java.lang.Object ref = phraseSetId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); phraseSetId_ = b; return b; } else { @@ -789,6 +872,8 @@ public java.lang.String getPhraseSetId() { } } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -797,20 +882,22 @@ public java.lang.String getPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetId( - java.lang.String value) { + public Builder setPhraseSetId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + phraseSetId_ = value; onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -819,15 +906,18 @@ public Builder setPhraseSetId(
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearPhraseSetId() { - + phraseSetId_ = getDefaultInstance().getPhraseSetId(); onChanged(); return this; } /** + * + * *
      * Required. The ID to use for the phrase set, which will become the final
      * component of the phrase set's resource name.
@@ -836,16 +926,16 @@ public Builder clearPhraseSetId() {
      * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for phraseSetId to set. * @return This builder for chaining. */ - public Builder setPhraseSetIdBytes( - com.google.protobuf.ByteString value) { + public Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + phraseSetId_ = value; onChanged(); return this; @@ -853,39 +943,58 @@ public Builder setPhraseSetIdBytes( private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetBuilder_; /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -901,11 +1010,15 @@ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet( com.google.cloud.speech.v1p1beta1.PhraseSet.Builder builderForValue) { @@ -919,17 +1032,23 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) + .mergeFrom(value) + .buildPartial(); } else { phraseSet_ = value; } @@ -941,11 +1060,15 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -959,55 +1082,71 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The phrase set to create.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1017,12 +1156,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest(); } @@ -1031,16 +1170,16 @@ public static com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1194,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CreatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java index e21aaa6f9..4b4c85e4a 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CreatePhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface CreatePhraseSetRequestOrBuilder extends +public interface CreatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CreatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -18,11 +36,16 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource where this phrase set will be created. Format:
    * `projects/{project}/locations/{location}/phraseSets`
@@ -33,13 +56,17 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -48,10 +75,13 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The phraseSetId. */ java.lang.String getPhraseSetId(); /** + * + * *
    * Required. The ID to use for the phrase set, which will become the final
    * component of the phrase set's resource name.
@@ -60,35 +90,49 @@ public interface CreatePhraseSetRequestOrBuilder extends
    * 
* * string phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for phraseSetId. */ - com.google.protobuf.ByteString - getPhraseSetIdBytes(); + com.google.protobuf.ByteString getPhraseSetIdBytes(); /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The phrase set to create.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java index 5ffa435fe..d726e419b 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClass.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * A set of words or phrases that represents a common concept likely to appear
  * in your audio, for example a list of passenger ship names. CustomClass items
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
  */
-public final class CustomClass extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CustomClass extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass)
     CustomClassOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CustomClass.newBuilder() to construct.
   private CustomClass(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CustomClass() {
     name_ = "";
     customClassId_ = "";
@@ -29,16 +47,15 @@ private CustomClass() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CustomClass();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CustomClass(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,34 +75,41 @@ private CustomClass(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            customClassId_ = s;
-            break;
-          }
-          case 26: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              items_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              customClassId_ = s;
+              break;
             }
-            items_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 26:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                items_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              items_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.parser(),
+                      extensionRegistry));
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,8 +117,7 @@ private CustomClass(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         items_ = java.util.Collections.unmodifiableList(items_);
@@ -103,75 +126,86 @@ private CustomClass(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+            com.google.cloud.speech.v1p1beta1.CustomClass.class,
+            com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
   }
 
-  public interface ClassItemOrBuilder extends
+  public interface ClassItemOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass.ClassItem)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); } /** + * + * *
    * An item of the class.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class ClassItem extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ClassItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) ClassItemOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassItem.newBuilder() to construct. private ClassItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ClassItem() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -190,19 +224,20 @@ private ClassItem( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - value_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + value_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -210,34 +245,39 @@ private ClassItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -246,29 +286,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * The class item's value.
      * 
* * string value = 1; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -277,6 +317,7 @@ public java.lang.String getValue() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +329,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -313,15 +353,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other = + (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -341,87 +381,94 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -431,27 +478,32 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * An item of the class.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass.ClassItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.class, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.newBuilder() @@ -459,16 +511,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -478,9 +529,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; } @java.lang.Override @@ -499,7 +550,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem result = + new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(this); result.value_ = value_; onBuilt(); return result; @@ -509,38 +561,41 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) other); } else { super.mergeFrom(other); return this; @@ -548,7 +603,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem other) { - if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()) + return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); @@ -572,7 +628,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -584,18 +641,20 @@ public Builder mergeFrom( private java.lang.Object value_ = ""; /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -604,20 +663,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -625,58 +685,66 @@ public java.lang.String getValue() { } } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The class item's value.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -689,12 +757,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.CustomClass.ClassItem) private static final com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem(); } @@ -703,16 +771,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -727,17 +795,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -746,29 +816,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -779,12 +849,15 @@ public java.lang.String getName() { public static final int CUSTOM_CLASS_ID_FIELD_NUMBER = 2; private volatile java.lang.Object customClassId_; /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ @java.lang.Override @@ -793,30 +866,30 @@ public java.lang.String getCustomClassId() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; } } /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ @java.lang.Override - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -827,6 +900,8 @@ public java.lang.String getCustomClassId() { public static final int ITEMS_FIELD_NUMBER = 3; private java.util.List items_; /** + * + * *
    * A collection of class items.
    * 
@@ -838,6 +913,8 @@ public java.util.List g return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -845,11 +922,13 @@ public java.util.List g * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ @java.lang.Override - public java.util.List + public java.util.List getItemsOrBuilderList() { return items_; } /** + * + * *
    * A collection of class items.
    * 
@@ -861,6 +940,8 @@ public int getItemsCount() { return items_.size(); } /** + * + * *
    * A collection of class items.
    * 
@@ -872,6 +953,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde return items_.get(index); } /** + * + * *
    * A collection of class items.
    * 
@@ -885,6 +968,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -896,8 +980,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -923,8 +1006,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, customClassId_); } for (int i = 0; i < items_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, items_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -934,19 +1016,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.CustomClass)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.CustomClass other = (com.google.cloud.speech.v1p1beta1.CustomClass) obj; + com.google.cloud.speech.v1p1beta1.CustomClass other = + (com.google.cloud.speech.v1p1beta1.CustomClass) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getCustomClassId() - .equals(other.getCustomClassId())) return false; - if (!getItemsList() - .equals(other.getItemsList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getCustomClassId().equals(other.getCustomClassId())) return false; + if (!getItemsList().equals(other.getItemsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -971,97 +1051,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.CustomClass parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.CustomClass parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.CustomClass parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.CustomClass prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A set of words or phrases that represents a common concept likely to appear
    * in your audio, for example a list of passenger ship names. CustomClass items
@@ -1070,21 +1157,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.CustomClass}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.CustomClass)
       com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.CustomClass.class, com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
+              com.google.cloud.speech.v1p1beta1.CustomClass.class,
+              com.google.cloud.speech.v1p1beta1.CustomClass.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder()
@@ -1092,17 +1181,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getItemsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1120,9 +1209,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor;
     }
 
     @java.lang.Override
@@ -1141,7 +1230,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
-      com.google.cloud.speech.v1p1beta1.CustomClass result = new com.google.cloud.speech.v1p1beta1.CustomClass(this);
+      com.google.cloud.speech.v1p1beta1.CustomClass result =
+          new com.google.cloud.speech.v1p1beta1.CustomClass(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.customClassId_ = customClassId_;
@@ -1162,38 +1252,39 @@ public com.google.cloud.speech.v1p1beta1.CustomClass buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.CustomClass) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.CustomClass) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1228,9 +1319,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.CustomClass other) {
             itemsBuilder_ = null;
             items_ = other.items_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            itemsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getItemsFieldBuilder() : null;
+            itemsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getItemsFieldBuilder()
+                    : null;
           } else {
             itemsBuilder_.addAllMessages(other.items_);
           }
@@ -1264,22 +1356,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1288,20 +1383,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1309,54 +1405,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the custom class.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1364,19 +1467,21 @@ public Builder setNameBytes( private java.lang.Object customClassId_ = ""; /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return The customClassId. */ public java.lang.String getCustomClassId() { java.lang.Object ref = customClassId_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); customClassId_ = s; return s; @@ -1385,21 +1490,22 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - public com.google.protobuf.ByteString - getCustomClassIdBytes() { + public com.google.protobuf.ByteString getCustomClassIdBytes() { java.lang.Object ref = customClassId_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); customClassId_ = b; return b; } else { @@ -1407,75 +1513,90 @@ public java.lang.String getCustomClassId() { } } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassId( - java.lang.String value) { + public Builder setCustomClassId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + customClassId_ = value; onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @return This builder for chaining. */ public Builder clearCustomClassId() { - + customClassId_ = getDefaultInstance().getCustomClassId(); onChanged(); return this; } /** + * + * *
      * If this custom class is a resource, the custom_class_id is the resource id
      * of the CustomClass. Case sensitive.
      * 
* * string custom_class_id = 2; + * * @param value The bytes for customClassId to set. * @return This builder for chaining. */ - public Builder setCustomClassIdBytes( - com.google.protobuf.ByteString value) { + public Builder setCustomClassIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customClassId_ = value; onChanged(); return this; } private java.util.List items_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - items_ = new java.util.ArrayList(items_); + items_ = + new java.util.ArrayList( + items_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> itemsBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> + itemsBuilder_; /** + * + * *
      * A collection of class items.
      * 
@@ -1490,6 +1611,8 @@ public java.util.List g } } /** + * + * *
      * A collection of class items.
      * 
@@ -1504,6 +1627,8 @@ public int getItemsCount() { } } /** + * + * *
      * A collection of class items.
      * 
@@ -1518,6 +1643,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int inde } } /** + * + * *
      * A collection of class items.
      * 
@@ -1539,6 +1666,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1546,7 +1675,8 @@ public Builder setItems( * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ public Builder setItems( - int index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder builderForValue) { + int index, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.set(index, builderForValue.build()); @@ -1557,6 +1687,8 @@ public Builder setItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1577,6 +1709,8 @@ public Builder addItems(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1598,6 +1732,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1616,6 +1752,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1623,7 +1761,8 @@ public Builder addItems( * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ public Builder addItems( - int index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder builderForValue) { + int index, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder builderForValue) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); items_.add(index, builderForValue.build()); @@ -1634,6 +1773,8 @@ public Builder addItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1641,11 +1782,11 @@ public Builder addItems( * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ public Builder addAllItems( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (itemsBuilder_ == null) { ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, items_); onChanged(); } else { itemsBuilder_.addAllMessages(values); @@ -1653,6 +1794,8 @@ public Builder addAllItems( return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1670,6 +1813,8 @@ public Builder clearItems() { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1687,6 +1832,8 @@ public Builder removeItems(int index) { return this; } /** + * + * *
      * A collection of class items.
      * 
@@ -1698,6 +1845,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB return getItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * A collection of class items.
      * 
@@ -1707,19 +1856,23 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder getItemsB public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( int index) { if (itemsBuilder_ == null) { - return items_.get(index); } else { + return items_.get(index); + } else { return itemsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> + getItemsOrBuilderList() { if (itemsBuilder_ != null) { return itemsBuilder_.getMessageOrBuilderList(); } else { @@ -1727,6 +1880,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems } } /** + * + * *
      * A collection of class items.
      * 
@@ -1734,10 +1889,12 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItems * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder(com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
@@ -1746,37 +1903,43 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsB */ public com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder addItemsBuilder( int index) { - return getItemsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); + return getItemsFieldBuilder() + .addBuilder( + index, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.getDefaultInstance()); } /** + * + * *
      * A collection of class items.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - public java.util.List - getItemsBuilderList() { + public java.util.List + getItemsBuilderList() { return getItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder> getItemsFieldBuilder() { if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( - items_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + itemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem.Builder, + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder>( + items_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); items_ = null; } return itemsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1786,12 +1949,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.CustomClass) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.CustomClass) private static final com.google.cloud.speech.v1p1beta1.CustomClass DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.CustomClass(); } @@ -1800,16 +1963,16 @@ public static com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomClass parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CustomClass(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomClass(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1824,6 +1987,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.CustomClass getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java index 5a2383a9c..494362336 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/CustomClassOrBuilder.java @@ -1,64 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface CustomClassOrBuilder extends +public interface CustomClassOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.CustomClass) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the custom class.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The customClassId. */ java.lang.String getCustomClassId(); /** + * + * *
    * If this custom class is a resource, the custom_class_id is the resource id
    * of the CustomClass. Case sensitive.
    * 
* * string custom_class_id = 2; + * * @return The bytes for customClassId. */ - com.google.protobuf.ByteString - getCustomClassIdBytes(); + com.google.protobuf.ByteString getCustomClassIdBytes(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List - getItemsList(); + java.util.List getItemsList(); /** + * + * *
    * A collection of class items.
    * 
@@ -67,6 +96,8 @@ public interface CustomClassOrBuilder extends */ com.google.cloud.speech.v1p1beta1.CustomClass.ClassItem getItems(int index); /** + * + * *
    * A collection of class items.
    * 
@@ -75,21 +106,24 @@ public interface CustomClassOrBuilder extends */ int getItemsCount(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - java.util.List + java.util.List getItemsOrBuilderList(); /** + * + * *
    * A collection of class items.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3; */ - com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java index 8ee08778b..ae7c77afe 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `DeleteCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ -public final class DeleteCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) DeleteCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteCustomClassRequest.newBuilder() to construct. private DeleteCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private DeleteCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -106,7 +128,10 @@ private DeleteCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -115,14 +140,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -133,17 +159,18 @@ public java.lang.String getName() {
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -152,6 +179,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -188,15 +215,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -216,117 +243,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `DeleteCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeleteCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.newBuilder() @@ -334,16 +371,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor; } @java.lang.Override @@ -374,7 +410,8 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -384,38 +421,39 @@ public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -423,7 +461,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -447,7 +486,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -459,6 +499,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -469,14 +511,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -485,6 +529,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -495,16 +541,17 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -512,6 +559,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -522,21 +571,25 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -547,16 +600,21 @@ public Builder setName(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to delete. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -567,24 +625,26 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +654,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) private static final com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest(); } @@ -608,16 +668,16 @@ public static com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,6 +692,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java index 477f46c0e..21121096e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeleteCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface DeleteCustomClassRequestOrBuilder extends +public interface DeleteCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeleteCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -18,11 +36,16 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the custom class to delete. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
@@ -33,9 +56,11 @@ public interface DeleteCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java similarity index 66% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java index 998916bf5..757ab546e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `DeletePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ -public final class DeletePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeletePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) DeletePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeletePhraseSetRequest.newBuilder() to construct. private DeletePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeletePhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeletePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeletePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeletePhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private DeletePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the phrase set to delete. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `DeletePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.DeletePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to delete. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeletePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeletePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java new file mode 100644 index 000000000..f6228f5da --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/DeletePhraseSetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface DeletePhraseSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.DeletePhraseSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the phrase set to delete. Format:
+   * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java similarity index 66% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java index 9d6b0d790..189afa6c7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `GetCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ -public final class GetCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) GetCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetCustomClassRequest.newBuilder() to construct. private GetCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetCustomClassRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetCustomClassRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,35 +91,42 @@ private GetCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -110,30 +135,32 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the custom class to retrieve. Format:
    * `projects/{project}/locations/{location}/customClasses/{custom_class}`
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +205,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.GetCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `GetCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetCustomClassRequest) com.google.cloud.speech.v1p1beta1.GetCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.newBuilder() @@ -324,16 +361,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -343,9 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.GetCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.GetCustomClassRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.GetCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the custom class to retrieve. Format:
      * `projects/{project}/locations/{location}/customClasses/{custom_class}`
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.GetCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.GetCustomClassRequest) private static final com.google.cloud.speech.v1p1beta1.GetCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.GetCustomClassRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java new file mode 100644 index 000000000..05350941a --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetCustomClassRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface GetCustomClassRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetCustomClassRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the custom class to retrieve. Format:
+   * `projects/{project}/locations/{location}/customClasses/{custom_class}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java index e479df042..b9057852d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `GetPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ -public final class GetPhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) GetPhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetPhraseSetRequest.newBuilder() to construct. private GetPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetPhraseSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetPhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetPhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -106,7 +128,10 @@ private GetPhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -115,14 +140,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -133,17 +159,18 @@ public java.lang.String getName() {
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -152,6 +179,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -188,15 +215,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -216,117 +243,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `GetPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.GetPhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) com.google.cloud.speech.v1p1beta1.GetPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.newBuilder() @@ -334,16 +371,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -353,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor; } @java.lang.Override @@ -374,7 +410,8 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -384,38 +421,39 @@ public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -423,7 +461,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -447,7 +486,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -459,6 +499,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -469,14 +511,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -485,6 +529,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -495,16 +541,17 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -512,6 +559,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -522,21 +571,25 @@ public java.lang.String getName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -547,16 +600,21 @@ public Builder setName(
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the phrase set to retrieve. Format:
      * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -567,24 +625,26 @@ public Builder clearName() {
      * with matching `us` or `eu` location value.
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -594,12 +654,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest(); } @@ -608,16 +668,16 @@ public static com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -632,6 +692,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.GetPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java index b5ad6ae00..fb9fa55ec 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/GetPhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface GetPhraseSetRequestOrBuilder extends +public interface GetPhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.GetPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -18,11 +36,16 @@ public interface GetPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Required. The name of the phrase set to retrieve. Format:
    * `projects/{project}/locations/{location}/phraseSets/{phrase_set}`
@@ -33,9 +56,11 @@ public interface GetPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java index 6a67c3edf..af0dbcbd0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ -public final class ListCustomClassesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCustomClassesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) ListCustomClassesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCustomClassesRequest.newBuilder() to construct. private ListCustomClassesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCustomClassesRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListCustomClassesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCustomClassesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCustomClassesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListCustomClassesRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +104,33 @@ private ListCustomClassesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -118,7 +141,10 @@ private ListCustomClassesRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -127,14 +153,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -145,17 +172,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,6 +194,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -174,6 +204,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -184,6 +215,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -192,6 +225,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +234,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -216,16 +251,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -234,6 +268,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +280,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,8 +303,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -283,19 +316,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -319,117 +350,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) com.google.cloud.speech.v1p1beta1.ListCustomClassesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.newBuilder() @@ -437,16 +478,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +500,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor; } @java.lang.Override @@ -481,7 +521,8 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest result = + new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -493,38 +534,39 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) other); } else { super.mergeFrom(other); return this; @@ -532,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -563,7 +606,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -575,6 +619,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -585,14 +631,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -601,6 +649,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -611,16 +661,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -628,6 +679,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -638,21 +691,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -663,16 +720,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of custom classes. Format:
      * `projects/{project}/locations/{location}/customClasses`
@@ -683,24 +745,28 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -709,6 +775,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -716,6 +783,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -724,16 +793,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of custom classes to return. The service may return
      * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -742,10 +814,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -753,6 +826,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -761,13 +836,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -776,6 +851,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -784,15 +861,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -800,6 +876,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -808,20 +886,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -830,15 +910,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListCustomClass` call.
      * Provide this to retrieve the subsequent page.
@@ -847,23 +930,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +956,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) private static final com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest(); } @@ -887,16 +970,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +994,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListCustomClassesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java index e83c2e601..de9020900 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListCustomClassesRequestOrBuilder extends +public interface ListCustomClassesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListCustomClassesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -18,11 +36,16 @@ public interface ListCustomClassesRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns this collection of custom classes. Format:
    * `projects/{project}/locations/{location}/customClasses`
@@ -33,13 +56,17 @@ public interface ListCustomClassesRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of custom classes to return. The service may return
    * fewer than this value. If unspecified, at most 50 custom classes will be
@@ -48,11 +75,14 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -61,10 +91,13 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListCustomClass` call.
    * Provide this to retrieve the subsequent page.
@@ -73,8 +106,8 @@ public interface ListCustomClassesRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java index ebef3078c..de3512d70 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message returned to the client by the `ListCustomClasses` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ -public final class ListCustomClassesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListCustomClassesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) ListCustomClassesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListCustomClassesResponse.newBuilder() to construct. private ListCustomClassesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListCustomClassesResponse() { customClasses_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListCustomClassesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListCustomClassesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListCustomClassesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListCustomClassesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + customClasses_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListCustomClassesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { customClasses_ = java.util.Collections.unmodifiableList(customClasses_); @@ -94,22 +114,27 @@ private ListCustomClassesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 1; private java.util.List customClasses_; /** + * + * *
    * The custom classes.
    * 
@@ -121,6 +146,8 @@ public java.util.List getCustomCl return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -128,11 +155,13 @@ public java.util.List getCustomCl * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ @java.lang.Override - public java.util.List + public java.util.List getCustomClassesOrBuilderList() { return customClasses_; } /** + * + * *
    * The custom classes.
    * 
@@ -144,6 +173,8 @@ public int getCustomClassesCount() { return customClasses_.size(); } /** + * + * *
    * The custom classes.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) return customClasses_.get(index); } /** + * + * *
    * The custom classes.
    * 
@@ -170,12 +203,15 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +220,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < customClasses_.size(); i++) { output.writeMessage(1, customClasses_.get(i)); } @@ -245,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < customClasses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, customClasses_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customClasses_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +294,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) obj; - if (!getCustomClassesList() - .equals(other.getCustomClassesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getCustomClassesList().equals(other.getCustomClassesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +327,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message returned to the client by the `ListCustomClasses` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListCustomClassesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.cloud.speech.v1p1beta1.ListCustomClassesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.class, + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.newBuilder() @@ -411,17 +455,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +481,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor; } @java.lang.Override @@ -458,7 +502,8 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); + com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse result = + new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(this); int from_bitField0_ = bitField0_; if (customClassesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +523,39 @@ public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +563,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse other) { - if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse.getDefaultInstance()) + return this; if (customClassesBuilder_ == null) { if (!other.customClasses_.isEmpty()) { if (customClasses_.isEmpty()) { @@ -536,9 +583,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListCustomClassesResp customClassesBuilder_ = null; customClasses_ = other.customClasses_; bitField0_ = (bitField0_ & ~0x00000001); - customClassesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomClassesFieldBuilder() : null; + customClassesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomClassesFieldBuilder() + : null; } else { customClassesBuilder_.addAllMessages(other.customClasses_); } @@ -567,7 +615,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +625,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List customClasses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - customClasses_ = new java.util.ArrayList(customClasses_); + customClasses_ = + new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassesBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassesBuilder_; /** + * + * *
      * The custom classes.
      * 
@@ -605,6 +662,8 @@ public java.util.List getCustomCl } } /** + * + * *
      * The custom classes.
      * 
@@ -619,6 +678,8 @@ public int getCustomClassesCount() { } } /** + * + * *
      * The custom classes.
      * 
@@ -633,6 +694,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index) } } /** + * + * *
      * The custom classes.
      * 
@@ -654,6 +717,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -672,6 +737,8 @@ public Builder setCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -692,6 +759,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** + * + * *
      * The custom classes.
      * 
@@ -713,6 +782,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -731,6 +802,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -749,6 +822,8 @@ public Builder addCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -759,8 +834,7 @@ public Builder addAllCustomClasses( java.lang.Iterable values) { if (customClassesBuilder_ == null) { ensureCustomClassesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customClasses_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customClasses_); onChanged(); } else { customClassesBuilder_.addAllMessages(values); @@ -768,6 +842,8 @@ public Builder addAllCustomClasses( return this; } /** + * + * *
      * The custom classes.
      * 
@@ -785,6 +861,8 @@ public Builder clearCustomClasses() { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -802,6 +880,8 @@ public Builder removeCustomClasses(int index) { return this; } /** + * + * *
      * The custom classes.
      * 
@@ -813,6 +893,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui return getCustomClassesFieldBuilder().getBuilder(index); } /** + * + * *
      * The custom classes.
      * 
@@ -822,19 +904,22 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder( int index) { if (customClassesBuilder_ == null) { - return customClasses_.get(index); } else { + return customClasses_.get(index); + } else { return customClassesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesOrBuilderList() { + public java.util.List + getCustomClassesOrBuilderList() { if (customClassesBuilder_ != null) { return customClassesBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +927,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr } } /** + * + * *
      * The custom classes.
      * 
@@ -849,10 +936,12 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBuilder() { - return getCustomClassesFieldBuilder().addBuilder( - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder() + .addBuilder(com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()); } /** + * + * *
      * The custom classes.
      * 
@@ -861,26 +950,34 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBuilder( int index) { - return getCustomClassesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()); + return getCustomClassesFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance()); } /** + * + * *
      * The custom classes.
      * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - public java.util.List - getCustomClassesBuilderList() { + public java.util.List + getCustomClassesBuilderList() { return getCustomClassesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> getCustomClassesFieldBuilder() { if (customClassesBuilder_ == null) { - customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( + customClassesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( customClasses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -892,19 +989,21 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1012,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1035,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1109,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) private static final com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse(); } @@ -1016,16 +1123,16 @@ public static com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomClassesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListCustomClassesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomClassesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomClassesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1147,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.ListCustomClassesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java index bb845e981..ba426471d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListCustomClassesResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListCustomClassesResponseOrBuilder extends +public interface ListCustomClassesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListCustomClassesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List - getCustomClassesList(); + java.util.List getCustomClassesList(); /** + * + * *
    * The custom classes.
    * 
@@ -25,6 +44,8 @@ public interface ListCustomClassesResponseOrBuilder extends */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index); /** + * + * *
    * The custom classes.
    * 
@@ -33,43 +54,51 @@ public interface ListCustomClassesResponseOrBuilder extends */ int getCustomClassesCount(); /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - java.util.List + java.util.List getCustomClassesOrBuilderList(); /** + * + * *
    * The custom classes.
    * 
* * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 1; */ - com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java index 57facef81..4201268c4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ -public final class ListPhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) ListPhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPhraseSetRequest.newBuilder() to construct. private ListPhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPhraseSetRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListPhraseSetRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListPhraseSetRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,29 +104,33 @@ private ListPhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -118,7 +141,10 @@ private ListPhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -127,14 +153,15 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -145,17 +172,18 @@ public java.lang.String getParent() {
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -166,6 +194,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -174,6 +204,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -184,6 +215,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -192,6 +225,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -200,14 +234,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -216,16 +251,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -234,6 +268,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -245,8 +280,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -269,8 +303,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -283,19 +316,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -319,117 +350,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) com.google.cloud.speech.v1p1beta1.ListPhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.newBuilder() @@ -437,16 +478,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -460,9 +500,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor; } @java.lang.Override @@ -481,7 +521,8 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -493,38 +534,39 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -532,7 +574,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -563,7 +606,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -575,6 +619,8 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -585,14 +631,16 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -601,6 +649,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -611,16 +661,17 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -628,6 +679,8 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -638,21 +691,25 @@ public java.lang.String getParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -663,16 +720,21 @@ public Builder setParent(
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of phrase set. Format:
      * `projects/{project}/locations/{location}`
@@ -683,24 +745,28 @@ public Builder clearParent() {
      * with matching `us` or `eu` location value.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -709,6 +775,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -716,6 +783,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -724,16 +793,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of phrase sets to return. The service may return
      * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -742,10 +814,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -753,6 +826,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -761,13 +836,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -776,6 +851,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -784,15 +861,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -800,6 +876,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -808,20 +886,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -830,15 +910,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListPhraseSet` call.
      * Provide this to retrieve the subsequent page.
@@ -847,23 +930,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,12 +956,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest(); } @@ -887,16 +970,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -911,6 +994,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java index 1f93fa365..51f535258 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListPhraseSetRequestOrBuilder extends +public interface ListPhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListPhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -18,11 +36,16 @@ public interface ListPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent, which owns this collection of phrase set. Format:
    * `projects/{project}/locations/{location}`
@@ -33,13 +56,17 @@ public interface ListPhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of phrase sets to return. The service may return
    * fewer than this value. If unspecified, at most 50 phrase sets will be
@@ -48,11 +75,14 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -61,10 +91,13 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListPhraseSet` call.
    * Provide this to retrieve the subsequent page.
@@ -73,8 +106,8 @@ public interface ListPhraseSetRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java index 5a8f05764..224b4ffad 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message returned to the client by the `ListPhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ -public final class ListPhraseSetResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListPhraseSetResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) ListPhraseSetResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListPhraseSetResponse.newBuilder() to construct. private ListPhraseSetResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListPhraseSetResponse() { phraseSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListPhraseSetResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListPhraseSetResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListPhraseSetResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListPhraseSetResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListPhraseSetResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -94,22 +114,27 @@ private ListPhraseSetResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * The phrase set.
    * 
@@ -121,6 +146,8 @@ public java.util.List getPhraseSets return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -128,11 +155,13 @@ public java.util.List getPhraseSets * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getPhraseSetsOrBuilderList() { return phraseSets_; } /** + * + * *
    * The phrase set.
    * 
@@ -144,6 +173,8 @@ public int getPhraseSetsCount() { return phraseSets_.size(); } /** + * + * *
    * The phrase set.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { return phraseSets_.get(index); } /** + * + * *
    * The phrase set.
    * 
@@ -162,20 +195,22 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { return phraseSets_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,30 +219,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -216,6 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +263,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < phraseSets_.size(); i++) { output.writeMessage(1, phraseSets_.get(i)); } @@ -245,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < phraseSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, phraseSets_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, phraseSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -259,17 +293,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) obj; - if (!getPhraseSetsList() - .equals(other.getPhraseSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message returned to the client by the `ListPhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.ListPhraseSetResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.cloud.speech.v1p1beta1.ListPhraseSetResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.class, + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.newBuilder() @@ -411,17 +454,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +480,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor; } @java.lang.Override @@ -458,7 +501,8 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { - com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); + com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse result = + new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -478,38 +522,39 @@ public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) other); } else { super.mergeFrom(other); return this; @@ -517,7 +562,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse other) { - if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse.getDefaultInstance()) + return this; if (phraseSetsBuilder_ == null) { if (!other.phraseSets_.isEmpty()) { if (phraseSets_.isEmpty()) { @@ -536,9 +582,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse phraseSetsBuilder_ = null; phraseSets_ = other.phraseSets_; bitField0_ = (bitField0_ & ~0x00000001); - phraseSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPhraseSetsFieldBuilder() : null; + phraseSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhraseSetsFieldBuilder() + : null; } else { phraseSetsBuilder_.addAllMessages(other.phraseSets_); } @@ -567,7 +614,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,21 +624,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(phraseSets_); + phraseSets_ = + new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * The phrase set.
      * 
@@ -605,6 +661,8 @@ public java.util.List getPhraseSets } } /** + * + * *
      * The phrase set.
      * 
@@ -619,6 +677,8 @@ public int getPhraseSetsCount() { } } /** + * + * *
      * The phrase set.
      * 
@@ -633,14 +693,15 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) { } } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public Builder setPhraseSets( - int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) { + public Builder setPhraseSets(int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -654,6 +715,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -672,6 +735,8 @@ public Builder setPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -692,14 +757,15 @@ public Builder addPhraseSets(com.google.cloud.speech.v1p1beta1.PhraseSet value) return this; } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public Builder addPhraseSets( - int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) { + public Builder addPhraseSets(int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,6 +779,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -731,6 +799,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -749,6 +819,8 @@ public Builder addPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -759,8 +831,7 @@ public Builder addAllPhraseSets( java.lang.Iterable values) { if (phraseSetsBuilder_ == null) { ensurePhraseSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phraseSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSets_); onChanged(); } else { phraseSetsBuilder_.addAllMessages(values); @@ -768,6 +839,8 @@ public Builder addAllPhraseSets( return this; } /** + * + * *
      * The phrase set.
      * 
@@ -785,6 +858,8 @@ public Builder clearPhraseSets() { return this; } /** + * + * *
      * The phrase set.
      * 
@@ -802,39 +877,44 @@ public Builder removePhraseSets(int index) { return this; } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder(int index) { return getPhraseSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) { if (phraseSetsBuilder_ == null) { - return phraseSets_.get(index); } else { + return phraseSets_.get(index); + } else { return phraseSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsOrBuilderList() { + public java.util.List + getPhraseSetsOrBuilderList() { if (phraseSetsBuilder_ != null) { return phraseSetsBuilder_.getMessageOrBuilderList(); } else { @@ -842,6 +922,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild } } /** + * + * *
      * The phrase set.
      * 
@@ -849,42 +931,48 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder() { - return getPhraseSetsFieldBuilder().addBuilder( - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()); + return getPhraseSetsFieldBuilder() + .addBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()); } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder( - int index) { - return getPhraseSetsFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(int index) { + return getPhraseSetsFieldBuilder() + .addBuilder(index, com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance()); } /** + * + * *
      * The phrase set.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - public java.util.List - getPhraseSetsBuilderList() { + public java.util.List + getPhraseSetsBuilderList() { return getPhraseSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> getPhraseSetsFieldBuilder() { if (phraseSetsBuilder_ == null) { - phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( - phraseSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phraseSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( + phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phraseSets_ = null; } return phraseSetsBuilder_; @@ -892,19 +980,21 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -913,21 +1003,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -935,64 +1026,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,12 +1100,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) private static final com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse(); } @@ -1016,16 +1114,16 @@ public static com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPhraseSetResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListPhraseSetResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPhraseSetResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListPhraseSetResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1138,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.ListPhraseSetResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java index 7a24d1b77..319d29f4f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/ListPhraseSetResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface ListPhraseSetResponseOrBuilder extends +public interface ListPhraseSetResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.ListPhraseSetResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List - getPhraseSetsList(); + java.util.List getPhraseSetsList(); /** + * + * *
    * The phrase set.
    * 
@@ -25,6 +44,8 @@ public interface ListPhraseSetResponseOrBuilder extends */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index); /** + * + * *
    * The phrase set.
    * 
@@ -33,43 +54,51 @@ public interface ListPhraseSetResponseOrBuilder extends */ int getPhraseSetsCount(); /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - java.util.List + java.util.List getPhraseSetsOrBuilderList(); /** + * + * *
    * The phrase set.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1; */ - com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LocationName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java index 5dc34a20e..ba63fc96d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadata.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Describes the progress of a long-running `LongRunningRecognize` call. It is
  * included in the `metadata` field of the `Operation` returned by the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
  */
-public final class LongRunningRecognizeMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
     LongRunningRecognizeMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeMetadata.newBuilder() to construct.
   private LongRunningRecognizeMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeMetadata() {
     uri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,63 +72,72 @@ private LongRunningRecognizeMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            progressPercent_ = input.readInt32();
-            break;
-          }
-          case 18: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (startTime_ != null) {
-              subBuilder = startTime_.toBuilder();
+          case 8:
+            {
+              progressPercent_ = input.readInt32();
+              break;
             }
-            startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(startTime_);
-              startTime_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (lastUpdateTime_ != null) {
-              subBuilder = lastUpdateTime_.toBuilder();
+          case 18:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (startTime_ != null) {
+                subBuilder = startTime_.toBuilder();
+              }
+              startTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(startTime_);
+                startTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            lastUpdateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(lastUpdateTime_);
-              lastUpdateTime_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (lastUpdateTime_ != null) {
+                subBuilder = lastUpdateTime_.toBuilder();
+              }
+              lastUpdateTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(lastUpdateTime_);
+                lastUpdateTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            uri_ = s;
-            break;
-          }
-          case 42: {
-            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
+              uri_ = s;
+              break;
             }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+          case 42:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -119,35 +145,40 @@ private LongRunningRecognizeMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
   }
 
   public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1;
   private int progressPercent_;
   /**
+   *
+   *
    * 
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -158,11 +189,14 @@ public int getProgressPercent() { public static final int START_TIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp startTime_; /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -170,11 +204,14 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ @java.lang.Override @@ -182,6 +219,8 @@ public com.google.protobuf.Timestamp getStartTime() { return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } /** + * + * *
    * Time when the request was received.
    * 
@@ -196,11 +235,14 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { public static final int LAST_UPDATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp lastUpdateTime_; /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ @java.lang.Override @@ -208,18 +250,25 @@ public boolean hasLastUpdateTime() { return lastUpdateTime_ != null; } /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLastUpdateTime() { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } /** + * + * *
    * Time of the most recent processing update.
    * 
@@ -234,12 +283,15 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { public static final int URI_FIELD_NUMBER = 4; private volatile java.lang.Object uri_; /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ @java.lang.Override @@ -248,30 +300,30 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; } } /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -282,11 +334,16 @@ public java.lang.String getUri() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -294,30 +351,43 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -329,8 +399,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -356,23 +425,19 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); } if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); } if (lastUpdateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLastUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastUpdateTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uri_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -382,31 +447,27 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other = + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) obj; - if (getProgressPercent() - != other.getProgressPercent()) return false; + if (getProgressPercent() != other.getProgressPercent()) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasLastUpdateTime() != other.hasLastUpdateTime()) return false; if (hasLastUpdateTime()) { - if (!getLastUpdateTime() - .equals(other.getLastUpdateTime())) return false; + if (!getLastUpdateTime().equals(other.getLastUpdateTime())) return false; } - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -441,96 +502,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes the progress of a long-running `LongRunningRecognize` call. It is
    * included in the `metadata` field of the `Operation` returned by the
@@ -539,21 +608,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.class,
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.newBuilder()
@@ -561,16 +632,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -600,13 +670,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata
+        getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.getDefaultInstance();
     }
 
@@ -621,7 +692,8 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(this);
       result.progressPercent_ = progressPercent_;
       if (startTimeBuilder_ == null) {
         result.startTime_ = startTime_;
@@ -647,38 +719,39 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -686,7 +759,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata other) {
-      if (other == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata.getDefaultInstance())
+        return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -722,7 +797,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -732,14 +809,17 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int progressPercent_ ;
+    private int progressPercent_;
     /**
+     *
+     *
      * 
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -747,32 +827,38 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @param value The progressPercent to set. * @return This builder for chaining. */ public Builder setProgressPercent(int value) { - + progressPercent_ = value; onChanged(); return this; } /** + * + * *
      * Approximate percentage of audio processed thus far. Guaranteed to be 100
      * when the audio is fully processed and the results are available.
      * 
* * int32 progress_percent = 1; + * * @return This builder for chaining. */ public Builder clearProgressPercent() { - + progressPercent_ = 0; onChanged(); return this; @@ -780,24 +866,33 @@ public Builder clearProgressPercent() { private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ public com.google.protobuf.Timestamp getStartTime() { @@ -808,6 +903,8 @@ public com.google.protobuf.Timestamp getStartTime() { } } /** + * + * *
      * Time when the request was received.
      * 
@@ -828,14 +925,15 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
* * .google.protobuf.Timestamp start_time = 2; */ - public Builder setStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (startTimeBuilder_ == null) { startTime_ = builderForValue.build(); onChanged(); @@ -846,6 +944,8 @@ public Builder setStartTime( return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -856,7 +956,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { if (startTime_ != null) { startTime_ = - com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); } else { startTime_ = value; } @@ -868,6 +968,8 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -886,6 +988,8 @@ public Builder clearStartTime() { return this; } /** + * + * *
      * Time when the request was received.
      * 
@@ -893,11 +997,13 @@ public Builder clearStartTime() { * .google.protobuf.Timestamp start_time = 2; */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - + onChanged(); return getStartTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when the request was received.
      * 
@@ -908,11 +1014,12 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { if (startTimeBuilder_ != null) { return startTimeBuilder_.getMessageOrBuilder(); } else { - return startTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; } } /** + * + * *
      * Time when the request was received.
      * 
@@ -920,14 +1027,17 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * .google.protobuf.Timestamp start_time = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getStartTimeFieldBuilder() { if (startTimeBuilder_ == null) { - startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getStartTime(), - getParentForChildren(), - isClean()); + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); startTime_ = null; } return startTimeBuilder_; @@ -935,34 +1045,47 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { private com.google.protobuf.Timestamp lastUpdateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastUpdateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastUpdateTimeBuilder_; /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ public boolean hasLastUpdateTime() { return lastUpdateTimeBuilder_ != null || lastUpdateTime_ != null; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ public com.google.protobuf.Timestamp getLastUpdateTime() { if (lastUpdateTimeBuilder_ == null) { - return lastUpdateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } else { return lastUpdateTimeBuilder_.getMessage(); } } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -983,14 +1106,15 @@ public Builder setLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
* * .google.protobuf.Timestamp last_update_time = 3; */ - public Builder setLastUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLastUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (lastUpdateTimeBuilder_ == null) { lastUpdateTime_ = builderForValue.build(); onChanged(); @@ -1001,6 +1125,8 @@ public Builder setLastUpdateTime( return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1011,7 +1137,9 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { if (lastUpdateTimeBuilder_ == null) { if (lastUpdateTime_ != null) { lastUpdateTime_ = - com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(lastUpdateTime_) + .mergeFrom(value) + .buildPartial(); } else { lastUpdateTime_ = value; } @@ -1023,6 +1151,8 @@ public Builder mergeLastUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1041,6 +1171,8 @@ public Builder clearLastUpdateTime() { return this; } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1048,11 +1180,13 @@ public Builder clearLastUpdateTime() { * .google.protobuf.Timestamp last_update_time = 3; */ public com.google.protobuf.Timestamp.Builder getLastUpdateTimeBuilder() { - + onChanged(); return getLastUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1063,11 +1197,14 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { if (lastUpdateTimeBuilder_ != null) { return lastUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return lastUpdateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : lastUpdateTime_; + return lastUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastUpdateTime_; } } /** + * + * *
      * Time of the most recent processing update.
      * 
@@ -1075,14 +1212,17 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { * .google.protobuf.Timestamp last_update_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> getLastUpdateTimeFieldBuilder() { if (lastUpdateTimeBuilder_ == null) { - lastUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLastUpdateTime(), - getParentForChildren(), - isClean()); + lastUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastUpdateTime(), getParentForChildren(), isClean()); lastUpdateTime_ = null; } return lastUpdateTimeBuilder_; @@ -1090,19 +1230,21 @@ public com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder() { private java.lang.Object uri_ = ""; /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ public java.lang.String getUri() { java.lang.Object ref = uri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uri_ = s; return s; @@ -1111,21 +1253,22 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = uri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uri_ = b; return b; } else { @@ -1133,57 +1276,64 @@ public java.lang.String getUri() { } } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + uri_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearUri() { - + uri_ = getDefaultInstance().getUri(); onChanged(); return this; } /** + * + * *
      * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
      * as byte content.
      * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uri_ = value; onChanged(); return this; @@ -1191,39 +1341,58 @@ public Builder setUriBytes( private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1239,11 +1408,15 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setOutputConfig( com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder builderForValue) { @@ -1257,17 +1430,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1279,11 +1459,15 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1297,55 +1481,73 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1355,30 +1557,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1390,9 +1594,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java index 2e4b54cbc..0016ab958 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeMetadataOrBuilder.java @@ -1,42 +1,69 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeMetadataOrBuilder extends +public interface LongRunningRecognizeMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Approximate percentage of audio processed thus far. Guaranteed to be 100
    * when the audio is fully processed and the results are available.
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time when the request was received.
    * 
* * .google.protobuf.Timestamp start_time = 2; + * * @return The startTime. */ com.google.protobuf.Timestamp getStartTime(); /** + * + * *
    * Time when the request was received.
    * 
@@ -46,24 +73,32 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return Whether the lastUpdateTime field is set. */ boolean hasLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
* * .google.protobuf.Timestamp last_update_time = 3; + * * @return The lastUpdateTime. */ com.google.protobuf.Timestamp getLastUpdateTime(); /** + * + * *
    * Time of the most recent processing update.
    * 
@@ -73,51 +108,70 @@ public interface LongRunningRecognizeMetadataOrBuilder extends com.google.protobuf.TimestampOrBuilder getLastUpdateTimeOrBuilder(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * Output only. The URI of the audio file being transcribed. Empty if the audio was sent
    * as byte content.
    * 
* * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Output only. A copy of the TranscriptOutputConfig if it was set in the request.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java similarity index 60% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java index 74993a44d..37f2a6aad 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The top-level message sent by the client for the `LongRunningRecognize`
  * method.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
  */
-public final class LongRunningRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
     LongRunningRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeRequest.newBuilder() to construct.
   private LongRunningRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private LongRunningRecognizeRequest() {
-  }
+
+  private LongRunningRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,52 +69,64 @@ private LongRunningRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
-            }
-            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
-            if (audio_ != null) {
-              subBuilder = audio_.toBuilder();
-            }
-            audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(audio_);
-              audio_ = subBuilder.buildPartial();
+              break;
             }
+          case 18:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null;
+              if (audio_ != null) {
+                subBuilder = audio_.toBuilder();
+              }
+              audio_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(audio_);
+                audio_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,35 +134,42 @@ private LongRunningRecognizeRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
+   *
+   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -142,25 +177,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -170,11 +216,16 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -182,23 +233,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -208,11 +270,16 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -220,30 +287,43 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -255,8 +335,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -276,16 +355,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -295,27 +371,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other = + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -346,96 +420,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `LongRunningRecognize`
    * method.
@@ -443,21 +525,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.class,
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.newBuilder()
@@ -465,16 +549,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -500,13 +583,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest
+        getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance();
     }
 
@@ -521,7 +605,8 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -545,38 +630,39 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest buildPartia
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -584,7 +670,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest.getDefaultInstance())
+        return this;
       if (other.hasConfig()) {
         mergeConfig(other.getConfig());
       }
@@ -613,7 +701,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -625,42 +715,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -676,12 +785,16 @@ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig val return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig( com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder builderForValue) { @@ -695,18 +808,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -718,12 +837,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -737,51 +860,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -789,39 +928,58 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -837,11 +995,15 @@ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio( com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder builderForValue) { @@ -855,17 +1017,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -877,11 +1045,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -895,48 +1067,64 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; @@ -944,39 +1132,58 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { @@ -992,11 +1199,15 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOutputConfig( com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder builderForValue) { @@ -1010,17 +1221,24 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1032,11 +1250,15 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1050,55 +1272,73 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Optional. Specifies an optional destination for the recognition results.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1108,12 +1348,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest(); } @@ -1122,16 +1363,16 @@ public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1146,6 +1387,4 @@ public com.google.protobuf.Parser getParserForType( public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java similarity index 51% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java index 5a5a7bb3a..02d21f70f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeRequestOrBuilder.java @@ -1,93 +1,151 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeRequestOrBuilder extends +public interface LongRunningRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ boolean hasAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Optional. Specifies an optional destination for the recognition results.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java index ef5d878c5..bd0db99e0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The only message returned to the client by the `LongRunningRecognize` method.
  * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -14,31 +31,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
  */
-public final class LongRunningRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LongRunningRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
     LongRunningRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LongRunningRecognizeResponse.newBuilder() to construct.
   private LongRunningRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LongRunningRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new LongRunningRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LongRunningRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,61 +75,73 @@ private LongRunningRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 50: {
-            com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
-            if (outputConfig_ != null) {
-              subBuilder = outputConfig_.toBuilder();
-            }
-            outputConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputConfig_);
-              outputConfig_ = subBuilder.buildPartial();
+              break;
             }
+          case 50:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder subBuilder = null;
+              if (outputConfig_ != null) {
+                subBuilder = outputConfig_.toBuilder();
+              }
+              outputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputConfig_);
+                outputConfig_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 58: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (outputError_ != null) {
-              subBuilder = outputError_.toBuilder();
-            }
-            outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(outputError_);
-              outputError_ = subBuilder.buildPartial();
+              break;
             }
+          case 58:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (outputError_ != null) {
+                subBuilder = outputError_.toBuilder();
+              }
+              outputError_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(outputError_);
+                outputError_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -120,8 +149,7 @@ private LongRunningRecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -130,22 +158,27 @@ private LongRunningRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
+            com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -154,10 +187,13 @@ private LongRunningRecognizeResponse(
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List getResultsList() {
+  public java.util.List
+      getResultsList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -166,11 +202,14 @@ public java.util.List
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
       getResultsOrBuilderList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -183,6 +222,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -195,6 +236,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
     return results_.get(index);
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -211,11 +254,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
   public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Duration totalBilledTime_;
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -223,18 +269,25 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -249,11 +302,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -261,18 +317,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Original output config if present in the request.
    * 
@@ -280,18 +343,22 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig( * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { return getOutputConfig(); } public static final int OUTPUT_ERROR_FIELD_NUMBER = 7; private com.google.rpc.Status outputError_; /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ @java.lang.Override @@ -299,11 +366,14 @@ public boolean hasOutputError() { return outputError_ != null; } /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ @java.lang.Override @@ -311,6 +381,8 @@ public com.google.rpc.Status getOutputError() { return outputError_ == null ? com.google.rpc.Status.getDefaultInstance() : outputError_; } /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
@@ -323,6 +395,7 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -334,8 +407,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } @@ -358,20 +430,16 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getOutputConfig()); } if (outputError_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getOutputError()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getOutputError()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -381,29 +449,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other = + (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (hasOutputConfig() != other.hasOutputConfig()) return false; if (hasOutputConfig()) { - if (!getOutputConfig() - .equals(other.getOutputConfig())) return false; + if (!getOutputConfig().equals(other.getOutputConfig())) return false; } if (hasOutputError() != other.hasOutputError()) return false; if (hasOutputError()) { - if (!getOutputError() - .equals(other.getOutputError())) return false; + if (!getOutputError().equals(other.getOutputError())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -438,96 +503,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `LongRunningRecognize` method.
    * It contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -538,21 +611,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.class,
+              com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.newBuilder()
@@ -560,17 +635,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -602,13 +677,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.getDefaultInstance();
     }
 
@@ -623,7 +699,8 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse result =
+          new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -657,38 +734,39 @@ public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse buildParti
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -696,7 +774,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse.getDefaultInstance())
+        return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -715,9 +795,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.LongRunningRecognizeR
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -751,7 +832,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -760,21 +843,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -782,7 +874,8 @@ private void ensureResultsIsMutable() {
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List getResultsList() {
+    public java.util.List
+        getResultsList() {
       if (resultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(results_);
       } else {
@@ -790,6 +883,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -805,6 +900,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -820,6 +917,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -842,6 +941,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -850,7 +951,8 @@ public Builder setResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder setResults(
-        int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.set(index, builderForValue.build());
@@ -861,6 +963,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -882,6 +986,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -904,6 +1010,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -923,6 +1031,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -931,7 +1041,8 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder addResults(
-        int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.add(index, builderForValue.build());
@@ -942,6 +1053,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -950,11 +1063,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder addAllResults(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -962,6 +1075,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -980,6 +1095,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -998,6 +1115,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1010,6 +1129,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder getResu
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1020,11 +1141,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder getResu
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);  } else {
+        return results_.get(index);
+      } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1032,8 +1156,9 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1041,6 +1166,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1049,10 +1176,13 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1062,10 +1192,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
      */
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index,
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -1073,20 +1207,23 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1094,34 +1231,47 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1142,14 +1292,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -1160,6 +1311,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1170,7 +1323,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1182,6 +1337,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1200,6 +1357,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1207,11 +1366,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1222,11 +1383,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { if (totalBilledTimeBuilder_ != null) { return totalBilledTimeBuilder_.getMessageOrBuilder(); } else { - return totalBilledTime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1234,14 +1398,17 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), - getParentForChildren(), - isClean()); + totalBilledTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), getParentForChildren(), isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; @@ -1249,34 +1416,47 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { private com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1297,6 +1477,8 @@ public Builder setOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutpu return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1315,17 +1497,22 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { + public Builder mergeOutputConfig( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1337,6 +1524,8 @@ public Builder mergeOutputConfig(com.google.cloud.speech.v1p1beta1.TranscriptOut return this; } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1355,33 +1544,42 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder getOutputConfigBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder + getOutputConfigBuilder() { + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Original output config if present in the request.
      * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder + getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Original output config if present in the request.
      * 
@@ -1389,14 +1587,17 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutp * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1404,24 +1605,31 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutp private com.google.rpc.Status outputError_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> outputErrorBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + outputErrorBuilder_; /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ public boolean hasOutputError() { return outputErrorBuilder_ != null || outputError_ != null; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ public com.google.rpc.Status getOutputError() { @@ -1432,6 +1640,8 @@ public com.google.rpc.Status getOutputError() { } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1452,14 +1662,15 @@ public Builder setOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
* * .google.rpc.Status output_error = 7; */ - public Builder setOutputError( - com.google.rpc.Status.Builder builderForValue) { + public Builder setOutputError(com.google.rpc.Status.Builder builderForValue) { if (outputErrorBuilder_ == null) { outputError_ = builderForValue.build(); onChanged(); @@ -1470,6 +1681,8 @@ public Builder setOutputError( return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1480,7 +1693,7 @@ public Builder mergeOutputError(com.google.rpc.Status value) { if (outputErrorBuilder_ == null) { if (outputError_ != null) { outputError_ = - com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); + com.google.rpc.Status.newBuilder(outputError_).mergeFrom(value).buildPartial(); } else { outputError_ = value; } @@ -1492,6 +1705,8 @@ public Builder mergeOutputError(com.google.rpc.Status value) { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1510,6 +1725,8 @@ public Builder clearOutputError() { return this; } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1517,11 +1734,13 @@ public Builder clearOutputError() { * .google.rpc.Status output_error = 7; */ public com.google.rpc.Status.Builder getOutputErrorBuilder() { - + onChanged(); return getOutputErrorFieldBuilder().getBuilder(); } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1532,11 +1751,12 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { if (outputErrorBuilder_ != null) { return outputErrorBuilder_.getMessageOrBuilder(); } else { - return outputError_ == null ? - com.google.rpc.Status.getDefaultInstance() : outputError_; + return outputError_ == null ? com.google.rpc.Status.getDefaultInstance() : outputError_; } } /** + * + * *
      * If the transcript output fails this field contains the relevant error.
      * 
@@ -1544,21 +1764,22 @@ public com.google.rpc.StatusOrBuilder getOutputErrorOrBuilder() { * .google.rpc.Status output_error = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getOutputErrorFieldBuilder() { if (outputErrorBuilder_ == null) { - outputErrorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getOutputError(), - getParentForChildren(), - isClean()); + outputErrorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + getOutputError(), getParentForChildren(), isClean()); outputError_ = null; } return outputErrorBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1568,30 +1789,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) - private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse(); } - public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LongRunningRecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LongRunningRecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LongRunningRecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LongRunningRecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1603,9 +1826,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java similarity index 81% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java index f6b5867ce..e5af48096 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/LongRunningRecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface LongRunningRecognizeResponseOrBuilder extends +public interface LongRunningRecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface LongRunningRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -84,24 +116,32 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
* * .google.cloud.speech.v1p1beta1.TranscriptOutputConfig output_config = 6; + * * @return The outputConfig. */ com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getOutputConfig(); /** + * + * *
    * Original output config if present in the request.
    * 
@@ -111,24 +151,32 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrB com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return Whether the outputError field is set. */ boolean hasOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
* * .google.rpc.Status output_error = 7; + * * @return The outputError. */ com.google.rpc.Status getOutputError(); /** + * + * *
    * If the transcript output fails this field contains the relevant error.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java index 4e71340fc..ecdcf17bb 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSet.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
  */
-public final class PhraseSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class PhraseSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet)
     PhraseSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use PhraseSet.newBuilder() to construct.
   private PhraseSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private PhraseSet() {
     name_ = "";
     phrases_ = java.util.Collections.emptyList();
@@ -27,16 +45,15 @@ private PhraseSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new PhraseSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private PhraseSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,33 +73,38 @@ private PhraseSet(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            name_ = s;
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            phrases_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(), extensionRegistry));
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.parser(),
+                      extensionRegistry));
+              break;
+            }
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,8 +112,7 @@ private PhraseSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = java.util.Collections.unmodifiableList(phrases_);
@@ -100,44 +121,55 @@ private PhraseSet(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+            com.google.cloud.speech.v1p1beta1.PhraseSet.class,
+            com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
   }
 
-  public interface PhraseOrBuilder extends
+  public interface PhraseOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ java.lang.String getValue(); /** + * + * *
      * The phrase itself.
      * 
* * string value = 1; + * * @return The bytes for value. */ - com.google.protobuf.ByteString - getValueBytes(); + com.google.protobuf.ByteString getValueBytes(); /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -151,11 +183,14 @@ public interface PhraseOrBuilder extends
      * 
* * float boost = 2; + * * @return The boost. */ float getBoost(); } /** + * + * *
    * A phrases containing words and phrase "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -184,31 +219,31 @@ public interface PhraseOrBuilder extends
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
    */
-  public static final class Phrase extends
-      com.google.protobuf.GeneratedMessageV3 implements
+  public static final class Phrase extends com.google.protobuf.GeneratedMessageV3
+      implements
       // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
       PhraseOrBuilder {
-  private static final long serialVersionUID = 0L;
+    private static final long serialVersionUID = 0L;
     // Use Phrase.newBuilder() to construct.
     private Phrase(com.google.protobuf.GeneratedMessageV3.Builder builder) {
       super(builder);
     }
+
     private Phrase() {
       value_ = "";
     }
 
     @java.lang.Override
     @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
+    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
       return new Phrase();
     }
 
     @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
+    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
       return this.unknownFields;
     }
+
     private Phrase(
         com.google.protobuf.CodedInputStream input,
         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -227,24 +262,25 @@ private Phrase(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
 
-              value_ = s;
-              break;
-            }
-            case 21: {
-
-              boost_ = input.readFloat();
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
+                value_ = s;
+                break;
+              }
+            case 21:
+              {
+                boost_ = input.readFloat();
+                break;
+              }
+            default:
+              {
+                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                  done = true;
+                }
+                break;
               }
-              break;
-            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -252,34 +288,39 @@ private Phrase(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
+        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
     }
 
     public static final int VALUE_FIELD_NUMBER = 1;
     private volatile java.lang.Object value_;
     /**
+     *
+     *
      * 
      * The phrase itself.
      * 
* * string value = 1; + * * @return The value. */ @java.lang.Override @@ -288,29 +329,29 @@ public java.lang.String getValue() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } } /** + * + * *
      * The phrase itself.
      * 
* * string value = 1; + * * @return The bytes for value. */ @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -321,6 +362,8 @@ public java.lang.String getValue() { public static final int BOOST_FIELD_NUMBER = 2; private float boost_; /** + * + * *
      * Hint Boost. Overrides the boost set at the phrase set level.
      * Positive value will increase the probability that a specific phrase will
@@ -334,6 +377,7 @@ public java.lang.String getValue() {
      * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -342,6 +386,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -353,8 +398,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } @@ -374,8 +418,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -385,18 +428,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other = + (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) obj; - if (!getValue() - .equals(other.getValue())) return false; + if (!getValue().equals(other.getValue())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -411,95 +453,100 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -509,6 +556,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A phrases containing words and phrase "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -537,21 +586,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet.Phrase}
      */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
+    public static final class Builder
+        extends com.google.protobuf.GeneratedMessageV3.Builder
+        implements
         // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet.Phrase)
         com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.class,
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder.class);
       }
 
       // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.newBuilder()
@@ -559,16 +611,15 @@ private Builder() {
         maybeForceBuilderInitialization();
       }
 
-      private Builder(
-          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
         super(parent);
         maybeForceBuilderInitialization();
       }
+
       private void maybeForceBuilderInitialization() {
-        if (com.google.protobuf.GeneratedMessageV3
-                .alwaysUseFieldBuilders) {
-        }
+        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -580,9 +631,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+            .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor;
       }
 
       @java.lang.Override
@@ -601,7 +652,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase build() {
 
       @java.lang.Override
       public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
-        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result = new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
+        com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase result =
+            new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(this);
         result.value_ = value_;
         result.boost_ = boost_;
         onBuilt();
@@ -612,38 +664,41 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase buildPartial() {
       public Builder clone() {
         return super.clone();
       }
+
       @java.lang.Override
       public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.setField(field, value);
       }
+
       @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
+      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
         return super.clearField(field);
       }
+
       @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
         return super.clearOneof(oneof);
       }
+
       @java.lang.Override
       public Builder setRepeatedField(
           com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) {
-          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase)other);
+          return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -651,7 +706,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase other) {
-        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()) return this;
+        if (other == com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance())
+          return this;
         if (!other.getValue().isEmpty()) {
           value_ = other.value_;
           onChanged();
@@ -678,7 +734,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -690,18 +747,20 @@ public Builder mergeFrom(
 
       private java.lang.Object value_ = "";
       /**
+       *
+       *
        * 
        * The phrase itself.
        * 
* * string value = 1; + * * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; @@ -710,20 +769,21 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return The bytes for value. */ - public com.google.protobuf.ByteString - getValueBytes() { + public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); value_ = b; return b; } else { @@ -731,61 +791,70 @@ public java.lang.String getValue() { } } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The value to set. * @return This builder for chaining. */ - public Builder setValue( - java.lang.String value) { + public Builder setValue(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + value_ = value; onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @return This builder for chaining. */ public Builder clearValue() { - + value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** + * + * *
        * The phrase itself.
        * 
* * string value = 1; + * * @param value The bytes for value to set. * @return This builder for chaining. */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { + public Builder setValueBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -799,6 +868,7 @@ public Builder setValueBytes(
        * 
* * float boost = 2; + * * @return The boost. */ @java.lang.Override @@ -806,6 +876,8 @@ public float getBoost() { return boost_; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -819,16 +891,19 @@ public float getBoost() {
        * 
* * float boost = 2; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
        * Hint Boost. Overrides the boost set at the phrase set level.
        * Positive value will increase the probability that a specific phrase will
@@ -842,14 +917,16 @@ public Builder setBoost(float value) {
        * 
* * float boost = 2; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -862,12 +939,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.PhraseSet.Phrase) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.PhraseSet.Phrase) private static final com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase(); } @@ -876,16 +953,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Phrase parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Phrase(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Phrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Phrase(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -900,17 +977,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -919,29 +998,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -952,6 +1031,8 @@ public java.lang.String getName() { public static final int PHRASES_FIELD_NUMBER = 2; private java.util.List phrases_; /** + * + * *
    * A list of word and phrases.
    * 
@@ -963,6 +1044,8 @@ public java.util.List getPhr return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -970,11 +1053,13 @@ public java.util.List getPhr * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ @java.lang.Override - public java.util.List + public java.util.List getPhrasesOrBuilderList() { return phrases_; } /** + * + * *
    * A list of word and phrases.
    * 
@@ -986,6 +1071,8 @@ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -997,6 +1084,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) return phrases_.get(index); } /** + * + * *
    * A list of word and phrases.
    * 
@@ -1012,6 +1101,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -1025,6 +1116,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1033,6 +1125,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1044,8 +1137,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -1068,12 +1160,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } for (int i = 0; i < phrases_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, phrases_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, phrases_.get(i)); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1083,20 +1173,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.PhraseSet)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.PhraseSet other = (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; + com.google.cloud.speech.v1p1beta1.PhraseSet other = + (com.google.cloud.speech.v1p1beta1.PhraseSet) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getName().equals(other.getName())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1115,104 +1203,110 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.PhraseSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -1220,21 +1314,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.PhraseSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.PhraseSet)
       com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.PhraseSet.class, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
+              com.google.cloud.speech.v1p1beta1.PhraseSet.class,
+              com.google.cloud.speech.v1p1beta1.PhraseSet.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder()
@@ -1242,17 +1338,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getPhrasesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1270,9 +1366,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor;
     }
 
     @java.lang.Override
@@ -1291,7 +1387,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
-      com.google.cloud.speech.v1p1beta1.PhraseSet result = new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
+      com.google.cloud.speech.v1p1beta1.PhraseSet result =
+          new com.google.cloud.speech.v1p1beta1.PhraseSet(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       if (phrasesBuilder_ == null) {
@@ -1312,38 +1409,39 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.PhraseSet) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.PhraseSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1374,9 +1472,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.PhraseSet other) {
             phrasesBuilder_ = null;
             phrases_ = other.phrases_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            phrasesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getPhrasesFieldBuilder() : null;
+            phrasesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getPhrasesFieldBuilder()
+                    : null;
           } else {
             phrasesBuilder_.addAllMessages(other.phrases_);
           }
@@ -1413,22 +1512,25 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1437,20 +1539,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1458,72 +1561,86 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The resource name of the phrase set.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } private java.util.List phrases_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhrasesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phrases_ = new java.util.ArrayList(phrases_); + phrases_ = + new java.util.ArrayList(phrases_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> phrasesBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> + phrasesBuilder_; /** + * + * *
      * A list of word and phrases.
      * 
@@ -1538,6 +1655,8 @@ public java.util.List getPhr } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1552,6 +1671,8 @@ public int getPhrasesCount() { } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1566,14 +1687,15 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index) } } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public Builder setPhrases( - int index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase value) { + public Builder setPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1587,6 +1709,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1605,6 +1729,8 @@ public Builder setPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1625,14 +1751,15 @@ public Builder addPhrases(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase val return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public Builder addPhrases( - int index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase value) { + public Builder addPhrases(int index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase value) { if (phrasesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1646,6 +1773,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1664,6 +1793,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1682,6 +1813,8 @@ public Builder addPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1692,8 +1825,7 @@ public Builder addAllPhrases( java.lang.Iterable values) { if (phrasesBuilder_ == null) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); onChanged(); } else { phrasesBuilder_.addAllMessages(values); @@ -1701,6 +1833,8 @@ public Builder addAllPhrases( return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1718,6 +1852,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1735,17 +1871,20 @@ public Builder removePhrases(int index) { return this; } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder getPhrasesBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder getPhrasesBuilder(int index) { return getPhrasesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1755,19 +1894,22 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder getPhrasesBuil public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( int index) { if (phrasesBuilder_ == null) { - return phrases_.get(index); } else { + return phrases_.get(index); + } else { return phrasesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesOrBuilderList() { + public java.util.List + getPhrasesOrBuilderList() { if (phrasesBuilder_ != null) { return phrasesBuilder_.getMessageOrBuilderList(); } else { @@ -1775,6 +1917,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB } } /** + * + * *
      * A list of word and phrases.
      * 
@@ -1782,49 +1926,58 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrB * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder() { - return getPhrasesFieldBuilder().addBuilder( - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + return getPhrasesFieldBuilder() + .addBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder( - int index) { - return getPhrasesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuilder(int index) { + return getPhrasesFieldBuilder() + .addBuilder( + index, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.getDefaultInstance()); } /** + * + * *
      * A list of word and phrases.
      * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - public java.util.List - getPhrasesBuilderList() { + public java.util.List + getPhrasesBuilderList() { return getPhrasesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder> getPhrasesFieldBuilder() { if (phrasesBuilder_ == null) { - phrasesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( - phrases_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + phrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase, + com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder>( + phrases_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); phrases_ = null; } return phrasesBuilder_; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1838,6 +1991,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase.Builder addPhrasesBuil
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -1845,6 +1999,8 @@ public float getBoost() { return boost_; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1858,16 +2014,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -1881,17 +2040,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1901,12 +2061,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.PhraseSet) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.PhraseSet) private static final com.google.cloud.speech.v1p1beta1.PhraseSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.PhraseSet(); } @@ -1915,16 +2075,16 @@ public static com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhraseSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PhraseSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PhraseSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PhraseSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1939,6 +2099,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.PhraseSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetName.java diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java similarity index 74% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java index 1ed61ed52..55f1127b4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/PhraseSetOrBuilder.java @@ -1,42 +1,66 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface PhraseSetOrBuilder extends +public interface PhraseSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.PhraseSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the phrase set.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of word and phrases.
    * 
@@ -45,6 +69,8 @@ public interface PhraseSetOrBuilder extends */ com.google.cloud.speech.v1p1beta1.PhraseSet.Phrase getPhrases(int index); /** + * + * *
    * A list of word and phrases.
    * 
@@ -53,25 +79,30 @@ public interface PhraseSetOrBuilder extends */ int getPhrasesCount(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - java.util.List + java.util.List getPhrasesOrBuilderList(); /** + * + * *
    * A list of word and phrases.
    * 
* * repeated .google.cloud.speech.v1p1beta1.PhraseSet.Phrase phrases = 2; */ - com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder( - int index); + com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -85,6 +116,7 @@ com.google.cloud.speech.v1p1beta1.PhraseSet.PhraseOrBuilder getPhrasesOrBuilder(
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java index fe2a09446..4f6bb351f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudio.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Contains audio data in the encoding specified in the `RecognitionConfig`.
  * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -13,30 +30,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
  */
-public final class RecognitionAudio extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionAudio extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
     RecognitionAudioOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionAudio.newBuilder() to construct.
   private RecognitionAudio(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private RecognitionAudio() {
-  }
+
+  private RecognitionAudio() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionAudio();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionAudio(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,24 +71,26 @@ private RecognitionAudio(
           case 0:
             done = true;
             break;
-          case 10: {
-            audioSource_ = input.readBytes();
-            audioSourceCase_ = 1;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
-            audioSourceCase_ = 2;
-            audioSource_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 10:
+            {
+              audioSource_ = input.readBytes();
+              audioSourceCase_ = 1;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              audioSourceCase_ = 2;
+              audioSource_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -80,35 +98,40 @@ private RecognitionAudio(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
+            com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
   }
 
   private int audioSourceCase_ = 0;
   private java.lang.Object audioSource_;
+
   public enum AudioSourceCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     CONTENT(1),
     URI(2),
     AUDIOSOURCE_NOT_SET(0);
     private final int value;
+
     private AudioSourceCase(int value) {
       this.value = value;
     }
@@ -124,25 +147,30 @@ public static AudioSourceCase valueOf(int value) {
 
     public static AudioSourceCase forNumber(int value) {
       switch (value) {
-        case 1: return CONTENT;
-        case 2: return URI;
-        case 0: return AUDIOSOURCE_NOT_SET;
-        default: return null;
+        case 1:
+          return CONTENT;
+        case 2:
+          return URI;
+        case 0:
+          return AUDIOSOURCE_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public AudioSourceCase
-  getAudioSourceCase() {
-    return AudioSourceCase.forNumber(
-        audioSourceCase_);
+  public AudioSourceCase getAudioSourceCase() {
+    return AudioSourceCase.forNumber(audioSourceCase_);
   }
 
   public static final int CONTENT_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -150,6 +178,7 @@ public int getNumber() {
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ @java.lang.Override @@ -157,6 +186,8 @@ public boolean hasContent() { return audioSourceCase_ == 1; } /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -164,6 +195,7 @@ public boolean hasContent() {
    * 
* * bytes content = 1; + * * @return The content. */ @java.lang.Override @@ -176,6 +208,8 @@ public com.google.protobuf.ByteString getContent() { public static final int URI_FIELD_NUMBER = 2; /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -187,12 +221,15 @@ public com.google.protobuf.ByteString getContent() {
    * 
* * string uri = 2; + * * @return Whether the uri field is set. */ public boolean hasUri() { return audioSourceCase_ == 2; } /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -204,6 +241,7 @@ public boolean hasUri() {
    * 
* * string uri = 2; + * * @return The uri. */ public java.lang.String getUri() { @@ -214,8 +252,7 @@ public java.lang.String getUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -224,6 +261,8 @@ public java.lang.String getUri() { } } /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -235,18 +274,17 @@ public java.lang.String getUri() {
    * 
* * string uri = 2; + * * @return The bytes for uri. */ - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -257,6 +295,7 @@ public java.lang.String getUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -268,11 +307,9 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (audioSourceCase_ == 1) { - output.writeBytes( - 1, (com.google.protobuf.ByteString) audioSource_); + output.writeBytes(1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, audioSource_); @@ -287,9 +324,9 @@ public int getSerializedSize() { size = 0; if (audioSourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 1, (com.google.protobuf.ByteString) audioSource_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) audioSource_); } if (audioSourceCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, audioSource_); @@ -302,22 +339,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionAudio)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionAudio other = (com.google.cloud.speech.v1p1beta1.RecognitionAudio) obj; + com.google.cloud.speech.v1p1beta1.RecognitionAudio other = + (com.google.cloud.speech.v1p1beta1.RecognitionAudio) obj; if (!getAudioSourceCase().equals(other.getAudioSourceCase())) return false; switch (audioSourceCase_) { case 1: - if (!getContent() - .equals(other.getContent())) return false; + if (!getContent().equals(other.getContent())) return false; break; case 2: - if (!getUri() - .equals(other.getUri())) return false; + if (!getUri().equals(other.getUri())) return false; break; case 0: default: @@ -351,96 +387,103 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionAudio parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionAudio prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Contains audio data in the encoding specified in the `RecognitionConfig`.
    * Either `content` or `uri` must be supplied. Supplying both or neither
@@ -450,21 +493,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionAudio}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionAudio)
       com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.class,
+              com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder()
@@ -472,16 +517,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -491,9 +535,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor;
     }
 
     @java.lang.Override
@@ -512,7 +556,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionAudio result = new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionAudio result =
+          new com.google.cloud.speech.v1p1beta1.RecognitionAudio(this);
       if (audioSourceCase_ == 1) {
         result.audioSource_ = audioSource_;
       }
@@ -528,38 +573,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudio buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionAudio) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionAudio) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -567,21 +613,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionAudio other) {
-      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance())
+        return this;
       switch (other.getAudioSourceCase()) {
-        case CONTENT: {
-          setContent(other.getContent());
-          break;
-        }
-        case URI: {
-          audioSourceCase_ = 2;
-          audioSource_ = other.audioSource_;
-          onChanged();
-          break;
-        }
-        case AUDIOSOURCE_NOT_SET: {
-          break;
-        }
+        case CONTENT:
+          {
+            setContent(other.getContent());
+            break;
+          }
+        case URI:
+          {
+            audioSourceCase_ = 2;
+            audioSource_ = other.audioSource_;
+            onChanged();
+            break;
+          }
+        case AUDIOSOURCE_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -602,7 +652,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.RecognitionAudio) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -611,12 +662,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int audioSourceCase_ = 0;
     private java.lang.Object audioSource_;
-    public AudioSourceCase
-        getAudioSourceCase() {
-      return AudioSourceCase.forNumber(
-          audioSourceCase_);
+
+    public AudioSourceCase getAudioSourceCase() {
+      return AudioSourceCase.forNumber(audioSourceCase_);
     }
 
     public Builder clearAudioSource() {
@@ -626,8 +677,9 @@ public Builder clearAudioSource() {
       return this;
     }
 
-
     /**
+     *
+     *
      * 
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -635,12 +687,15 @@ public Builder clearAudioSource() {
      * 
* * bytes content = 1; + * * @return Whether the content field is set. */ public boolean hasContent() { return audioSourceCase_ == 1; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -648,6 +703,7 @@ public boolean hasContent() {
      * 
* * bytes content = 1; + * * @return The content. */ public com.google.protobuf.ByteString getContent() { @@ -657,6 +713,8 @@ public com.google.protobuf.ByteString getContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -664,19 +722,22 @@ public com.google.protobuf.ByteString getContent() {
      * 
* * bytes content = 1; + * * @param value The content to set. * @return This builder for chaining. */ public Builder setContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 1; + throw new NullPointerException(); + } + audioSourceCase_ = 1; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * The audio data bytes encoded as specified in
      * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -684,6 +745,7 @@ public Builder setContent(com.google.protobuf.ByteString value) {
      * 
* * bytes content = 1; + * * @return This builder for chaining. */ public Builder clearContent() { @@ -696,6 +758,8 @@ public Builder clearContent() { } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -707,6 +771,7 @@ public Builder clearContent() {
      * 
* * string uri = 2; + * * @return Whether the uri field is set. */ @java.lang.Override @@ -714,6 +779,8 @@ public boolean hasUri() { return audioSourceCase_ == 2; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -725,6 +792,7 @@ public boolean hasUri() {
      * 
* * string uri = 2; + * * @return The uri. */ @java.lang.Override @@ -734,8 +802,7 @@ public java.lang.String getUri() { ref = audioSource_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (audioSourceCase_ == 2) { audioSource_ = s; @@ -746,6 +813,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -757,19 +826,18 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriBytes() { + public com.google.protobuf.ByteString getUriBytes() { java.lang.Object ref = ""; if (audioSourceCase_ == 2) { ref = audioSource_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (audioSourceCase_ == 2) { audioSource_ = b; } @@ -779,6 +847,8 @@ public java.lang.String getUri() { } } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -790,20 +860,22 @@ public java.lang.String getUri() {
      * 
* * string uri = 2; + * * @param value The uri to set. * @return This builder for chaining. */ - public Builder setUri( - java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - audioSourceCase_ = 2; + throw new NullPointerException(); + } + audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -815,6 +887,7 @@ public Builder setUri(
      * 
* * string uri = 2; + * * @return This builder for chaining. */ public Builder clearUri() { @@ -826,6 +899,8 @@ public Builder clearUri() { return this; } /** + * + * *
      * URI that points to a file that contains audio data bytes as specified in
      * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -837,23 +912,23 @@ public Builder clearUri() {
      * 
* * string uri = 2; + * * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setUriBytes( - com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); audioSourceCase_ = 2; audioSource_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -863,12 +938,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognitionAudio) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionAudio) private static final com.google.cloud.speech.v1p1beta1.RecognitionAudio DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognitionAudio(); } @@ -877,16 +952,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionAudio parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionAudio(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionAudio parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionAudio(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -901,6 +976,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionAudio getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java index 6127a94e2..37850c3d9 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionAudioOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionAudioOrBuilder extends +public interface RecognitionAudioOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionAudio) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -15,10 +33,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return Whether the content field is set. */ boolean hasContent(); /** + * + * *
    * The audio data bytes encoded as specified in
    * `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
@@ -26,11 +47,14 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * bytes content = 1; + * * @return The content. */ com.google.protobuf.ByteString getContent(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -42,10 +66,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return Whether the uri field is set. */ boolean hasUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -57,10 +84,13 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The uri. */ java.lang.String getUri(); /** + * + * *
    * URI that points to a file that contains audio data bytes as specified in
    * `RecognitionConfig`. The file must not be compressed (for example, gzip).
@@ -72,10 +102,10 @@ public interface RecognitionAudioOrBuilder extends
    * 
* * string uri = 2; + * * @return The bytes for uri. */ - com.google.protobuf.ByteString - getUriBytes(); + com.google.protobuf.ByteString getUriBytes(); public com.google.cloud.speech.v1p1beta1.RecognitionAudio.AudioSourceCase getAudioSourceCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java similarity index 82% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java index 7acf02511..58f87cab1 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
  */
-public final class RecognitionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognitionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
     RecognitionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognitionConfig.newBuilder() to construct.
   private RecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognitionConfig() {
     encoding_ = 0;
     languageCode_ = "";
@@ -30,16 +48,15 @@ private RecognitionConfig() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,182 +76,209 @@ private RecognitionConfig(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            encoding_ = rawValue;
-            break;
-          }
-          case 16: {
-
-            sampleRateHertz_ = input.readInt32();
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          case 32: {
-
-            maxAlternatives_ = input.readInt32();
-            break;
-          }
-          case 40: {
-
-            profanityFilter_ = input.readBool();
-            break;
-          }
-          case 50: {
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              speechContexts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000002;
+              encoding_ = rawValue;
+              break;
             }
-            speechContexts_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
-            break;
-          }
-          case 56: {
-
-            audioChannelCount_ = input.readInt32();
-            break;
-          }
-          case 64: {
+          case 16:
+            {
+              sampleRateHertz_ = input.readInt32();
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            enableWordTimeOffsets_ = input.readBool();
-            break;
-          }
-          case 74: {
-            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
-            if (metadata_ != null) {
-              subBuilder = metadata_.toBuilder();
+              languageCode_ = s;
+              break;
             }
-            metadata_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metadata_);
-              metadata_ = subBuilder.buildPartial();
+          case 32:
+            {
+              maxAlternatives_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 88: {
-
-            enableAutomaticPunctuation_ = input.readBool();
-            break;
-          }
-          case 96: {
-
-            enableSeparateRecognitionPerChannel_ = input.readBool();
-            break;
-          }
-          case 106: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            model_ = s;
-            break;
-          }
-          case 112: {
-
-            useEnhanced_ = input.readBool();
-            break;
-          }
-          case 120: {
-
-            enableWordConfidence_ = input.readBool();
-            break;
-          }
-          case 128: {
-
-            enableSpeakerDiarization_ = input.readBool();
-            break;
-          }
-          case 136: {
-
-            diarizationSpeakerCount_ = input.readInt32();
-            break;
-          }
-          case 146: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 40:
+            {
+              profanityFilter_ = input.readBool();
+              break;
             }
-            alternativeLanguageCodes_.add(s);
-            break;
-          }
-          case 154: {
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
-            if (diarizationConfig_ != null) {
-              subBuilder = diarizationConfig_.toBuilder();
+          case 50:
+            {
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                speechContexts_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              speechContexts_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechContext.parser(), extensionRegistry));
+              break;
             }
-            diarizationConfig_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(diarizationConfig_);
-              diarizationConfig_ = subBuilder.buildPartial();
+          case 56:
+            {
+              audioChannelCount_ = input.readInt32();
+              break;
             }
-
-            break;
-          }
-          case 162: {
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
-            if (adaptation_ != null) {
-              subBuilder = adaptation_.toBuilder();
+          case 64:
+            {
+              enableWordTimeOffsets_ = input.readBool();
+              break;
             }
-            adaptation_ = input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(adaptation_);
-              adaptation_ = subBuilder.buildPartial();
+          case 74:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder subBuilder = null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 178: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenPunctuation_ != null) {
-              subBuilder = enableSpokenPunctuation_.toBuilder();
+          case 88:
+            {
+              enableAutomaticPunctuation_ = input.readBool();
+              break;
             }
-            enableSpokenPunctuation_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenPunctuation_);
-              enableSpokenPunctuation_ = subBuilder.buildPartial();
+          case 96:
+            {
+              enableSeparateRecognitionPerChannel_ = input.readBool();
+              break;
             }
+          case 106:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 186: {
-            com.google.protobuf.BoolValue.Builder subBuilder = null;
-            if (enableSpokenEmojis_ != null) {
-              subBuilder = enableSpokenEmojis_.toBuilder();
+              model_ = s;
+              break;
             }
-            enableSpokenEmojis_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(enableSpokenEmojis_);
-              enableSpokenEmojis_ = subBuilder.buildPartial();
+          case 112:
+            {
+              useEnhanced_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 194: {
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
-            if (transcriptNormalization_ != null) {
-              subBuilder = transcriptNormalization_.toBuilder();
+          case 120:
+            {
+              enableWordConfidence_ = input.readBool();
+              break;
             }
-            transcriptNormalization_ = input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(transcriptNormalization_);
-              transcriptNormalization_ = subBuilder.buildPartial();
+          case 128:
+            {
+              enableSpeakerDiarization_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 136:
+            {
+              diarizationSpeakerCount_ = input.readInt32();
+              break;
+            }
+          case 146:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternativeLanguageCodes_.add(s);
+              break;
+            }
+          case 154:
+            {
+              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder subBuilder = null;
+              if (diarizationConfig_ != null) {
+                subBuilder = diarizationConfig_.toBuilder();
+              }
+              diarizationConfig_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(diarizationConfig_);
+                diarizationConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 162:
+            {
+              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder subBuilder = null;
+              if (adaptation_ != null) {
+                subBuilder = adaptation_.toBuilder();
+              }
+              adaptation_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechAdaptation.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(adaptation_);
+                adaptation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 178:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenPunctuation_ != null) {
+                subBuilder = enableSpokenPunctuation_.toBuilder();
+              }
+              enableSpokenPunctuation_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenPunctuation_);
+                enableSpokenPunctuation_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 186:
+            {
+              com.google.protobuf.BoolValue.Builder subBuilder = null;
+              if (enableSpokenEmojis_ != null) {
+                subBuilder = enableSpokenEmojis_.toBuilder();
+              }
+              enableSpokenEmojis_ =
+                  input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(enableSpokenEmojis_);
+                enableSpokenEmojis_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 194:
+            {
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder subBuilder = null;
+              if (transcriptNormalization_ != null) {
+                subBuilder = transcriptNormalization_.toBuilder();
+              }
+              transcriptNormalization_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(transcriptNormalization_);
+                transcriptNormalization_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -242,8 +286,7 @@ private RecognitionConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000002) != 0)) {
         speechContexts_ = java.util.Collections.unmodifiableList(speechContexts_);
@@ -255,20 +298,25 @@ private RecognitionConfig(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * The encoding of the audio data sent in the request.
    * All encodings support only 1 channel (mono) audio, unless the
@@ -294,9 +342,10 @@ private RecognitionConfig(
    *
    * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding}
    */
-  public enum AudioEncoding
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum AudioEncoding implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -305,6 +354,8 @@ public enum AudioEncoding */ ENCODING_UNSPECIFIED(0), /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -313,6 +364,8 @@ public enum AudioEncoding */ LINEAR16(1), /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -326,6 +379,8 @@ public enum AudioEncoding
      */
     FLAC(2),
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -334,6 +389,8 @@ public enum AudioEncoding */ MULAW(3), /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -342,6 +399,8 @@ public enum AudioEncoding */ AMR(4), /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -350,6 +409,8 @@ public enum AudioEncoding */ AMR_WB(5), /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -360,6 +421,8 @@ public enum AudioEncoding
      */
     OGG_OPUS(6),
     /**
+     *
+     *
      * 
      * Although the use of lossy encodings is not recommended, if a very low
      * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -380,6 +443,8 @@ public enum AudioEncoding
      */
     SPEEX_WITH_HEADER_BYTE(7),
     /**
+     *
+     *
      * 
      * MP3 audio. MP3 encoding is a Beta feature and only available in
      * v1p1beta1. Support all standard MP3 bitrates (which range from 32-320
@@ -391,6 +456,8 @@ public enum AudioEncoding
      */
     MP3(8),
     /**
+     *
+     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -404,6 +471,8 @@ public enum AudioEncoding
     ;
 
     /**
+     *
+     *
      * 
      * Not specified.
      * 
@@ -412,6 +481,8 @@ public enum AudioEncoding */ public static final int ENCODING_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Uncompressed 16-bit signed little-endian samples (Linear PCM).
      * 
@@ -420,6 +491,8 @@ public enum AudioEncoding */ public static final int LINEAR16_VALUE = 1; /** + * + * *
      * `FLAC` (Free Lossless Audio
      * Codec) is the recommended encoding because it is
@@ -433,6 +506,8 @@ public enum AudioEncoding
      */
     public static final int FLAC_VALUE = 2;
     /**
+     *
+     *
      * 
      * 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
      * 
@@ -441,6 +516,8 @@ public enum AudioEncoding */ public static final int MULAW_VALUE = 3; /** + * + * *
      * Adaptive Multi-Rate Narrowband codec. `sample_rate_hertz` must be 8000.
      * 
@@ -449,6 +526,8 @@ public enum AudioEncoding */ public static final int AMR_VALUE = 4; /** + * + * *
      * Adaptive Multi-Rate Wideband codec. `sample_rate_hertz` must be 16000.
      * 
@@ -457,6 +536,8 @@ public enum AudioEncoding */ public static final int AMR_WB_VALUE = 5; /** + * + * *
      * Opus encoded audio frames in Ogg container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)).
@@ -467,6 +548,8 @@ public enum AudioEncoding
      */
     public static final int OGG_OPUS_VALUE = 6;
     /**
+     *
+     *
      * 
      * Although the use of lossy encodings is not recommended, if a very low
      * bitrate encoding is required, `OGG_OPUS` is highly preferred over
@@ -487,6 +570,8 @@ public enum AudioEncoding
      */
     public static final int SPEEX_WITH_HEADER_BYTE_VALUE = 7;
     /**
+     *
+     *
      * 
      * MP3 audio. MP3 encoding is a Beta feature and only available in
      * v1p1beta1. Support all standard MP3 bitrates (which range from 32-320
@@ -498,6 +583,8 @@ public enum AudioEncoding
      */
     public static final int MP3_VALUE = 8;
     /**
+     *
+     *
      * 
      * Opus encoded audio frames in WebM container
      * ([OggOpus](https://wiki.xiph.org/OggOpus)). `sample_rate_hertz` must be
@@ -508,7 +595,6 @@ public enum AudioEncoding
      */
     public static final int WEBM_OPUS_VALUE = 9;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -533,56 +619,65 @@ public static AudioEncoding valueOf(int value) {
      */
     public static AudioEncoding forNumber(int value) {
       switch (value) {
-        case 0: return ENCODING_UNSPECIFIED;
-        case 1: return LINEAR16;
-        case 2: return FLAC;
-        case 3: return MULAW;
-        case 4: return AMR;
-        case 5: return AMR_WB;
-        case 6: return OGG_OPUS;
-        case 7: return SPEEX_WITH_HEADER_BYTE;
-        case 8: return MP3;
-        case 9: return WEBM_OPUS;
-        default: return null;
+        case 0:
+          return ENCODING_UNSPECIFIED;
+        case 1:
+          return LINEAR16;
+        case 2:
+          return FLAC;
+        case 3:
+          return MULAW;
+        case 4:
+          return AMR;
+        case 5:
+          return AMR_WB;
+        case 6:
+          return OGG_OPUS;
+        case 7:
+          return SPEEX_WITH_HEADER_BYTE;
+        case 8:
+          return MP3;
+        case 9:
+          return WEBM_OPUS;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        AudioEncoding> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public AudioEncoding findValueByNumber(int number) {
-              return AudioEncoding.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public AudioEncoding findValueByNumber(int number) {
+            return AudioEncoding.forNumber(number);
+          }
+        };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final AudioEncoding[] VALUES = values();
 
-    public static AudioEncoding valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static AudioEncoding valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -602,6 +697,8 @@ private AudioEncoding(int value) {
   public static final int ENCODING_FIELD_NUMBER = 1;
   private int encoding_;
   /**
+   *
+   *
    * 
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -609,12 +706,16 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -622,17 +723,24 @@ private AudioEncoding(int value) {
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } public static final int SAMPLE_RATE_HERTZ_FIELD_NUMBER = 2; private int sampleRateHertz_; /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -644,6 +752,7 @@ private AudioEncoding(int value) {
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -654,6 +763,8 @@ public int getSampleRateHertz() { public static final int AUDIO_CHANNEL_COUNT_FIELD_NUMBER = 7; private int audioChannelCount_; /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -667,6 +778,7 @@ public int getSampleRateHertz() {
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -677,6 +789,8 @@ public int getAudioChannelCount() { public static final int ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER = 12; private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -687,6 +801,7 @@ public int getAudioChannelCount() {
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -697,6 +812,8 @@ public boolean getEnableSeparateRecognitionPerChannel() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 3; private volatile java.lang.Object languageCode_; /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -707,6 +824,7 @@ public boolean getEnableSeparateRecognitionPerChannel() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ @java.lang.Override @@ -715,14 +833,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -733,16 +852,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -753,6 +871,8 @@ public java.lang.String getLanguageCode() { public static final int ALTERNATIVE_LANGUAGE_CODES_FIELD_NUMBER = 18; private com.google.protobuf.LazyStringList alternativeLanguageCodes_; /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -769,13 +889,15 @@ public java.lang.String getLanguageCode() {
    * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getAlternativeLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList() { return alternativeLanguageCodes_; } /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -792,12 +914,15 @@ public java.lang.String getLanguageCode() {
    * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ public int getAlternativeLanguageCodesCount() { return alternativeLanguageCodes_.size(); } /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -814,6 +939,7 @@ public int getAlternativeLanguageCodesCount() {
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ @@ -821,6 +947,8 @@ public java.lang.String getAlternativeLanguageCodes(int index) { return alternativeLanguageCodes_.get(index); } /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -837,17 +965,19 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } public static final int MAX_ALTERNATIVES_FIELD_NUMBER = 4; private int maxAlternatives_; /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -858,6 +988,7 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -868,6 +999,8 @@ public int getMaxAlternatives() { public static final int PROFANITY_FILTER_FIELD_NUMBER = 5; private boolean profanityFilter_; /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -876,6 +1009,7 @@ public int getMaxAlternatives() {
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -886,6 +1020,8 @@ public boolean getProfanityFilter() { public static final int ADAPTATION_FIELD_NUMBER = 20; private com.google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation_; /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -895,6 +1031,7 @@ public boolean getProfanityFilter() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ @java.lang.Override @@ -902,6 +1039,8 @@ public boolean hasAdaptation() { return adaptation_ != null; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -911,13 +1050,18 @@ public boolean hasAdaptation() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation() { - return adaptation_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_; + return adaptation_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() + : adaptation_; } /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -936,6 +1080,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
   public static final int TRANSCRIPT_NORMALIZATION_FIELD_NUMBER = 24;
   private com.google.cloud.speech.v1p1beta1.TranscriptNormalization transcriptNormalization_;
   /**
+   *
+   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -943,7 +1089,9 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return Whether the transcriptNormalization field is set. */ @java.lang.Override @@ -951,6 +1099,8 @@ public boolean hasTranscriptNormalization() { return transcriptNormalization_ != null; } /** + * + * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -958,14 +1108,20 @@ public boolean hasTranscriptNormalization() {
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return The transcriptNormalization. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNormalization() { - return transcriptNormalization_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; + return transcriptNormalization_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() + : transcriptNormalization_; } /** + * + * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -973,16 +1129,20 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNo
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder + getTranscriptNormalizationOrBuilder() { return getTranscriptNormalization(); } public static final int SPEECH_CONTEXTS_FIELD_NUMBER = 6; private java.util.List speechContexts_; /** + * + * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -998,6 +1158,8 @@ public java.util.List getSpeech
     return speechContexts_;
   }
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1009,11 +1171,13 @@ public java.util.List getSpeech
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getSpeechContextsOrBuilderList() {
     return speechContexts_;
   }
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1029,6 +1193,8 @@ public int getSpeechContextsCount() {
     return speechContexts_.size();
   }
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1044,6 +1210,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext getSpeechContexts(int ind
     return speechContexts_.get(index);
   }
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -1063,6 +1231,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
   public static final int ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER = 8;
   private boolean enableWordTimeOffsets_;
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -1071,6 +1241,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -1081,6 +1252,8 @@ public boolean getEnableWordTimeOffsets() { public static final int ENABLE_WORD_CONFIDENCE_FIELD_NUMBER = 15; private boolean enableWordConfidence_; /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -1088,6 +1261,7 @@ public boolean getEnableWordTimeOffsets() {
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -1098,6 +1272,8 @@ public boolean getEnableWordConfidence() { public static final int ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER = 11; private boolean enableAutomaticPunctuation_; /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -1106,6 +1282,7 @@ public boolean getEnableWordConfidence() {
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -1116,6 +1293,8 @@ public boolean getEnableAutomaticPunctuation() { public static final int ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER = 22; private com.google.protobuf.BoolValue enableSpokenPunctuation_; /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1127,6 +1306,7 @@ public boolean getEnableAutomaticPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ @java.lang.Override @@ -1134,6 +1314,8 @@ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuation_ != null; } /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1145,13 +1327,18 @@ public boolean hasEnableSpokenPunctuation() {
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ @java.lang.Override public com.google.protobuf.BoolValue getEnableSpokenPunctuation() { - return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_; + return enableSpokenPunctuation_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableSpokenPunctuation_; } /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1172,6 +1359,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
   public static final int ENABLE_SPOKEN_EMOJIS_FIELD_NUMBER = 23;
   private com.google.protobuf.BoolValue enableSpokenEmojis_;
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1181,6 +1370,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ @java.lang.Override @@ -1188,6 +1378,8 @@ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojis_ != null; } /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1197,13 +1389,18 @@ public boolean hasEnableSpokenEmojis() {
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ @java.lang.Override public com.google.protobuf.BoolValue getEnableSpokenEmojis() { - return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_; + return enableSpokenEmojis_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableSpokenEmojis_; } /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -1222,6 +1419,8 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
   public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 16;
   private boolean enableSpeakerDiarization_;
   /**
+   *
+   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -1230,18 +1429,22 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @return The enableSpeakerDiarization. */ @java.lang.Override - @java.lang.Deprecated public boolean getEnableSpeakerDiarization() { + @java.lang.Deprecated + public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } public static final int DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER = 17; private int diarizationSpeakerCount_; /** + * + * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -1249,18 +1452,22 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @return The diarizationSpeakerCount. */ @java.lang.Override - @java.lang.Deprecated public int getDiarizationSpeakerCount() { + @java.lang.Deprecated + public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; } public static final int DIARIZATION_CONFIG_FIELD_NUMBER = 19; private com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarizationConfig_; /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1273,6 +1480,7 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ @java.lang.Override @@ -1280,6 +1488,8 @@ public boolean hasDiarizationConfig() { return diarizationConfig_ != null; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1292,13 +1502,18 @@ public boolean hasDiarizationConfig() {
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; + * * @return The diarizationConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarizationConfig() { - return diarizationConfig_ == null ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; + return diarizationConfig_ == null + ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() + : diarizationConfig_; } /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -1313,18 +1528,22 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarization
    * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+  public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder() {
     return getDiarizationConfig();
   }
 
   public static final int METADATA_FIELD_NUMBER = 9;
   private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -1332,18 +1551,25 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Metadata regarding this request.
    * 
@@ -1358,6 +1584,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat public static final int MODEL_FIELD_NUMBER = 13; private volatile java.lang.Object model_; /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1413,6 +1641,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
    * 
* * string model = 13; + * * @return The model. */ @java.lang.Override @@ -1421,14 +1650,15 @@ public java.lang.String getModel() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; } } /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -1484,16 +1714,15 @@ public java.lang.String getModel() {
    * 
* * string model = 13; + * * @return The bytes for model. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -1504,6 +1733,8 @@ public java.lang.String getModel() { public static final int USE_ENHANCED_FIELD_NUMBER = 14; private boolean useEnhanced_; /** + * + * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -1515,6 +1746,7 @@ public java.lang.String getModel() {
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -1523,6 +1755,7 @@ public boolean getUseEnhanced() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1534,9 +1767,10 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (encoding_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (encoding_ + != com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED + .getNumber()) { output.writeEnum(1, encoding_); } if (sampleRateHertz_ != 0) { @@ -1585,7 +1819,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt32(17, diarizationSpeakerCount_); } for (int i = 0; i < alternativeLanguageCodes_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 18, alternativeLanguageCodes_.getRaw(i)); + com.google.protobuf.GeneratedMessageV3.writeString( + output, 18, alternativeLanguageCodes_.getRaw(i)); } if (diarizationConfig_ != null) { output.writeMessage(19, getDiarizationConfig()); @@ -1611,67 +1846,58 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (encoding_ != com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, encoding_); + if (encoding_ + != com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.ENCODING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, encoding_); } if (sampleRateHertz_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, sampleRateHertz_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, sampleRateHertz_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, languageCode_); } if (maxAlternatives_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, maxAlternatives_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, maxAlternatives_); } if (profanityFilter_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, profanityFilter_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, profanityFilter_); } for (int i = 0; i < speechContexts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, speechContexts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, speechContexts_.get(i)); } if (audioChannelCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, audioChannelCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, audioChannelCount_); } if (enableWordTimeOffsets_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, enableWordTimeOffsets_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, enableWordTimeOffsets_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetadata()); } if (enableAutomaticPunctuation_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, enableAutomaticPunctuation_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(11, enableAutomaticPunctuation_); } if (enableSeparateRecognitionPerChannel_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, enableSeparateRecognitionPerChannel_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 12, enableSeparateRecognitionPerChannel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(model_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, model_); } if (useEnhanced_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(14, useEnhanced_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, useEnhanced_); } if (enableWordConfidence_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(15, enableWordConfidence_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(15, enableWordConfidence_); } if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(16, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, enableSpeakerDiarization_); } if (diarizationSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(17, diarizationSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(17, diarizationSpeakerCount_); } { int dataSize = 0; @@ -1682,24 +1908,23 @@ public int getSerializedSize() { size += 2 * getAlternativeLanguageCodesList().size(); } if (diarizationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(19, getDiarizationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getDiarizationConfig()); } if (adaptation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, getAdaptation()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getAdaptation()); } if (enableSpokenPunctuation_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, getEnableSpokenPunctuation()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getEnableSpokenPunctuation()); } if (enableSpokenEmojis_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, getEnableSpokenEmojis()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEnableSpokenEmojis()); } if (transcriptNormalization_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, getTranscriptNormalization()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, getTranscriptNormalization()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1709,74 +1934,56 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionConfig other = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.RecognitionConfig other = + (com.google.cloud.speech.v1p1beta1.RecognitionConfig) obj; if (encoding_ != other.encoding_) return false; - if (getSampleRateHertz() - != other.getSampleRateHertz()) return false; - if (getAudioChannelCount() - != other.getAudioChannelCount()) return false; - if (getEnableSeparateRecognitionPerChannel() - != other.getEnableSeparateRecognitionPerChannel()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (!getAlternativeLanguageCodesList() - .equals(other.getAlternativeLanguageCodesList())) return false; - if (getMaxAlternatives() - != other.getMaxAlternatives()) return false; - if (getProfanityFilter() - != other.getProfanityFilter()) return false; + if (getSampleRateHertz() != other.getSampleRateHertz()) return false; + if (getAudioChannelCount() != other.getAudioChannelCount()) return false; + if (getEnableSeparateRecognitionPerChannel() != other.getEnableSeparateRecognitionPerChannel()) + return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getAlternativeLanguageCodesList().equals(other.getAlternativeLanguageCodesList())) + return false; + if (getMaxAlternatives() != other.getMaxAlternatives()) return false; + if (getProfanityFilter() != other.getProfanityFilter()) return false; if (hasAdaptation() != other.hasAdaptation()) return false; if (hasAdaptation()) { - if (!getAdaptation() - .equals(other.getAdaptation())) return false; + if (!getAdaptation().equals(other.getAdaptation())) return false; } if (hasTranscriptNormalization() != other.hasTranscriptNormalization()) return false; if (hasTranscriptNormalization()) { - if (!getTranscriptNormalization() - .equals(other.getTranscriptNormalization())) return false; - } - if (!getSpeechContextsList() - .equals(other.getSpeechContextsList())) return false; - if (getEnableWordTimeOffsets() - != other.getEnableWordTimeOffsets()) return false; - if (getEnableWordConfidence() - != other.getEnableWordConfidence()) return false; - if (getEnableAutomaticPunctuation() - != other.getEnableAutomaticPunctuation()) return false; + if (!getTranscriptNormalization().equals(other.getTranscriptNormalization())) return false; + } + if (!getSpeechContextsList().equals(other.getSpeechContextsList())) return false; + if (getEnableWordTimeOffsets() != other.getEnableWordTimeOffsets()) return false; + if (getEnableWordConfidence() != other.getEnableWordConfidence()) return false; + if (getEnableAutomaticPunctuation() != other.getEnableAutomaticPunctuation()) return false; if (hasEnableSpokenPunctuation() != other.hasEnableSpokenPunctuation()) return false; if (hasEnableSpokenPunctuation()) { - if (!getEnableSpokenPunctuation() - .equals(other.getEnableSpokenPunctuation())) return false; + if (!getEnableSpokenPunctuation().equals(other.getEnableSpokenPunctuation())) return false; } if (hasEnableSpokenEmojis() != other.hasEnableSpokenEmojis()) return false; if (hasEnableSpokenEmojis()) { - if (!getEnableSpokenEmojis() - .equals(other.getEnableSpokenEmojis())) return false; + if (!getEnableSpokenEmojis().equals(other.getEnableSpokenEmojis())) return false; } - if (getEnableSpeakerDiarization() - != other.getEnableSpeakerDiarization()) return false; - if (getDiarizationSpeakerCount() - != other.getDiarizationSpeakerCount()) return false; + if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; + if (getDiarizationSpeakerCount() != other.getDiarizationSpeakerCount()) return false; if (hasDiarizationConfig() != other.hasDiarizationConfig()) return false; if (hasDiarizationConfig()) { - if (!getDiarizationConfig() - .equals(other.getDiarizationConfig())) return false; + if (!getDiarizationConfig().equals(other.getDiarizationConfig())) return false; } if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } - if (!getModel() - .equals(other.getModel())) return false; - if (getUseEnhanced() - != other.getUseEnhanced()) return false; + if (!getModel().equals(other.getModel())) return false; + if (getUseEnhanced() != other.getUseEnhanced()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1795,8 +2002,9 @@ public int hashCode() { hash = (37 * hash) + AUDIO_CHANNEL_COUNT_FIELD_NUMBER; hash = (53 * hash) + getAudioChannelCount(); hash = (37 * hash) + ENABLE_SEPARATE_RECOGNITION_PER_CHANNEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSeparateRecognitionPerChannel()); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableSeparateRecognitionPerChannel()); hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); if (getAlternativeLanguageCodesCount() > 0) { @@ -1806,8 +2014,7 @@ public int hashCode() { hash = (37 * hash) + MAX_ALTERNATIVES_FIELD_NUMBER; hash = (53 * hash) + getMaxAlternatives(); hash = (37 * hash) + PROFANITY_FILTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getProfanityFilter()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProfanityFilter()); if (hasAdaptation()) { hash = (37 * hash) + ADAPTATION_FIELD_NUMBER; hash = (53 * hash) + getAdaptation().hashCode(); @@ -1821,14 +2028,11 @@ public int hashCode() { hash = (53 * hash) + getSpeechContextsList().hashCode(); } hash = (37 * hash) + ENABLE_WORD_TIME_OFFSETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableWordTimeOffsets()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWordTimeOffsets()); hash = (37 * hash) + ENABLE_WORD_CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableWordConfidence()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableWordConfidence()); hash = (37 * hash) + ENABLE_AUTOMATIC_PUNCTUATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableAutomaticPunctuation()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableAutomaticPunctuation()); if (hasEnableSpokenPunctuation()) { hash = (37 * hash) + ENABLE_SPOKEN_PUNCTUATION_FIELD_NUMBER; hash = (53 * hash) + getEnableSpokenPunctuation().hashCode(); @@ -1838,8 +2042,7 @@ public int hashCode() { hash = (53 * hash) + getEnableSpokenEmojis().hashCode(); } hash = (37 * hash) + ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSpeakerDiarization()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpeakerDiarization()); hash = (37 * hash) + DIARIZATION_SPEAKER_COUNT_FIELD_NUMBER; hash = (53 * hash) + getDiarizationSpeakerCount(); if (hasDiarizationConfig()) { @@ -1853,104 +2056,110 @@ public int hashCode() { hash = (37 * hash) + MODEL_FIELD_NUMBER; hash = (53 * hash) + getModel().hashCode(); hash = (37 * hash) + USE_ENHANCED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getUseEnhanced()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseEnhanced()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -1958,21 +2167,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionConfig)
       com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.class,
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder()
@@ -1980,17 +2191,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getSpeechContextsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2070,9 +2281,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -2091,7 +2302,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognitionConfig result = new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.RecognitionConfig result =
+          new com.google.cloud.speech.v1p1beta1.RecognitionConfig(this);
       int from_bitField0_ = bitField0_;
       result.encoding_ = encoding_;
       result.sampleRateHertz_ = sampleRateHertz_;
@@ -2159,38 +2371,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2198,7 +2411,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig other) {
-      if (other == com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance())
+        return this;
       if (other.encoding_ != 0) {
         setEncodingValue(other.getEncodingValue());
       }
@@ -2255,9 +2469,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionConfig oth
             speechContextsBuilder_ = null;
             speechContexts_ = other.speechContexts_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            speechContextsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getSpeechContextsFieldBuilder() : null;
+            speechContextsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getSpeechContextsFieldBuilder()
+                    : null;
           } else {
             speechContextsBuilder_.addAllMessages(other.speechContexts_);
           }
@@ -2316,7 +2531,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.RecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2325,10 +2541,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private int encoding_ = 0;
     /**
+     *
+     *
      * 
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2336,12 +2555,16 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ - @java.lang.Override public int getEncodingValue() { + @java.lang.Override + public int getEncodingValue() { return encoding_; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2349,16 +2572,19 @@ public Builder mergeFrom(
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The enum numeric value on the wire for encoding to set. * @return This builder for chaining. */ public Builder setEncodingValue(int value) { - + encoding_ = value; onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2366,15 +2592,21 @@ public Builder setEncodingValue(int value) {
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding result = + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.valueOf(encoding_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding.UNRECOGNIZED + : result; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2382,19 +2614,23 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEnco
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @param value The encoding to set. * @return This builder for chaining. */ - public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { + public Builder setEncoding( + com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding value) { if (value == null) { throw new NullPointerException(); } - + encoding_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Encoding of audio data sent in all `RecognitionAudio` messages.
      * This field is optional for `FLAC` and `WAV` audio files and required
@@ -2402,17 +2638,20 @@ public Builder setEncoding(com.google.cloud.speech.v1p1beta1.RecognitionConfig.A
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return This builder for chaining. */ public Builder clearEncoding() { - + encoding_ = 0; onChanged(); return this; } - private int sampleRateHertz_ ; + private int sampleRateHertz_; /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2424,6 +2663,7 @@ public Builder clearEncoding() {
      * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ @java.lang.Override @@ -2431,6 +2671,8 @@ public int getSampleRateHertz() { return sampleRateHertz_; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2442,16 +2684,19 @@ public int getSampleRateHertz() {
      * 
* * int32 sample_rate_hertz = 2; + * * @param value The sampleRateHertz to set. * @return This builder for chaining. */ public Builder setSampleRateHertz(int value) { - + sampleRateHertz_ = value; onChanged(); return this; } /** + * + * *
      * Sample rate in Hertz of the audio data sent in all
      * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -2463,17 +2708,20 @@ public Builder setSampleRateHertz(int value) {
      * 
* * int32 sample_rate_hertz = 2; + * * @return This builder for chaining. */ public Builder clearSampleRateHertz() { - + sampleRateHertz_ = 0; onChanged(); return this; } - private int audioChannelCount_ ; + private int audioChannelCount_; /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2487,6 +2735,7 @@ public Builder clearSampleRateHertz() {
      * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ @java.lang.Override @@ -2494,6 +2743,8 @@ public int getAudioChannelCount() { return audioChannelCount_; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2507,16 +2758,19 @@ public int getAudioChannelCount() {
      * 
* * int32 audio_channel_count = 7; + * * @param value The audioChannelCount to set. * @return This builder for chaining. */ public Builder setAudioChannelCount(int value) { - + audioChannelCount_ = value; onChanged(); return this; } /** + * + * *
      * The number of channels in the input audio data.
      * ONLY set this for MULTI-CHANNEL recognition.
@@ -2530,17 +2784,20 @@ public Builder setAudioChannelCount(int value) {
      * 
* * int32 audio_channel_count = 7; + * * @return This builder for chaining. */ public Builder clearAudioChannelCount() { - + audioChannelCount_ = 0; onChanged(); return this; } - private boolean enableSeparateRecognitionPerChannel_ ; + private boolean enableSeparateRecognitionPerChannel_; /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2551,6 +2808,7 @@ public Builder clearAudioChannelCount() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ @java.lang.Override @@ -2558,6 +2816,8 @@ public boolean getEnableSeparateRecognitionPerChannel() { return enableSeparateRecognitionPerChannel_; } /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2568,16 +2828,19 @@ public boolean getEnableSeparateRecognitionPerChannel() {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @param value The enableSeparateRecognitionPerChannel to set. * @return This builder for chaining. */ public Builder setEnableSeparateRecognitionPerChannel(boolean value) { - + enableSeparateRecognitionPerChannel_ = value; onChanged(); return this; } /** + * + * *
      * This needs to be set to `true` explicitly and `audio_channel_count` > 1
      * to get each channel recognized separately. The recognition result will
@@ -2588,10 +2851,11 @@ public Builder setEnableSeparateRecognitionPerChannel(boolean value) {
      * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return This builder for chaining. */ public Builder clearEnableSeparateRecognitionPerChannel() { - + enableSeparateRecognitionPerChannel_ = false; onChanged(); return this; @@ -2599,6 +2863,8 @@ public Builder clearEnableSeparateRecognitionPerChannel() { private java.lang.Object languageCode_ = ""; /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2609,13 +2875,13 @@ public Builder clearEnableSeparateRecognitionPerChannel() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -2624,6 +2890,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2634,15 +2902,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -2650,6 +2917,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2660,20 +2929,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2684,15 +2955,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Required. The language of the supplied audio as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -2703,29 +2977,34 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList alternativeLanguageCodes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAlternativeLanguageCodesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternativeLanguageCodes_ = new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); + alternativeLanguageCodes_ = + new com.google.protobuf.LazyStringArrayList(alternativeLanguageCodes_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2742,13 +3021,15 @@ private void ensureAlternativeLanguageCodesIsMutable() {
      * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - public com.google.protobuf.ProtocolStringList - getAlternativeLanguageCodesList() { + public com.google.protobuf.ProtocolStringList getAlternativeLanguageCodesList() { return alternativeLanguageCodes_.getUnmodifiableView(); } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2765,12 +3046,15 @@ private void ensureAlternativeLanguageCodesIsMutable() {
      * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ public int getAlternativeLanguageCodesCount() { return alternativeLanguageCodes_.size(); } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2787,6 +3071,7 @@ public int getAlternativeLanguageCodesCount() {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ @@ -2794,6 +3079,8 @@ public java.lang.String getAlternativeLanguageCodes(int index) { return alternativeLanguageCodes_.get(index); } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2810,14 +3097,16 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - public com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index) { + public com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index) { return alternativeLanguageCodes_.getByteString(index); } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2834,21 +3123,23 @@ public java.lang.String getAlternativeLanguageCodes(int index) {
      * 
* * repeated string alternative_language_codes = 18; + * * @param index The index to set the value at. * @param value The alternativeLanguageCodes to set. * @return This builder for chaining. */ - public Builder setAlternativeLanguageCodes( - int index, java.lang.String value) { + public Builder setAlternativeLanguageCodes(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2865,20 +3156,22 @@ public Builder setAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodes( - java.lang.String value) { + public Builder addAlternativeLanguageCodes(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAlternativeLanguageCodesIsMutable(); + throw new NullPointerException(); + } + ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2895,18 +3188,19 @@ public Builder addAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @param values The alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAllAlternativeLanguageCodes( - java.lang.Iterable values) { + public Builder addAllAlternativeLanguageCodes(java.lang.Iterable values) { ensureAlternativeLanguageCodesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, alternativeLanguageCodes_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternativeLanguageCodes_); onChanged(); return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2923,6 +3217,7 @@ public Builder addAllAlternativeLanguageCodes(
      * 
* * repeated string alternative_language_codes = 18; + * * @return This builder for chaining. */ public Builder clearAlternativeLanguageCodes() { @@ -2932,6 +3227,8 @@ public Builder clearAlternativeLanguageCodes() { return this; } /** + * + * *
      * A list of up to 3 additional
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -2948,23 +3245,25 @@ public Builder clearAlternativeLanguageCodes() {
      * 
* * repeated string alternative_language_codes = 18; + * * @param value The bytes of the alternativeLanguageCodes to add. * @return This builder for chaining. */ - public Builder addAlternativeLanguageCodesBytes( - com.google.protobuf.ByteString value) { + public Builder addAlternativeLanguageCodesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAlternativeLanguageCodesIsMutable(); alternativeLanguageCodes_.add(value); onChanged(); return this; } - private int maxAlternatives_ ; + private int maxAlternatives_; /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2975,6 +3274,7 @@ public Builder addAlternativeLanguageCodesBytes(
      * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ @java.lang.Override @@ -2982,6 +3282,8 @@ public int getMaxAlternatives() { return maxAlternatives_; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -2992,16 +3294,19 @@ public int getMaxAlternatives() {
      * 
* * int32 max_alternatives = 4; + * * @param value The maxAlternatives to set. * @return This builder for chaining. */ public Builder setMaxAlternatives(int value) { - + maxAlternatives_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of recognition hypotheses to be returned.
      * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -3012,17 +3317,20 @@ public Builder setMaxAlternatives(int value) {
      * 
* * int32 max_alternatives = 4; + * * @return This builder for chaining. */ public Builder clearMaxAlternatives() { - + maxAlternatives_ = 0; onChanged(); return this; } - private boolean profanityFilter_ ; + private boolean profanityFilter_; /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3031,6 +3339,7 @@ public Builder clearMaxAlternatives() {
      * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ @java.lang.Override @@ -3038,6 +3347,8 @@ public boolean getProfanityFilter() { return profanityFilter_; } /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3046,16 +3357,19 @@ public boolean getProfanityFilter() {
      * 
* * bool profanity_filter = 5; + * * @param value The profanityFilter to set. * @return This builder for chaining. */ public Builder setProfanityFilter(boolean value) { - + profanityFilter_ = value; onChanged(); return this; } /** + * + * *
      * If set to `true`, the server will attempt to filter out
      * profanities, replacing all but the initial character in each filtered word
@@ -3064,10 +3378,11 @@ public Builder setProfanityFilter(boolean value) {
      * 
* * bool profanity_filter = 5; + * * @return This builder for chaining. */ public Builder clearProfanityFilter() { - + profanityFilter_ = false; onChanged(); return this; @@ -3075,8 +3390,13 @@ public Builder clearProfanityFilter() { private com.google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechAdaptation, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder> adaptationBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechAdaptation, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder, + com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder> + adaptationBuilder_; /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3086,12 +3406,15 @@ public Builder clearProfanityFilter() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ public boolean hasAdaptation() { return adaptationBuilder_ != null || adaptation_ != null; } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3101,16 +3424,21 @@ public boolean hasAdaptation() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation() { if (adaptationBuilder_ == null) { - return adaptation_ == null ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_; + return adaptation_ == null + ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() + : adaptation_; } else { return adaptationBuilder_.getMessage(); } } /** + * + * *
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3135,6 +3463,8 @@ public Builder setAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptation
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3157,6 +3487,8 @@ public Builder setAdaptation(
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3171,7 +3503,9 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptatio
       if (adaptationBuilder_ == null) {
         if (adaptation_ != null) {
           adaptation_ =
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder(adaptation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           adaptation_ = value;
         }
@@ -3183,6 +3517,8 @@ public Builder mergeAdaptation(com.google.cloud.speech.v1p1beta1.SpeechAdaptatio
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3205,6 +3541,8 @@ public Builder clearAdaptation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3216,11 +3554,13 @@ public Builder clearAdaptation() {
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder getAdaptationBuilder() {
-      
+
       onChanged();
       return getAdaptationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3235,11 +3575,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
       if (adaptationBuilder_ != null) {
         return adaptationBuilder_.getMessageOrBuilder();
       } else {
-        return adaptation_ == null ?
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance() : adaptation_;
+        return adaptation_ == null
+            ? com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()
+            : adaptation_;
       }
     }
     /**
+     *
+     *
      * 
      * Speech adaptation configuration improves the accuracy of speech
      * recognition. For more information, see the [speech
@@ -3251,14 +3594,17 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
      * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechAdaptation, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder>
         getAdaptationFieldBuilder() {
       if (adaptationBuilder_ == null) {
-        adaptationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechAdaptation, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder, com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder>(
-                getAdaptation(),
-                getParentForChildren(),
-                isClean());
+        adaptationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.SpeechAdaptation,
+                com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder,
+                com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder>(
+                getAdaptation(), getParentForChildren(), isClean());
         adaptation_ = null;
       }
       return adaptationBuilder_;
@@ -3266,8 +3612,13 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
 
     private com.google.cloud.speech.v1p1beta1.TranscriptNormalization transcriptNormalization_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> transcriptNormalizationBuilder_;
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>
+        transcriptNormalizationBuilder_;
     /**
+     *
+     *
      * 
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3275,13 +3626,17 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptation
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return Whether the transcriptNormalization field is set. */ public boolean hasTranscriptNormalization() { return transcriptNormalizationBuilder_ != null || transcriptNormalization_ != null; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3289,17 +3644,23 @@ public boolean hasTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return The transcriptNormalization. */ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNormalization() { if (transcriptNormalizationBuilder_ == null) { - return transcriptNormalization_ == null ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; + return transcriptNormalization_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() + : transcriptNormalization_; } else { return transcriptNormalizationBuilder_.getMessage(); } } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3307,9 +3668,11 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNo
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - public Builder setTranscriptNormalization(com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { + public Builder setTranscriptNormalization( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { if (transcriptNormalizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3323,6 +3686,8 @@ public Builder setTranscriptNormalization(com.google.cloud.speech.v1p1beta1.Tran return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3330,7 +3695,8 @@ public Builder setTranscriptNormalization(com.google.cloud.speech.v1p1beta1.Tran
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ public Builder setTranscriptNormalization( com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder builderForValue) { @@ -3344,6 +3710,8 @@ public Builder setTranscriptNormalization( return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3351,13 +3719,18 @@ public Builder setTranscriptNormalization(
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - public Builder mergeTranscriptNormalization(com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { + public Builder mergeTranscriptNormalization( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization value) { if (transcriptNormalizationBuilder_ == null) { if (transcriptNormalization_ != null) { transcriptNormalization_ = - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder(transcriptNormalization_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder( + transcriptNormalization_) + .mergeFrom(value) + .buildPartial(); } else { transcriptNormalization_ = value; } @@ -3369,6 +3742,8 @@ public Builder mergeTranscriptNormalization(com.google.cloud.speech.v1p1beta1.Tr return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3376,7 +3751,8 @@ public Builder mergeTranscriptNormalization(com.google.cloud.speech.v1p1beta1.Tr
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ public Builder clearTranscriptNormalization() { if (transcriptNormalizationBuilder_ == null) { @@ -3390,6 +3766,8 @@ public Builder clearTranscriptNormalization() { return this; } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3397,14 +3775,18 @@ public Builder clearTranscriptNormalization() {
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder getTranscriptNormalizationBuilder() { - + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder + getTranscriptNormalizationBuilder() { + onChanged(); return getTranscriptNormalizationFieldBuilder().getBuilder(); } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3412,17 +3794,22 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder getTran
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder + getTranscriptNormalizationOrBuilder() { if (transcriptNormalizationBuilder_ != null) { return transcriptNormalizationBuilder_.getMessageOrBuilder(); } else { - return transcriptNormalization_ == null ? - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() : transcriptNormalization_; + return transcriptNormalization_ == null + ? com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance() + : transcriptNormalization_; } } /** + * + * *
      * Use transcription normalization to automatically replace parts of the
      * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -3430,35 +3817,47 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTra
      * and final transcripts.
      * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder> getTranscriptNormalizationFieldBuilder() { if (transcriptNormalizationBuilder_ == null) { - transcriptNormalizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( - getTranscriptNormalization(), - getParentForChildren(), - isClean()); + transcriptNormalizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptNormalization, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder>( + getTranscriptNormalization(), getParentForChildren(), isClean()); transcriptNormalization_ = null; } return transcriptNormalizationBuilder_; } private java.util.List speechContexts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureSpeechContextsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - speechContexts_ = new java.util.ArrayList(speechContexts_); + speechContexts_ = + new java.util.ArrayList( + speechContexts_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> speechContextsBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechContext, + com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, + com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> + speechContextsBuilder_; /** + * + * *
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3477,6 +3876,8 @@ public java.util.List getSpeech
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3495,6 +3896,8 @@ public int getSpeechContextsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3513,6 +3916,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext getSpeechContexts(int ind
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3538,6 +3943,8 @@ public Builder setSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3560,6 +3967,8 @@ public Builder setSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3584,6 +3993,8 @@ public Builder addSpeechContexts(com.google.cloud.speech.v1p1beta1.SpeechContext
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3609,6 +4020,8 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3631,6 +4044,8 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3653,6 +4068,8 @@ public Builder addSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3667,8 +4084,7 @@ public Builder addAllSpeechContexts(
         java.lang.Iterable values) {
       if (speechContextsBuilder_ == null) {
         ensureSpeechContextsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, speechContexts_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, speechContexts_);
         onChanged();
       } else {
         speechContextsBuilder_.addAllMessages(values);
@@ -3676,6 +4092,8 @@ public Builder addAllSpeechContexts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3697,6 +4115,8 @@ public Builder clearSpeechContexts() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3718,6 +4138,8 @@ public Builder removeSpeechContexts(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3733,6 +4155,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder getSpeechContexts
       return getSpeechContextsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3746,11 +4170,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder getSpeechContexts
     public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
         int index) {
       if (speechContextsBuilder_ == null) {
-        return speechContexts_.get(index);  } else {
+        return speechContexts_.get(index);
+      } else {
         return speechContextsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3761,8 +4188,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List 
-         getSpeechContextsOrBuilderList() {
+    public java.util.List
+        getSpeechContextsOrBuilderList() {
       if (speechContextsBuilder_ != null) {
         return speechContextsBuilder_.getMessageOrBuilderList();
       } else {
@@ -3770,6 +4197,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
       }
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3781,10 +4210,12 @@ public com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContext
      * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContextsBuilder() {
-      return getSpeechContextsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance());
+      return getSpeechContextsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3797,10 +4228,12 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      */
     public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContextsBuilder(
         int index) {
-      return getSpeechContextsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance());
+      return getSpeechContextsFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
      * A means to provide context to assist the speech recognition. For more
@@ -3811,16 +4244,22 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
      */
-    public java.util.List 
-         getSpeechContextsBuilderList() {
+    public java.util.List
+        getSpeechContextsBuilderList() {
       return getSpeechContextsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.SpeechContext,
+            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>
         getSpeechContextsFieldBuilder() {
       if (speechContextsBuilder_ == null) {
-        speechContextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechContext, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder, com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
+        speechContextsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.SpeechContext,
+                com.google.cloud.speech.v1p1beta1.SpeechContext.Builder,
+                com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder>(
                 speechContexts_,
                 ((bitField0_ & 0x00000002) != 0),
                 getParentForChildren(),
@@ -3830,8 +4269,10 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
       return speechContextsBuilder_;
     }
 
-    private boolean enableWordTimeOffsets_ ;
+    private boolean enableWordTimeOffsets_;
     /**
+     *
+     *
      * 
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3840,6 +4281,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext.Builder addSpeechContexts
      * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ @java.lang.Override @@ -3847,6 +4289,8 @@ public boolean getEnableWordTimeOffsets() { return enableWordTimeOffsets_; } /** + * + * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3855,16 +4299,19 @@ public boolean getEnableWordTimeOffsets() {
      * 
* * bool enable_word_time_offsets = 8; + * * @param value The enableWordTimeOffsets to set. * @return This builder for chaining. */ public Builder setEnableWordTimeOffsets(boolean value) { - + enableWordTimeOffsets_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and
      * the start and end time offsets (timestamps) for those words. If
@@ -3873,17 +4320,20 @@ public Builder setEnableWordTimeOffsets(boolean value) {
      * 
* * bool enable_word_time_offsets = 8; + * * @return This builder for chaining. */ public Builder clearEnableWordTimeOffsets() { - + enableWordTimeOffsets_ = false; onChanged(); return this; } - private boolean enableWordConfidence_ ; + private boolean enableWordConfidence_; /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3891,6 +4341,7 @@ public Builder clearEnableWordTimeOffsets() {
      * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ @java.lang.Override @@ -3898,6 +4349,8 @@ public boolean getEnableWordConfidence() { return enableWordConfidence_; } /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3905,16 +4358,19 @@ public boolean getEnableWordConfidence() {
      * 
* * bool enable_word_confidence = 15; + * * @param value The enableWordConfidence to set. * @return This builder for chaining. */ public Builder setEnableWordConfidence(boolean value) { - + enableWordConfidence_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, the top result includes a list of words and the
      * confidence for those words. If `false`, no word-level confidence
@@ -3922,17 +4378,20 @@ public Builder setEnableWordConfidence(boolean value) {
      * 
* * bool enable_word_confidence = 15; + * * @return This builder for chaining. */ public Builder clearEnableWordConfidence() { - + enableWordConfidence_ = false; onChanged(); return this; } - private boolean enableAutomaticPunctuation_ ; + private boolean enableAutomaticPunctuation_; /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3941,6 +4400,7 @@ public Builder clearEnableWordConfidence() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ @java.lang.Override @@ -3948,6 +4408,8 @@ public boolean getEnableAutomaticPunctuation() { return enableAutomaticPunctuation_; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3956,16 +4418,19 @@ public boolean getEnableAutomaticPunctuation() {
      * 
* * bool enable_automatic_punctuation = 11; + * * @param value The enableAutomaticPunctuation to set. * @return This builder for chaining. */ public Builder setEnableAutomaticPunctuation(boolean value) { - + enableAutomaticPunctuation_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', adds punctuation to recognition result hypotheses.
      * This feature is only available in select languages. Setting this for
@@ -3974,10 +4439,11 @@ public Builder setEnableAutomaticPunctuation(boolean value) {
      * 
* * bool enable_automatic_punctuation = 11; + * * @return This builder for chaining. */ public Builder clearEnableAutomaticPunctuation() { - + enableAutomaticPunctuation_ = false; onChanged(); return this; @@ -3985,8 +4451,13 @@ public Builder clearEnableAutomaticPunctuation() { private com.google.protobuf.BoolValue enableSpokenPunctuation_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSpokenPunctuationBuilder_; + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + enableSpokenPunctuationBuilder_; /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -3998,12 +4469,15 @@ public Builder clearEnableAutomaticPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ public boolean hasEnableSpokenPunctuation() { return enableSpokenPunctuationBuilder_ != null || enableSpokenPunctuation_ != null; } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4015,16 +4489,21 @@ public boolean hasEnableSpokenPunctuation() {
      * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ public com.google.protobuf.BoolValue getEnableSpokenPunctuation() { if (enableSpokenPunctuationBuilder_ == null) { - return enableSpokenPunctuation_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_; + return enableSpokenPunctuation_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableSpokenPunctuation_; } else { return enableSpokenPunctuationBuilder_.getMessage(); } } /** + * + * *
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4051,6 +4530,8 @@ public Builder setEnableSpokenPunctuation(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4075,6 +4556,8 @@ public Builder setEnableSpokenPunctuation(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4091,7 +4574,9 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       if (enableSpokenPunctuationBuilder_ == null) {
         if (enableSpokenPunctuation_ != null) {
           enableSpokenPunctuation_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenPunctuation_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenPunctuation_ = value;
         }
@@ -4103,6 +4588,8 @@ public Builder mergeEnableSpokenPunctuation(com.google.protobuf.BoolValue value)
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4127,6 +4614,8 @@ public Builder clearEnableSpokenPunctuation() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4140,11 +4629,13 @@ public Builder clearEnableSpokenPunctuation() {
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenPunctuationBuilder() {
-      
+
       onChanged();
       return getEnableSpokenPunctuationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4161,11 +4652,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
       if (enableSpokenPunctuationBuilder_ != null) {
         return enableSpokenPunctuationBuilder_.getMessageOrBuilder();
       } else {
-        return enableSpokenPunctuation_ == null ?
-            com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenPunctuation_;
+        return enableSpokenPunctuation_ == null
+            ? com.google.protobuf.BoolValue.getDefaultInstance()
+            : enableSpokenPunctuation_;
       }
     }
     /**
+     *
+     *
      * 
      * The spoken punctuation behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4179,14 +4673,17 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * .google.protobuf.BoolValue enable_spoken_punctuation = 22;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
         getEnableSpokenPunctuationFieldBuilder() {
       if (enableSpokenPunctuationBuilder_ == null) {
-        enableSpokenPunctuationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
-                getEnableSpokenPunctuation(),
-                getParentForChildren(),
-                isClean());
+        enableSpokenPunctuationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.BoolValue,
+                com.google.protobuf.BoolValue.Builder,
+                com.google.protobuf.BoolValueOrBuilder>(
+                getEnableSpokenPunctuation(), getParentForChildren(), isClean());
         enableSpokenPunctuation_ = null;
       }
       return enableSpokenPunctuationBuilder_;
@@ -4194,8 +4691,13 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
 
     private com.google.protobuf.BoolValue enableSpokenEmojis_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> enableSpokenEmojisBuilder_;
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
+        enableSpokenEmojisBuilder_;
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4205,12 +4707,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilde
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ public boolean hasEnableSpokenEmojis() { return enableSpokenEmojisBuilder_ != null || enableSpokenEmojis_ != null; } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4220,16 +4725,21 @@ public boolean hasEnableSpokenEmojis() {
      * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ public com.google.protobuf.BoolValue getEnableSpokenEmojis() { if (enableSpokenEmojisBuilder_ == null) { - return enableSpokenEmojis_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_; + return enableSpokenEmojis_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : enableSpokenEmojis_; } else { return enableSpokenEmojisBuilder_.getMessage(); } } /** + * + * *
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4254,6 +4764,8 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4264,8 +4776,7 @@ public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
      *
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
-    public Builder setEnableSpokenEmojis(
-        com.google.protobuf.BoolValue.Builder builderForValue) {
+    public Builder setEnableSpokenEmojis(com.google.protobuf.BoolValue.Builder builderForValue) {
       if (enableSpokenEmojisBuilder_ == null) {
         enableSpokenEmojis_ = builderForValue.build();
         onChanged();
@@ -4276,6 +4787,8 @@ public Builder setEnableSpokenEmojis(
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4290,7 +4803,9 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       if (enableSpokenEmojisBuilder_ == null) {
         if (enableSpokenEmojis_ != null) {
           enableSpokenEmojis_ =
-            com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_).mergeFrom(value).buildPartial();
+              com.google.protobuf.BoolValue.newBuilder(enableSpokenEmojis_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           enableSpokenEmojis_ = value;
         }
@@ -4302,6 +4817,8 @@ public Builder mergeEnableSpokenEmojis(com.google.protobuf.BoolValue value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4324,6 +4841,8 @@ public Builder clearEnableSpokenEmojis() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4335,11 +4854,13 @@ public Builder clearEnableSpokenEmojis() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     public com.google.protobuf.BoolValue.Builder getEnableSpokenEmojisBuilder() {
-      
+
       onChanged();
       return getEnableSpokenEmojisFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4354,11 +4875,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
       if (enableSpokenEmojisBuilder_ != null) {
         return enableSpokenEmojisBuilder_.getMessageOrBuilder();
       } else {
-        return enableSpokenEmojis_ == null ?
-            com.google.protobuf.BoolValue.getDefaultInstance() : enableSpokenEmojis_;
+        return enableSpokenEmojis_ == null
+            ? com.google.protobuf.BoolValue.getDefaultInstance()
+            : enableSpokenEmojis_;
       }
     }
     /**
+     *
+     *
      * 
      * The spoken emoji behavior for the call
      * If not set, uses default behavior based on model of choice
@@ -4370,21 +4894,26 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * .google.protobuf.BoolValue enable_spoken_emojis = 23;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> 
+            com.google.protobuf.BoolValue,
+            com.google.protobuf.BoolValue.Builder,
+            com.google.protobuf.BoolValueOrBuilder>
         getEnableSpokenEmojisFieldBuilder() {
       if (enableSpokenEmojisBuilder_ == null) {
-        enableSpokenEmojisBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
-                getEnableSpokenEmojis(),
-                getParentForChildren(),
-                isClean());
+        enableSpokenEmojisBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.BoolValue,
+                com.google.protobuf.BoolValue.Builder,
+                com.google.protobuf.BoolValueOrBuilder>(
+                getEnableSpokenEmojis(), getParentForChildren(), isClean());
         enableSpokenEmojis_ = null;
       }
       return enableSpokenEmojisBuilder_;
     }
 
-    private boolean enableSpeakerDiarization_ ;
+    private boolean enableSpeakerDiarization_;
     /**
+     *
+     *
      * 
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -4393,15 +4922,19 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @return The enableSpeakerDiarization. */ @java.lang.Override - @java.lang.Deprecated public boolean getEnableSpeakerDiarization() { + @java.lang.Deprecated + public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -4410,18 +4943,22 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setEnableSpeakerDiarization(boolean value) { - + @java.lang.Deprecated + public Builder setEnableSpeakerDiarization(boolean value) { + enableSpeakerDiarization_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -4430,19 +4967,23 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearEnableSpeakerDiarization() { - + @java.lang.Deprecated + public Builder clearEnableSpeakerDiarization() { + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int diarizationSpeakerCount_ ; + private int diarizationSpeakerCount_; /** + * + * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4450,15 +4991,19 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @return The diarizationSpeakerCount. */ @java.lang.Override - @java.lang.Deprecated public int getDiarizationSpeakerCount() { + @java.lang.Deprecated + public int getDiarizationSpeakerCount() { return diarizationSpeakerCount_; } /** + * + * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4466,18 +5011,22 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @param value The diarizationSpeakerCount to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setDiarizationSpeakerCount(int value) { - + @java.lang.Deprecated + public Builder setDiarizationSpeakerCount(int value) { + diarizationSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * If set, specifies the estimated number of speakers in the conversation.
      * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -4485,12 +5034,14 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearDiarizationSpeakerCount() { - + @java.lang.Deprecated + public Builder clearDiarizationSpeakerCount() { + diarizationSpeakerCount_ = 0; onChanged(); return this; @@ -4498,8 +5049,13 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() { private com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarizationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder> diarizationConfigBuilder_; + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder, + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder> + diarizationConfigBuilder_; /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4512,12 +5068,15 @@ public com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ public boolean hasDiarizationConfig() { return diarizationConfigBuilder_ != null || diarizationConfig_ != null; } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4530,16 +5089,21 @@ public boolean hasDiarizationConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; + * * @return The diarizationConfig. */ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarizationConfig() { if (diarizationConfigBuilder_ == null) { - return diarizationConfig_ == null ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_; + return diarizationConfig_ == null + ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() + : diarizationConfig_; } else { return diarizationConfigBuilder_.getMessage(); } } /** + * + * *
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4553,7 +5117,8 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarization
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder setDiarizationConfig(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
+    public Builder setDiarizationConfig(
+        com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -4567,6 +5132,8 @@ public Builder setDiarizationConfig(com.google.cloud.speech.v1p1beta1.SpeakerDia
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4592,6 +5159,8 @@ public Builder setDiarizationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4605,11 +5174,15 @@ public Builder setDiarizationConfig(
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public Builder mergeDiarizationConfig(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
+    public Builder mergeDiarizationConfig(
+        com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig value) {
       if (diarizationConfigBuilder_ == null) {
         if (diarizationConfig_ != null) {
           diarizationConfig_ =
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(diarizationConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder(
+                      diarizationConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           diarizationConfig_ = value;
         }
@@ -4621,6 +5194,8 @@ public Builder mergeDiarizationConfig(com.google.cloud.speech.v1p1beta1.SpeakerD
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4646,6 +5221,8 @@ public Builder clearDiarizationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4659,12 +5236,15 @@ public Builder clearDiarizationConfig() {
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder getDiarizationConfigBuilder() {
-      
+    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder
+        getDiarizationConfigBuilder() {
+
       onChanged();
       return getDiarizationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4678,15 +5258,19 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder getDia
      *
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
-    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder() {
+    public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
+        getDiarizationConfigOrBuilder() {
       if (diarizationConfigBuilder_ != null) {
         return diarizationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return diarizationConfig_ == null ?
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance() : diarizationConfig_;
+        return diarizationConfig_ == null
+            ? com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()
+            : diarizationConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Config to enable speaker diarization and set additional
      * parameters to make diarization better suited for your application.
@@ -4701,14 +5285,17 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDi
      * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig,
+            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder>
         getDiarizationConfigFieldBuilder() {
       if (diarizationConfigBuilder_ == null) {
-        diarizationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder>(
-                getDiarizationConfig(),
-                getParentForChildren(),
-                isClean());
+        diarizationConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig,
+                com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder,
+                com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder>(
+                getDiarizationConfig(), getParentForChildren(), isClean());
         diarizationConfig_ = null;
       }
       return diarizationConfigBuilder_;
@@ -4716,34 +5303,47 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDi
 
     private com.google.cloud.speech.v1p1beta1.RecognitionMetadata metadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.RecognitionMetadata, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder> metadataBuilder_;
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadata,
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder,
+            com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder>
+        metadataBuilder_;
     /**
+     *
+     *
      * 
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Metadata regarding this request.
      * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4764,6 +5364,8 @@ public Builder setMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetadata return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4782,6 +5384,8 @@ public Builder setMetadata( return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4792,7 +5396,9 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -4804,6 +5410,8 @@ public Builder mergeMetadata(com.google.cloud.speech.v1p1beta1.RecognitionMetada return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4822,6 +5430,8 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4829,11 +5439,13 @@ public Builder clearMetadata() { * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; */ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder getMetadataBuilder() { - + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4844,11 +5456,14 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance() + : metadata_; } } /** + * + * *
      * Metadata regarding this request.
      * 
@@ -4856,14 +5471,17 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionMetadata, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionMetadata, + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionMetadata, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionMetadata, + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; @@ -4871,6 +5489,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat private java.lang.Object model_ = ""; /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4926,13 +5546,13 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadat
      * 
* * string model = 13; + * * @return The model. */ public java.lang.String getModel() { java.lang.Object ref = model_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); model_ = s; return s; @@ -4941,6 +5561,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -4996,15 +5618,14 @@ public java.lang.String getModel() {
      * 
* * string model = 13; + * * @return The bytes for model. */ - public com.google.protobuf.ByteString - getModelBytes() { + public com.google.protobuf.ByteString getModelBytes() { java.lang.Object ref = model_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); model_ = b; return b; } else { @@ -5012,6 +5633,8 @@ public java.lang.String getModel() { } } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5067,20 +5690,22 @@ public java.lang.String getModel() {
      * 
* * string model = 13; + * * @param value The model to set. * @return This builder for chaining. */ - public Builder setModel( - java.lang.String value) { + public Builder setModel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + model_ = value; onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5136,15 +5761,18 @@ public Builder setModel(
      * 
* * string model = 13; + * * @return This builder for chaining. */ public Builder clearModel() { - + model_ = getDefaultInstance().getModel(); onChanged(); return this; } /** + * + * *
      * Which model to select for the given request. Select the model
      * best suited to your domain to get best results. If a model is not
@@ -5200,23 +5828,25 @@ public Builder clearModel() {
      * 
* * string model = 13; + * * @param value The bytes for model to set. * @return This builder for chaining. */ - public Builder setModelBytes( - com.google.protobuf.ByteString value) { + public Builder setModelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + model_ = value; onChanged(); return this; } - private boolean useEnhanced_ ; + private boolean useEnhanced_; /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5228,6 +5858,7 @@ public Builder setModelBytes(
      * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ @java.lang.Override @@ -5235,6 +5866,8 @@ public boolean getUseEnhanced() { return useEnhanced_; } /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5246,16 +5879,19 @@ public boolean getUseEnhanced() {
      * 
* * bool use_enhanced = 14; + * * @param value The useEnhanced to set. * @return This builder for chaining. */ public Builder setUseEnhanced(boolean value) { - + useEnhanced_ = value; onChanged(); return this; } /** + * + * *
      * Set to true to use an enhanced model for speech recognition.
      * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -5267,17 +5903,18 @@ public Builder setUseEnhanced(boolean value) {
      * 
* * bool use_enhanced = 14; + * * @return This builder for chaining. */ public Builder clearUseEnhanced() { - + useEnhanced_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5287,12 +5924,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionConfig) private static final com.google.cloud.speech.v1p1beta1.RecognitionConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognitionConfig(); } @@ -5301,16 +5938,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5325,6 +5962,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java similarity index 93% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java index dfc41e54d..f4a4a6f87 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognitionConfigOrBuilder extends +public interface RecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -15,10 +33,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The enum numeric value on the wire for encoding. */ int getEncodingValue(); /** + * + * *
    * Encoding of audio data sent in all `RecognitionAudio` messages.
    * This field is optional for `FLAC` and `WAV` audio files and required
@@ -26,11 +47,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding encoding = 1; + * * @return The encoding. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig.AudioEncoding getEncoding(); /** + * + * *
    * Sample rate in Hertz of the audio data sent in all
    * `RecognitionAudio` messages. Valid values are: 8000-48000.
@@ -42,11 +66,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 sample_rate_hertz = 2; + * * @return The sampleRateHertz. */ int getSampleRateHertz(); /** + * + * *
    * The number of channels in the input audio data.
    * ONLY set this for MULTI-CHANNEL recognition.
@@ -60,11 +87,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 audio_channel_count = 7; + * * @return The audioChannelCount. */ int getAudioChannelCount(); /** + * + * *
    * This needs to be set to `true` explicitly and `audio_channel_count` > 1
    * to get each channel recognized separately. The recognition result will
@@ -75,11 +105,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool enable_separate_recognition_per_channel = 12; + * * @return The enableSeparateRecognitionPerChannel. */ boolean getEnableSeparateRecognitionPerChannel(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -90,10 +123,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Required. The language of the supplied audio as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
@@ -104,12 +140,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * string language_code = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -126,11 +164,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return A list containing the alternativeLanguageCodes. */ - java.util.List - getAlternativeLanguageCodesList(); + java.util.List getAlternativeLanguageCodesList(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -147,10 +187,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @return The count of alternativeLanguageCodes. */ int getAlternativeLanguageCodesCount(); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -167,11 +210,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the element to return. * @return The alternativeLanguageCodes at the given index. */ java.lang.String getAlternativeLanguageCodes(int index); /** + * + * *
    * A list of up to 3 additional
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tags,
@@ -188,13 +234,15 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * repeated string alternative_language_codes = 18; + * * @param index The index of the value to return. * @return The bytes of the alternativeLanguageCodes at the given index. */ - com.google.protobuf.ByteString - getAlternativeLanguageCodesBytes(int index); + com.google.protobuf.ByteString getAlternativeLanguageCodesBytes(int index); /** + * + * *
    * Maximum number of recognition hypotheses to be returned.
    * Specifically, the maximum number of `SpeechRecognitionAlternative` messages
@@ -205,11 +253,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * int32 max_alternatives = 4; + * * @return The maxAlternatives. */ int getMaxAlternatives(); /** + * + * *
    * If set to `true`, the server will attempt to filter out
    * profanities, replacing all but the initial character in each filtered word
@@ -218,11 +269,14 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * bool profanity_filter = 5; + * * @return The profanityFilter. */ boolean getProfanityFilter(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -232,10 +286,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return Whether the adaptation field is set. */ boolean hasAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -245,10 +302,13 @@ public interface RecognitionConfigOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.SpeechAdaptation adaptation = 20; + * * @return The adaptation. */ com.google.cloud.speech.v1p1beta1.SpeechAdaptation getAdaptation(); /** + * + * *
    * Speech adaptation configuration improves the accuracy of speech
    * recognition. For more information, see the [speech
@@ -262,6 +322,8 @@ public interface RecognitionConfigOrBuilder extends
   com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder getAdaptationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -269,11 +331,15 @@ public interface RecognitionConfigOrBuilder extends
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return Whether the transcriptNormalization field is set. */ boolean hasTranscriptNormalization(); /** + * + * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -281,11 +347,15 @@ public interface RecognitionConfigOrBuilder extends
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * + * * @return The transcriptNormalization. */ com.google.cloud.speech.v1p1beta1.TranscriptNormalization getTranscriptNormalization(); /** + * + * *
    * Use transcription normalization to automatically replace parts of the
    * transcript with phrases of your choosing. For StreamingRecognize, this
@@ -293,11 +363,15 @@ public interface RecognitionConfigOrBuilder extends
    * and final transcripts.
    * 
* - * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * .google.cloud.speech.v1p1beta1.TranscriptNormalization transcript_normalization = 24; + * */ - com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder getTranscriptNormalizationOrBuilder(); + com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder + getTranscriptNormalizationOrBuilder(); /** + * + * *
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -308,9 +382,10 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
-      getSpeechContextsList();
+  java.util.List getSpeechContextsList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -323,6 +398,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.SpeechContext getSpeechContexts(int index);
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -335,6 +412,8 @@ public interface RecognitionConfigOrBuilder extends
    */
   int getSpeechContextsCount();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -345,9 +424,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  java.util.List 
+  java.util.List
       getSpeechContextsOrBuilderList();
   /**
+   *
+   *
    * 
    * Array of [SpeechContext][google.cloud.speech.v1p1beta1.SpeechContext].
    * A means to provide context to assist the speech recognition. For more
@@ -358,10 +439,11 @@ public interface RecognitionConfigOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechContext speech_contexts = 6;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If `true`, the top result includes a list of words and
    * the start and end time offsets (timestamps) for those words. If
@@ -370,11 +452,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_time_offsets = 8; + * * @return The enableWordTimeOffsets. */ boolean getEnableWordTimeOffsets(); /** + * + * *
    * If `true`, the top result includes a list of words and the
    * confidence for those words. If `false`, no word-level confidence
@@ -382,11 +467,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_word_confidence = 15; + * * @return The enableWordConfidence. */ boolean getEnableWordConfidence(); /** + * + * *
    * If 'true', adds punctuation to recognition result hypotheses.
    * This feature is only available in select languages. Setting this for
@@ -395,11 +483,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_automatic_punctuation = 11; + * * @return The enableAutomaticPunctuation. */ boolean getEnableAutomaticPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -411,10 +502,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return Whether the enableSpokenPunctuation field is set. */ boolean hasEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -426,10 +520,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_punctuation = 22; + * * @return The enableSpokenPunctuation. */ com.google.protobuf.BoolValue getEnableSpokenPunctuation(); /** + * + * *
    * The spoken punctuation behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -445,6 +542,8 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenPunctuationOrBuilder();
 
   /**
+   *
+   *
    * 
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -454,10 +553,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return Whether the enableSpokenEmojis field is set. */ boolean hasEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -467,10 +569,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.protobuf.BoolValue enable_spoken_emojis = 23; + * * @return The enableSpokenEmojis. */ com.google.protobuf.BoolValue getEnableSpokenEmojis(); /** + * + * *
    * The spoken emoji behavior for the call
    * If not set, uses default behavior based on model of choice
@@ -484,6 +589,8 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
   com.google.protobuf.BoolValueOrBuilder getEnableSpokenEmojisOrBuilder();
 
   /**
+   *
+   *
    * 
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -492,13 +599,17 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool enable_speaker_diarization = 16 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.enable_speaker_diarization is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=378 * @return The enableSpeakerDiarization. */ - @java.lang.Deprecated boolean getEnableSpeakerDiarization(); + @java.lang.Deprecated + boolean getEnableSpeakerDiarization(); /** + * + * *
    * If set, specifies the estimated number of speakers in the conversation.
    * Defaults to '2'. Ignored unless enable_speaker_diarization is set to true.
@@ -506,13 +617,17 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * int32 diarization_speaker_count = 17 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionConfig.diarization_speaker_count is + * deprecated. See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=383 * @return The diarizationSpeakerCount. */ - @java.lang.Deprecated int getDiarizationSpeakerCount(); + @java.lang.Deprecated + int getDiarizationSpeakerCount(); /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -525,10 +640,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; + * * @return Whether the diarizationConfig field is set. */ boolean hasDiarizationConfig(); /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -541,10 +659,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19; + * * @return The diarizationConfig. */ com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDiarizationConfig(); /** + * + * *
    * Config to enable speaker diarization and set additional
    * parameters to make diarization better suited for your application.
@@ -558,27 +679,36 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    *
    * .google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig diarization_config = 19;
    */
-  com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder getDiarizationConfigOrBuilder();
+  com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder
+      getDiarizationConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Metadata regarding this request.
    * 
* * .google.cloud.speech.v1p1beta1.RecognitionMetadata metadata = 9; + * * @return The metadata. */ com.google.cloud.speech.v1p1beta1.RecognitionMetadata getMetadata(); /** + * + * *
    * Metadata regarding this request.
    * 
@@ -588,6 +718,8 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder getMetadataOrBuilder(); /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -643,10 +775,13 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * string model = 13; + * * @return The model. */ java.lang.String getModel(); /** + * + * *
    * Which model to select for the given request. Select the model
    * best suited to your domain to get best results. If a model is not
@@ -702,12 +837,14 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * string model = 13; + * * @return The bytes for model. */ - com.google.protobuf.ByteString - getModelBytes(); + com.google.protobuf.ByteString getModelBytes(); /** + * + * *
    * Set to true to use an enhanced model for speech recognition.
    * If `use_enhanced` is set to true and the `model` field is not set, then
@@ -719,6 +856,7 @@ com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder getSpeechContextsOrBuil
    * 
* * bool use_enhanced = 14; + * * @return The useEnhanced. */ boolean getUseEnhanced(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java index 4a666fd4c..810a2adaa 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadata.java @@ -1,24 +1,43 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Description of audio data to be recognized.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ -@java.lang.Deprecated public final class RecognitionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +@java.lang.Deprecated +public final class RecognitionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognitionMetadata) RecognitionMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognitionMetadata.newBuilder() to construct. private RecognitionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private RecognitionMetadata() { interactionType_ = 0; microphoneDistance_ = 0; @@ -31,16 +50,15 @@ private RecognitionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognitionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognitionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -59,65 +77,72 @@ private RecognitionMetadata( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); - - interactionType_ = rawValue; - break; - } - case 24: { + case 8: + { + int rawValue = input.readEnum(); - industryNaicsCodeOfAudio_ = input.readUInt32(); - break; - } - case 32: { - int rawValue = input.readEnum(); - - microphoneDistance_ = rawValue; - break; - } - case 40: { - int rawValue = input.readEnum(); + interactionType_ = rawValue; + break; + } + case 24: + { + industryNaicsCodeOfAudio_ = input.readUInt32(); + break; + } + case 32: + { + int rawValue = input.readEnum(); - originalMediaType_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); + microphoneDistance_ = rawValue; + break; + } + case 40: + { + int rawValue = input.readEnum(); - recordingDeviceType_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + originalMediaType_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); - recordingDeviceName_ = s; - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); + recordingDeviceType_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - originalMimeType_ = s; - break; - } - case 72: { + recordingDeviceName_ = s; + break; + } + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); - obfuscatedId_ = input.readInt64(); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + originalMimeType_ = s; + break; + } + case 72: + { + obfuscatedId_ = input.readInt64(); + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - audioTopic_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + audioTopic_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -125,27 +150,31 @@ private RecognitionMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } /** + * + * *
    * Use case categories that the audio recognition request can be described
    * by.
@@ -153,9 +182,10 @@ private RecognitionMetadata(
    *
    * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType}
    */
-  public enum InteractionType
-      implements com.google.protobuf.ProtocolMessageEnum {
+  public enum InteractionType implements com.google.protobuf.ProtocolMessageEnum {
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -165,6 +195,8 @@ public enum InteractionType
      */
     INTERACTION_TYPE_UNSPECIFIED(0),
     /**
+     *
+     *
      * 
      * Multiple people in a conversation or discussion. For example in a
      * meeting with two or more people actively participating. Typically
@@ -176,6 +208,8 @@ public enum InteractionType
      */
     DISCUSSION(1),
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -185,6 +219,8 @@ public enum InteractionType
      */
     PRESENTATION(2),
     /**
+     *
+     *
      * 
      * A phone-call or video-conference in which two or more people, who are
      * not in the same room, are actively participating.
@@ -194,6 +230,8 @@ public enum InteractionType
      */
     PHONE_CALL(3),
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -202,6 +240,8 @@ public enum InteractionType */ VOICEMAIL(4), /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -210,6 +250,8 @@ public enum InteractionType */ PROFESSIONALLY_PRODUCED(5), /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -218,6 +260,8 @@ public enum InteractionType */ VOICE_SEARCH(6), /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -226,6 +270,8 @@ public enum InteractionType */ VOICE_COMMAND(7), /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -238,6 +284,8 @@ public enum InteractionType
     ;
 
     /**
+     *
+     *
      * 
      * Use case is either unknown or is something other than one of the other
      * values below.
@@ -247,6 +295,8 @@ public enum InteractionType
      */
     public static final int INTERACTION_TYPE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Multiple people in a conversation or discussion. For example in a
      * meeting with two or more people actively participating. Typically
@@ -258,6 +308,8 @@ public enum InteractionType
      */
     public static final int DISCUSSION_VALUE = 1;
     /**
+     *
+     *
      * 
      * One or more persons lecturing or presenting to others, mostly
      * uninterrupted.
@@ -267,6 +319,8 @@ public enum InteractionType
      */
     public static final int PRESENTATION_VALUE = 2;
     /**
+     *
+     *
      * 
      * A phone-call or video-conference in which two or more people, who are
      * not in the same room, are actively participating.
@@ -276,6 +330,8 @@ public enum InteractionType
      */
     public static final int PHONE_CALL_VALUE = 3;
     /**
+     *
+     *
      * 
      * A recorded message intended for another person to listen to.
      * 
@@ -284,6 +340,8 @@ public enum InteractionType */ public static final int VOICEMAIL_VALUE = 4; /** + * + * *
      * Professionally produced audio (eg. TV Show, Podcast).
      * 
@@ -292,6 +350,8 @@ public enum InteractionType */ public static final int PROFESSIONALLY_PRODUCED_VALUE = 5; /** + * + * *
      * Transcribe spoken questions and queries into text.
      * 
@@ -300,6 +360,8 @@ public enum InteractionType */ public static final int VOICE_SEARCH_VALUE = 6; /** + * + * *
      * Transcribe voice commands, such as for controlling a device.
      * 
@@ -308,6 +370,8 @@ public enum InteractionType */ public static final int VOICE_COMMAND_VALUE = 7; /** + * + * *
      * Transcribe speech to text to create a written document, such as a
      * text-message, email or report.
@@ -317,7 +381,6 @@ public enum InteractionType
      */
     public static final int DICTATION_VALUE = 8;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -342,46 +405,57 @@ public static InteractionType valueOf(int value) {
      */
     public static InteractionType forNumber(int value) {
       switch (value) {
-        case 0: return INTERACTION_TYPE_UNSPECIFIED;
-        case 1: return DISCUSSION;
-        case 2: return PRESENTATION;
-        case 3: return PHONE_CALL;
-        case 4: return VOICEMAIL;
-        case 5: return PROFESSIONALLY_PRODUCED;
-        case 6: return VOICE_SEARCH;
-        case 7: return VOICE_COMMAND;
-        case 8: return DICTATION;
-        default: return null;
+        case 0:
+          return INTERACTION_TYPE_UNSPECIFIED;
+        case 1:
+          return DISCUSSION;
+        case 2:
+          return PRESENTATION;
+        case 3:
+          return PHONE_CALL;
+        case 4:
+          return VOICEMAIL;
+        case 5:
+          return PROFESSIONALLY_PRODUCED;
+        case 6:
+          return VOICE_SEARCH;
+        case 7:
+          return VOICE_COMMAND;
+        case 8:
+          return DICTATION;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        InteractionType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public InteractionType findValueByNumber(int number) {
-              return InteractionType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public InteractionType findValueByNumber(int number) {
+                return InteractionType.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final InteractionType[] VALUES = values();
@@ -389,8 +463,7 @@ public InteractionType findValueByNumber(int number) {
     public static InteractionType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -408,15 +481,18 @@ private InteractionType(int value) {
   }
 
   /**
+   *
+   *
    * 
    * Enumerates the types of capture settings describing an audio file.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance} */ - public enum MicrophoneDistance - implements com.google.protobuf.ProtocolMessageEnum { + public enum MicrophoneDistance implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Audio type is not known.
      * 
@@ -425,6 +501,8 @@ public enum MicrophoneDistance */ MICROPHONE_DISTANCE_UNSPECIFIED(0), /** + * + * *
      * The audio was captured from a closely placed microphone. Eg. phone,
      * dictaphone, or handheld microphone. Generally if there speaker is within
@@ -435,6 +513,8 @@ public enum MicrophoneDistance
      */
     NEARFIELD(1),
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -443,6 +523,8 @@ public enum MicrophoneDistance */ MIDFIELD(2), /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -454,6 +536,8 @@ public enum MicrophoneDistance ; /** + * + * *
      * Audio type is not known.
      * 
@@ -462,6 +546,8 @@ public enum MicrophoneDistance */ public static final int MICROPHONE_DISTANCE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The audio was captured from a closely placed microphone. Eg. phone,
      * dictaphone, or handheld microphone. Generally if there speaker is within
@@ -472,6 +558,8 @@ public enum MicrophoneDistance
      */
     public static final int NEARFIELD_VALUE = 1;
     /**
+     *
+     *
      * 
      * The speaker if within 3 meters of the microphone.
      * 
@@ -480,6 +568,8 @@ public enum MicrophoneDistance */ public static final int MIDFIELD_VALUE = 2; /** + * + * *
      * The speaker is more than 3 meters away from the microphone.
      * 
@@ -488,7 +578,6 @@ public enum MicrophoneDistance */ public static final int FARFIELD_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -513,11 +602,16 @@ public static MicrophoneDistance valueOf(int value) { */ public static MicrophoneDistance forNumber(int value) { switch (value) { - case 0: return MICROPHONE_DISTANCE_UNSPECIFIED; - case 1: return NEARFIELD; - case 2: return MIDFIELD; - case 3: return FARFIELD; - default: return null; + case 0: + return MICROPHONE_DISTANCE_UNSPECIFIED; + case 1: + return NEARFIELD; + case 2: + return MIDFIELD; + case 3: + return FARFIELD; + default: + return null; } } @@ -525,29 +619,31 @@ public static MicrophoneDistance forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - MicrophoneDistance> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MicrophoneDistance findValueByNumber(int number) { - return MicrophoneDistance.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MicrophoneDistance findValueByNumber(int number) { + return MicrophoneDistance.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor() + .getEnumTypes() + .get(1); } private static final MicrophoneDistance[] VALUES = values(); @@ -555,8 +651,7 @@ public MicrophoneDistance findValueByNumber(int number) { public static MicrophoneDistance valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -574,15 +669,18 @@ private MicrophoneDistance(int value) { } /** + * + * *
    * The original media the speech was recorded on.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType} */ - public enum OriginalMediaType - implements com.google.protobuf.ProtocolMessageEnum { + public enum OriginalMediaType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * Unknown original media type.
      * 
@@ -591,6 +689,8 @@ public enum OriginalMediaType */ ORIGINAL_MEDIA_TYPE_UNSPECIFIED(0), /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -599,6 +699,8 @@ public enum OriginalMediaType */ AUDIO(1), /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -610,6 +712,8 @@ public enum OriginalMediaType ; /** + * + * *
      * Unknown original media type.
      * 
@@ -618,6 +722,8 @@ public enum OriginalMediaType */ public static final int ORIGINAL_MEDIA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The speech data is an audio recording.
      * 
@@ -626,6 +732,8 @@ public enum OriginalMediaType */ public static final int AUDIO_VALUE = 1; /** + * + * *
      * The speech data originally recorded on a video.
      * 
@@ -634,7 +742,6 @@ public enum OriginalMediaType */ public static final int VIDEO_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -659,10 +766,14 @@ public static OriginalMediaType valueOf(int value) { */ public static OriginalMediaType forNumber(int value) { switch (value) { - case 0: return ORIGINAL_MEDIA_TYPE_UNSPECIFIED; - case 1: return AUDIO; - case 2: return VIDEO; - default: return null; + case 0: + return ORIGINAL_MEDIA_TYPE_UNSPECIFIED; + case 1: + return AUDIO; + case 2: + return VIDEO; + default: + return null; } } @@ -670,29 +781,31 @@ public static OriginalMediaType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - OriginalMediaType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OriginalMediaType findValueByNumber(int number) { - return OriginalMediaType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OriginalMediaType findValueByNumber(int number) { + return OriginalMediaType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor() + .getEnumTypes() + .get(2); } private static final OriginalMediaType[] VALUES = values(); @@ -700,8 +813,7 @@ public OriginalMediaType findValueByNumber(int number) { public static OriginalMediaType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -719,15 +831,18 @@ private OriginalMediaType(int value) { } /** + * + * *
    * The type of device the speech was recorded with.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType} */ - public enum RecordingDeviceType - implements com.google.protobuf.ProtocolMessageEnum { + public enum RecordingDeviceType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * The recording device is unknown.
      * 
@@ -736,6 +851,8 @@ public enum RecordingDeviceType */ RECORDING_DEVICE_TYPE_UNSPECIFIED(0), /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -744,6 +861,8 @@ public enum RecordingDeviceType */ SMARTPHONE(1), /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -752,6 +871,8 @@ public enum RecordingDeviceType */ PC(2), /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -760,6 +881,8 @@ public enum RecordingDeviceType */ PHONE_LINE(3), /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -768,6 +891,8 @@ public enum RecordingDeviceType */ VEHICLE(4), /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -776,6 +901,8 @@ public enum RecordingDeviceType */ OTHER_OUTDOOR_DEVICE(5), /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -787,6 +914,8 @@ public enum RecordingDeviceType ; /** + * + * *
      * The recording device is unknown.
      * 
@@ -795,6 +924,8 @@ public enum RecordingDeviceType */ public static final int RECORDING_DEVICE_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Speech was recorded on a smartphone.
      * 
@@ -803,6 +934,8 @@ public enum RecordingDeviceType */ public static final int SMARTPHONE_VALUE = 1; /** + * + * *
      * Speech was recorded using a personal computer or tablet.
      * 
@@ -811,6 +944,8 @@ public enum RecordingDeviceType */ public static final int PC_VALUE = 2; /** + * + * *
      * Speech was recorded over a phone line.
      * 
@@ -819,6 +954,8 @@ public enum RecordingDeviceType */ public static final int PHONE_LINE_VALUE = 3; /** + * + * *
      * Speech was recorded in a vehicle.
      * 
@@ -827,6 +964,8 @@ public enum RecordingDeviceType */ public static final int VEHICLE_VALUE = 4; /** + * + * *
      * Speech was recorded outdoors.
      * 
@@ -835,6 +974,8 @@ public enum RecordingDeviceType */ public static final int OTHER_OUTDOOR_DEVICE_VALUE = 5; /** + * + * *
      * Speech was recorded indoors.
      * 
@@ -843,7 +984,6 @@ public enum RecordingDeviceType */ public static final int OTHER_INDOOR_DEVICE_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -868,14 +1008,22 @@ public static RecordingDeviceType valueOf(int value) { */ public static RecordingDeviceType forNumber(int value) { switch (value) { - case 0: return RECORDING_DEVICE_TYPE_UNSPECIFIED; - case 1: return SMARTPHONE; - case 2: return PC; - case 3: return PHONE_LINE; - case 4: return VEHICLE; - case 5: return OTHER_OUTDOOR_DEVICE; - case 6: return OTHER_INDOOR_DEVICE; - default: return null; + case 0: + return RECORDING_DEVICE_TYPE_UNSPECIFIED; + case 1: + return SMARTPHONE; + case 2: + return PC; + case 3: + return PHONE_LINE; + case 4: + return VEHICLE; + case 5: + return OTHER_OUTDOOR_DEVICE; + case 6: + return OTHER_INDOOR_DEVICE; + default: + return null; } } @@ -883,29 +1031,31 @@ public static RecordingDeviceType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - RecordingDeviceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RecordingDeviceType findValueByNumber(int number) { - return RecordingDeviceType.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RecordingDeviceType findValueByNumber(int number) { + return RecordingDeviceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor().getEnumTypes().get(3); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDescriptor() + .getEnumTypes() + .get(3); } private static final RecordingDeviceType[] VALUES = values(); @@ -913,8 +1063,7 @@ public RecordingDeviceType findValueByNumber(int number) { public static RecordingDeviceType valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -934,33 +1083,50 @@ private RecordingDeviceType(int value) { public static final int INTERACTION_TYPE_FIELD_NUMBER = 1; private int interactionType_; /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( + interactionType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } public static final int INDUSTRY_NAICS_CODE_OF_AUDIO_FIELD_NUMBER = 3; private int industryNaicsCodeOfAudio_; /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -969,6 +1135,7 @@ private RecordingDeviceType(int value) {
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -979,87 +1146,140 @@ public int getIndustryNaicsCodeOfAudio() { public static final int MICROPHONE_DISTANCE_FIELD_NUMBER = 4; private int microphoneDistance_; /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } public static final int ORIGINAL_MEDIA_TYPE_FIELD_NUMBER = 5; private int originalMediaType_; /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_TYPE_FIELD_NUMBER = 6; private int recordingDeviceType_; /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } public static final int RECORDING_DEVICE_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object recordingDeviceName_; /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1067,6 +1287,7 @@ public int getIndustryNaicsCodeOfAudio() {
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ @java.lang.Override @@ -1075,14 +1296,15 @@ public java.lang.String getRecordingDeviceName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordingDeviceName_ = s; return s; } } /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -1090,16 +1312,15 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string recording_device_name = 7; + * * @return The bytes for recordingDeviceName. */ @java.lang.Override - public com.google.protobuf.ByteString - getRecordingDeviceNameBytes() { + public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { java.lang.Object ref = recordingDeviceName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recordingDeviceName_ = b; return b; } else { @@ -1110,6 +1331,8 @@ public java.lang.String getRecordingDeviceName() { public static final int ORIGINAL_MIME_TYPE_FIELD_NUMBER = 8; private volatile java.lang.Object originalMimeType_; /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1118,6 +1341,7 @@ public java.lang.String getRecordingDeviceName() {
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ @java.lang.Override @@ -1126,14 +1350,15 @@ public java.lang.String getOriginalMimeType() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalMimeType_ = s; return s; } } /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -1142,16 +1367,15 @@ public java.lang.String getOriginalMimeType() {
    * 
* * string original_mime_type = 8; + * * @return The bytes for originalMimeType. */ @java.lang.Override - public com.google.protobuf.ByteString - getOriginalMimeTypeBytes() { + public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { java.lang.Object ref = originalMimeType_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalMimeType_ = b; return b; } else { @@ -1162,30 +1386,37 @@ public java.lang.String getOriginalMimeType() { public static final int OBFUSCATED_ID_FIELD_NUMBER = 9; private long obfuscatedId_; /** + * + * *
    * Obfuscated (privacy-protected) ID of the user, to identify number of
    * unique users using the service.
    * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See + * google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @return The obfuscatedId. */ @java.lang.Override - @java.lang.Deprecated public long getObfuscatedId() { + @java.lang.Deprecated + public long getObfuscatedId() { return obfuscatedId_; } public static final int AUDIO_TOPIC_FIELD_NUMBER = 10; private volatile java.lang.Object audioTopic_; /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ @java.lang.Override @@ -1194,30 +1425,30 @@ public java.lang.String getAudioTopic() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audioTopic_ = s; return s; } } /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ @java.lang.Override - public com.google.protobuf.ByteString - getAudioTopicBytes() { + public com.google.protobuf.ByteString getAudioTopicBytes() { java.lang.Object ref = audioTopic_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audioTopic_ = b; return b; } else { @@ -1226,6 +1457,7 @@ public java.lang.String getAudioTopic() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1237,21 +1469,32 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (interactionType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.INTERACTION_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (interactionType_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + .INTERACTION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(1, interactionType_); } if (industryNaicsCodeOfAudio_ != 0) { output.writeUInt32(3, industryNaicsCodeOfAudio_); } - if (microphoneDistance_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.MICROPHONE_DISTANCE_UNSPECIFIED.getNumber()) { + if (microphoneDistance_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + .MICROPHONE_DISTANCE_UNSPECIFIED + .getNumber()) { output.writeEnum(4, microphoneDistance_); } - if (originalMediaType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.ORIGINAL_MEDIA_TYPE_UNSPECIFIED.getNumber()) { + if (originalMediaType_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + .ORIGINAL_MEDIA_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(5, originalMediaType_); } - if (recordingDeviceType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.RECORDING_DEVICE_TYPE_UNSPECIFIED.getNumber()) { + if (recordingDeviceType_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + .RECORDING_DEVICE_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, recordingDeviceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordingDeviceName_)) { @@ -1275,25 +1518,32 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (interactionType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.INTERACTION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, interactionType_); + if (interactionType_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + .INTERACTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, interactionType_); } if (industryNaicsCodeOfAudio_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeUInt32Size(3, industryNaicsCodeOfAudio_); - } - if (microphoneDistance_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.MICROPHONE_DISTANCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, microphoneDistance_); - } - if (originalMediaType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.ORIGINAL_MEDIA_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, originalMediaType_); - } - if (recordingDeviceType_ != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.RECORDING_DEVICE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, recordingDeviceType_); + size += com.google.protobuf.CodedOutputStream.computeUInt32Size(3, industryNaicsCodeOfAudio_); + } + if (microphoneDistance_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + .MICROPHONE_DISTANCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, microphoneDistance_); + } + if (originalMediaType_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + .ORIGINAL_MEDIA_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, originalMediaType_); + } + if (recordingDeviceType_ + != com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + .RECORDING_DEVICE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, recordingDeviceType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordingDeviceName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, recordingDeviceName_); @@ -1302,8 +1552,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, originalMimeType_); } if (obfuscatedId_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(9, obfuscatedId_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, obfuscatedId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(audioTopic_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, audioTopic_); @@ -1316,27 +1565,23 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata other = + (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) obj; if (interactionType_ != other.interactionType_) return false; - if (getIndustryNaicsCodeOfAudio() - != other.getIndustryNaicsCodeOfAudio()) return false; + if (getIndustryNaicsCodeOfAudio() != other.getIndustryNaicsCodeOfAudio()) return false; if (microphoneDistance_ != other.microphoneDistance_) return false; if (originalMediaType_ != other.originalMediaType_) return false; if (recordingDeviceType_ != other.recordingDeviceType_) return false; - if (!getRecordingDeviceName() - .equals(other.getRecordingDeviceName())) return false; - if (!getOriginalMimeType() - .equals(other.getOriginalMimeType())) return false; - if (getObfuscatedId() - != other.getObfuscatedId()) return false; - if (!getAudioTopic() - .equals(other.getAudioTopic())) return false; + if (!getRecordingDeviceName().equals(other.getRecordingDeviceName())) return false; + if (!getOriginalMimeType().equals(other.getOriginalMimeType())) return false; + if (getObfuscatedId() != other.getObfuscatedId()) return false; + if (!getAudioTopic().equals(other.getAudioTopic())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1363,8 +1608,7 @@ public int hashCode() { hash = (37 * hash) + ORIGINAL_MIME_TYPE_FIELD_NUMBER; hash = (53 * hash) + getOriginalMimeType().hashCode(); hash = (37 * hash) + OBFUSCATED_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getObfuscatedId()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getObfuscatedId()); hash = (37 * hash) + AUDIO_TOPIC_FIELD_NUMBER; hash = (53 * hash) + getAudioTopic().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -1373,117 +1617,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Description of audio data to be recognized.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognitionMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognitionMetadata) com.google.cloud.speech.v1p1beta1.RecognitionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.class, + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognitionMetadata.newBuilder() @@ -1491,16 +1745,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -1526,9 +1779,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; } @java.lang.Override @@ -1547,7 +1800,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata result = + new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(this); result.interactionType_ = interactionType_; result.industryNaicsCodeOfAudio_ = industryNaicsCodeOfAudio_; result.microphoneDistance_ = microphoneDistance_; @@ -1565,38 +1819,39 @@ public com.google.cloud.speech.v1p1beta1.RecognitionMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognitionMetadata) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognitionMetadata) other); } else { super.mergeFrom(other); return this; @@ -1604,7 +1859,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognitionMetadata other) { - if (other == com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.RecognitionMetadata.getDefaultInstance()) + return this; if (other.interactionType_ != 0) { setInteractionTypeValue(other.getInteractionTypeValue()); } @@ -1654,7 +1910,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.RecognitionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1666,80 +1923,114 @@ public Builder mergeFrom( private int interactionType_ = 0; /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ - @java.lang.Override public int getInteractionTypeValue() { + @java.lang.Override + public int getInteractionTypeValue() { return interactionType_; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The enum numeric value on the wire for interactionType to set. * @return This builder for chaining. */ public Builder setInteractionTypeValue(int value) { - + interactionType_ = value; onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType + getInteractionType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf(interactionType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.valueOf( + interactionType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType.UNRECOGNIZED + : result; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @param value The interactionType to set. * @return This builder for chaining. */ - public Builder setInteractionType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { + public Builder setInteractionType( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType value) { if (value == null) { throw new NullPointerException(); } - + interactionType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The use case most closely describing the audio content to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return This builder for chaining. */ public Builder clearInteractionType() { - + interactionType_ = 0; onChanged(); return this; } - private int industryNaicsCodeOfAudio_ ; + private int industryNaicsCodeOfAudio_; /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1748,6 +2039,7 @@ public Builder clearInteractionType() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ @java.lang.Override @@ -1755,6 +2047,8 @@ public int getIndustryNaicsCodeOfAudio() { return industryNaicsCodeOfAudio_; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1763,16 +2057,19 @@ public int getIndustryNaicsCodeOfAudio() {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @param value The industryNaicsCodeOfAudio to set. * @return This builder for chaining. */ public Builder setIndustryNaicsCodeOfAudio(int value) { - + industryNaicsCodeOfAudio_ = value; onChanged(); return this; } /** + * + * *
      * The industry vertical to which this speech recognition request most
      * closely applies. This is most indicative of the topics contained
@@ -1781,10 +2078,11 @@ public Builder setIndustryNaicsCodeOfAudio(int value) {
      * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return This builder for chaining. */ public Builder clearIndustryNaicsCodeOfAudio() { - + industryNaicsCodeOfAudio_ = 0; onChanged(); return this; @@ -1792,73 +2090,105 @@ public Builder clearIndustryNaicsCodeOfAudio() { private int microphoneDistance_ = 0; /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ - @java.lang.Override public int getMicrophoneDistanceValue() { + @java.lang.Override + public int getMicrophoneDistanceValue() { return microphoneDistance_; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The enum numeric value on the wire for microphoneDistance to set. * @return This builder for chaining. */ public Builder setMicrophoneDistanceValue(int value) { - + microphoneDistance_ = value; onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance + getMicrophoneDistance() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf(microphoneDistance_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.valueOf( + microphoneDistance_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance.UNRECOGNIZED + : result; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @param value The microphoneDistance to set. * @return This builder for chaining. */ - public Builder setMicrophoneDistance(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { + public Builder setMicrophoneDistance( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance value) { if (value == null) { throw new NullPointerException(); } - + microphoneDistance_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The audio type that most closely describes the audio being recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return This builder for chaining. */ public Builder clearMicrophoneDistance() { - + microphoneDistance_ = 0; onChanged(); return this; @@ -1866,73 +2196,105 @@ public Builder clearMicrophoneDistance() { private int originalMediaType_ = 0; /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ - @java.lang.Override public int getOriginalMediaTypeValue() { + @java.lang.Override + public int getOriginalMediaTypeValue() { return originalMediaType_; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The enum numeric value on the wire for originalMediaType to set. * @return This builder for chaining. */ public Builder setOriginalMediaTypeValue(int value) { - + originalMediaType_ = value; onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType + getOriginalMediaType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf(originalMediaType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.valueOf( + originalMediaType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType.UNRECOGNIZED + : result; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @param value The originalMediaType to set. * @return This builder for chaining. */ - public Builder setOriginalMediaType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { + public Builder setOriginalMediaType( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType value) { if (value == null) { throw new NullPointerException(); } - + originalMediaType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The original media the speech was recorded on.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return This builder for chaining. */ public Builder clearOriginalMediaType() { - + originalMediaType_ = 0; onChanged(); return this; @@ -1940,73 +2302,105 @@ public Builder clearOriginalMediaType() { private int recordingDeviceType_ = 0; /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ - @java.lang.Override public int getRecordingDeviceTypeValue() { + @java.lang.Override + public int getRecordingDeviceTypeValue() { return recordingDeviceType_; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The enum numeric value on the wire for recordingDeviceType to set. * @return This builder for chaining. */ public Builder setRecordingDeviceTypeValue(int value) { - + recordingDeviceType_ = value; onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType() { + public com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf(recordingDeviceType_); - return result == null ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType result = + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.valueOf( + recordingDeviceType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType.UNRECOGNIZED + : result; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @param value The recordingDeviceType to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceType(com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { + public Builder setRecordingDeviceType( + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType value) { if (value == null) { throw new NullPointerException(); } - + recordingDeviceType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The type of device the speech was recorded with.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return This builder for chaining. */ public Builder clearRecordingDeviceType() { - + recordingDeviceType_ = 0; onChanged(); return this; @@ -2014,6 +2408,8 @@ public Builder clearRecordingDeviceType() { private java.lang.Object recordingDeviceName_ = ""; /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2021,13 +2417,13 @@ public Builder clearRecordingDeviceType() {
      * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ public java.lang.String getRecordingDeviceName() { java.lang.Object ref = recordingDeviceName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); recordingDeviceName_ = s; return s; @@ -2036,6 +2432,8 @@ public java.lang.String getRecordingDeviceName() { } } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2043,15 +2441,14 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @return The bytes for recordingDeviceName. */ - public com.google.protobuf.ByteString - getRecordingDeviceNameBytes() { + public com.google.protobuf.ByteString getRecordingDeviceNameBytes() { java.lang.Object ref = recordingDeviceName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); recordingDeviceName_ = b; return b; } else { @@ -2059,6 +2456,8 @@ public java.lang.String getRecordingDeviceName() { } } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2066,20 +2465,22 @@ public java.lang.String getRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceName( - java.lang.String value) { + public Builder setRecordingDeviceName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + recordingDeviceName_ = value; onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2087,15 +2488,18 @@ public Builder setRecordingDeviceName(
      * 
* * string recording_device_name = 7; + * * @return This builder for chaining. */ public Builder clearRecordingDeviceName() { - + recordingDeviceName_ = getDefaultInstance().getRecordingDeviceName(); onChanged(); return this; } /** + * + * *
      * The device used to make the recording.  Examples 'Nexus 5X' or
      * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -2103,16 +2507,16 @@ public Builder clearRecordingDeviceName() {
      * 
* * string recording_device_name = 7; + * * @param value The bytes for recordingDeviceName to set. * @return This builder for chaining. */ - public Builder setRecordingDeviceNameBytes( - com.google.protobuf.ByteString value) { + public Builder setRecordingDeviceNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + recordingDeviceName_ = value; onChanged(); return this; @@ -2120,6 +2524,8 @@ public Builder setRecordingDeviceNameBytes( private java.lang.Object originalMimeType_ = ""; /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2128,13 +2534,13 @@ public Builder setRecordingDeviceNameBytes(
      * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ public java.lang.String getOriginalMimeType() { java.lang.Object ref = originalMimeType_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); originalMimeType_ = s; return s; @@ -2143,6 +2549,8 @@ public java.lang.String getOriginalMimeType() { } } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2151,15 +2559,14 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @return The bytes for originalMimeType. */ - public com.google.protobuf.ByteString - getOriginalMimeTypeBytes() { + public com.google.protobuf.ByteString getOriginalMimeTypeBytes() { java.lang.Object ref = originalMimeType_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); originalMimeType_ = b; return b; } else { @@ -2167,6 +2574,8 @@ public java.lang.String getOriginalMimeType() { } } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2175,20 +2584,22 @@ public java.lang.String getOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeType( - java.lang.String value) { + public Builder setOriginalMimeType(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + originalMimeType_ = value; onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2197,15 +2608,18 @@ public Builder setOriginalMimeType(
      * 
* * string original_mime_type = 8; + * * @return This builder for chaining. */ public Builder clearOriginalMimeType() { - + originalMimeType_ = getDefaultInstance().getOriginalMimeType(); onChanged(); return this; } /** + * + * *
      * Mime type of the original audio file.  For example `audio/m4a`,
      * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -2214,68 +2628,80 @@ public Builder clearOriginalMimeType() {
      * 
* * string original_mime_type = 8; + * * @param value The bytes for originalMimeType to set. * @return This builder for chaining. */ - public Builder setOriginalMimeTypeBytes( - com.google.protobuf.ByteString value) { + public Builder setOriginalMimeTypeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + originalMimeType_ = value; onChanged(); return this; } - private long obfuscatedId_ ; + private long obfuscatedId_; /** + * + * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; + * * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @return The obfuscatedId. */ @java.lang.Override - @java.lang.Deprecated public long getObfuscatedId() { + @java.lang.Deprecated + public long getObfuscatedId() { return obfuscatedId_; } /** + * + * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; + * * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @param value The obfuscatedId to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setObfuscatedId(long value) { - + @java.lang.Deprecated + public Builder setObfuscatedId(long value) { + obfuscatedId_ = value; onChanged(); return this; } /** + * + * *
      * Obfuscated (privacy-protected) ID of the user, to identify number of
      * unique users using the service.
      * 
* * int64 obfuscated_id = 9 [deprecated = true]; + * * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearObfuscatedId() { - + @java.lang.Deprecated + public Builder clearObfuscatedId() { + obfuscatedId_ = 0L; onChanged(); return this; @@ -2283,19 +2709,21 @@ public Builder setOriginalMimeTypeBytes( private java.lang.Object audioTopic_ = ""; /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return The audioTopic. */ public java.lang.String getAudioTopic() { java.lang.Object ref = audioTopic_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); audioTopic_ = s; return s; @@ -2304,21 +2732,22 @@ public java.lang.String getAudioTopic() { } } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ - public com.google.protobuf.ByteString - getAudioTopicBytes() { + public com.google.protobuf.ByteString getAudioTopicBytes() { java.lang.Object ref = audioTopic_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); audioTopic_ = b; return b; } else { @@ -2326,64 +2755,71 @@ public java.lang.String getAudioTopic() { } } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopic( - java.lang.String value) { + public Builder setAudioTopic(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + audioTopic_ = value; onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @return This builder for chaining. */ public Builder clearAudioTopic() { - + audioTopic_ = getDefaultInstance().getAudioTopic(); onChanged(); return this; } /** + * + * *
      * Description of the content. Eg. "Recordings of federal supreme court
      * hearings from 2012".
      * 
* * string audio_topic = 10; + * * @param value The bytes for audioTopic to set. * @return This builder for chaining. */ - public Builder setAudioTopicBytes( - com.google.protobuf.ByteString value) { + public Builder setAudioTopicBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + audioTopic_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2393,12 +2829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognitionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognitionMetadata) private static final com.google.cloud.speech.v1p1beta1.RecognitionMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognitionMetadata(); } @@ -2407,16 +2843,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognitionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognitionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognitionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognitionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2431,6 +2867,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognitionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java similarity index 69% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java index 64e8e2e34..cebde2a8f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognitionMetadataOrBuilder.java @@ -1,32 +1,59 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -@java.lang.Deprecated public interface RecognitionMetadataOrBuilder extends +@java.lang.Deprecated +public interface RecognitionMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognitionMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The enum numeric value on the wire for interactionType. */ int getInteractionTypeValue(); /** + * + * *
    * The use case most closely describing the audio content to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType interaction_type = 1; + * + * * @return The interactionType. */ com.google.cloud.speech.v1p1beta1.RecognitionMetadata.InteractionType getInteractionType(); /** + * + * *
    * The industry vertical to which this speech recognition request most
    * closely applies. This is most indicative of the topics contained
@@ -35,68 +62,102 @@
    * 
* * uint32 industry_naics_code_of_audio = 3; + * * @return The industryNaicsCodeOfAudio. */ int getIndustryNaicsCodeOfAudio(); /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The enum numeric value on the wire for microphoneDistance. */ int getMicrophoneDistanceValue(); /** + * + * *
    * The audio type that most closely describes the audio being recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance microphone_distance = 4; + * + * * @return The microphoneDistance. */ com.google.cloud.speech.v1p1beta1.RecognitionMetadata.MicrophoneDistance getMicrophoneDistance(); /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The enum numeric value on the wire for originalMediaType. */ int getOriginalMediaTypeValue(); /** + * + * *
    * The original media the speech was recorded on.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType original_media_type = 5; + * + * * @return The originalMediaType. */ com.google.cloud.speech.v1p1beta1.RecognitionMetadata.OriginalMediaType getOriginalMediaType(); /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The enum numeric value on the wire for recordingDeviceType. */ int getRecordingDeviceTypeValue(); /** + * + * *
    * The type of device the speech was recorded with.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * .google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType recording_device_type = 6; + * + * * @return The recordingDeviceType. */ - com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType getRecordingDeviceType(); + com.google.cloud.speech.v1p1beta1.RecognitionMetadata.RecordingDeviceType + getRecordingDeviceType(); /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -104,10 +165,13 @@
    * 
* * string recording_device_name = 7; + * * @return The recordingDeviceName. */ java.lang.String getRecordingDeviceName(); /** + * + * *
    * The device used to make the recording.  Examples 'Nexus 5X' or
    * 'Polycom SoundStation IP 6000' or 'POTS' or 'VoIP' or
@@ -115,12 +179,14 @@
    * 
* * string recording_device_name = 7; + * * @return The bytes for recordingDeviceName. */ - com.google.protobuf.ByteString - getRecordingDeviceNameBytes(); + com.google.protobuf.ByteString getRecordingDeviceNameBytes(); /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -129,10 +195,13 @@
    * 
* * string original_mime_type = 8; + * * @return The originalMimeType. */ java.lang.String getOriginalMimeType(); /** + * + * *
    * Mime type of the original audio file.  For example `audio/m4a`,
    * `audio/x-alaw-basic`, `audio/mp3`, `audio/3gpp`.
@@ -141,43 +210,52 @@
    * 
* * string original_mime_type = 8; + * * @return The bytes for originalMimeType. */ - com.google.protobuf.ByteString - getOriginalMimeTypeBytes(); + com.google.protobuf.ByteString getOriginalMimeTypeBytes(); /** + * + * *
    * Obfuscated (privacy-protected) ID of the user, to identify number of
    * unique users using the service.
    * 
* * int64 obfuscated_id = 9 [deprecated = true]; - * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. - * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 + * + * @deprecated google.cloud.speech.v1p1beta1.RecognitionMetadata.obfuscated_id is deprecated. See + * google/cloud/speech/v1p1beta1/cloud_speech.proto;l=612 * @return The obfuscatedId. */ - @java.lang.Deprecated long getObfuscatedId(); + @java.lang.Deprecated + long getObfuscatedId(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The audioTopic. */ java.lang.String getAudioTopic(); /** + * + * *
    * Description of the content. Eg. "Recordings of federal supreme court
    * hearings from 2012".
    * 
* * string audio_topic = 10; + * * @return The bytes for audioTopic. */ - com.google.protobuf.ByteString - getAudioTopicBytes(); + com.google.protobuf.ByteString getAudioTopicBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java index b8acfd307..55aa64e15 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The top-level message sent by the client for the `Recognize` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ -public final class RecognizeRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class RecognizeRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) RecognizeRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use RecognizeRequest.newBuilder() to construct. private RecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RecognizeRequest() { - } + + private RecognizeRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new RecognizeRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private RecognizeRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,47 @@ private RecognizeRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; - if (config_ != null) { - subBuilder = config_.toBuilder(); - } - config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(config_); - config_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null; + if (config_ != null) { + subBuilder = config_.toBuilder(); + } + config_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(config_); + config_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; - if (audio_ != null) { - subBuilder = audio_.toBuilder(); - } - audio_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(audio_); - audio_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder subBuilder = null; + if (audio_ != null) { + subBuilder = audio_.toBuilder(); + } + audio_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.RecognitionAudio.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(audio_); + audio_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +116,42 @@ private RecognizeRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } public static final int CONFIG_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -128,25 +159,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -156,11 +198,16 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int AUDIO_FIELD_NUMBER = 2; private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ @java.lang.Override @@ -168,23 +215,34 @@ public boolean hasAudio() { return audio_ != null; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } /** + * + * *
    * Required. The audio data to be recognized.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { @@ -192,6 +250,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBui } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,8 +262,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -221,12 +279,10 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (audio_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudio()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudio()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,22 +292,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeRequest other = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.RecognizeRequest other = + (com.google.cloud.speech.v1p1beta1.RecognizeRequest) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasAudio() != other.hasAudio()) return false; if (hasAudio()) { - if (!getAudio() - .equals(other.getAudio())) return false; + if (!getAudio().equals(other.getAudio())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -278,117 +333,126 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `Recognize` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeRequest) com.google.cloud.speech.v1p1beta1.RecognizeRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.RecognizeRequest.class, + com.google.cloud.speech.v1p1beta1.RecognizeRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.RecognizeRequest.newBuilder() @@ -396,16 +460,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -425,9 +488,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; } @java.lang.Override @@ -446,7 +509,8 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.RecognizeRequest result = new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); + com.google.cloud.speech.v1p1beta1.RecognizeRequest result = + new com.google.cloud.speech.v1p1beta1.RecognizeRequest(this); if (configBuilder_ == null) { result.config_ = config_; } else { @@ -465,38 +529,39 @@ public com.google.cloud.speech.v1p1beta1.RecognizeRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeRequest) other); } else { super.mergeFrom(other); return this; @@ -504,7 +569,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognizeRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.RecognizeRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.RecognizeRequest.getDefaultInstance()) + return this; if (other.hasConfig()) { mergeConfig(other.getConfig()); } @@ -530,7 +596,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.RecognizeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,42 +609,61 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + configBuilder_; /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -593,12 +679,16 @@ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig val return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig( com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder builderForValue) { @@ -612,18 +702,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -635,12 +731,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -654,51 +754,67 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; @@ -706,39 +822,58 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB private com.google.cloud.speech.v1p1beta1.RecognitionAudio audio_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> audioBuilder_; + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + audioBuilder_; /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the audio field is set. */ public boolean hasAudio() { return audioBuilder_ != null || audio_ != null; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The audio. */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio() { if (audioBuilder_ == null) { - return audio_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } else { return audioBuilder_.getMessage(); } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { @@ -754,11 +889,15 @@ public Builder setAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAudio( com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder builderForValue) { @@ -772,17 +911,23 @@ public Builder setAudio( return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio value) { if (audioBuilder_ == null) { if (audio_ != null) { audio_ = - com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionAudio.newBuilder(audio_) + .mergeFrom(value) + .buildPartial(); } else { audio_ = value; } @@ -794,11 +939,15 @@ public Builder mergeAudio(com.google.cloud.speech.v1p1beta1.RecognitionAudio val return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAudio() { if (audioBuilder_ == null) { @@ -812,55 +961,71 @@ public Builder clearAudio() { return this; } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder getAudioBuilder() { - + onChanged(); return getAudioFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder() { if (audioBuilder_ != null) { return audioBuilder_.getMessageOrBuilder(); } else { - return audio_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() : audio_; + return audio_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionAudio.getDefaultInstance() + : audio_; } } /** + * + * *
      * Required. The audio data to be recognized.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder> getAudioFieldBuilder() { if (audioBuilder_ == null) { - audioBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionAudio, com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( - getAudio(), - getParentForChildren(), - isClean()); + audioBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionAudio, + com.google.cloud.speech.v1p1beta1.RecognitionAudio.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder>( + getAudio(), getParentForChildren(), isClean()); audio_ = null; } return audioBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -870,12 +1035,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognizeRequest) private static final com.google.cloud.speech.v1p1beta1.RecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognizeRequest(); } @@ -884,16 +1049,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -908,6 +1073,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java new file mode 100644 index 000000000..2f3e881fd --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeRequestOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public interface RecognizeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); + /** + * + * + *
+   * Required. Provides information to the recognizer that specifies how to
+   * process the request.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audio field is set. + */ + boolean hasAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audio. + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudio getAudio(); + /** + * + * + *
+   * Required. The audio data to be recognized.
+   * 
+ * + * + * .google.cloud.speech.v1p1beta1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.speech.v1p1beta1.RecognitionAudioOrBuilder getAudioOrBuilder(); +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java similarity index 73% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java index fe9f8b28c..ce9087c8c 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The only message returned to the client by the `Recognize` method. It
  * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
  */
-public final class RecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class RecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
     RecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use RecognizeResponse.newBuilder() to construct.
   private RecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private RecognizeResponse() {
     results_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new RecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private RecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,35 +73,42 @@ private RecognizeResponse(
           case 0:
             done = true;
             break;
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
-            }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
-            }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 26:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,8 +116,7 @@ private RecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -102,22 +125,27 @@ private RecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
+            com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
   }
 
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -126,10 +154,13 @@ private RecognizeResponse(
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List getResultsList() {
+  public java.util.List
+      getResultsList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -138,11 +169,14 @@ public java.util.List
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
       getResultsOrBuilderList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -155,6 +189,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -167,6 +203,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
     return results_.get(index);
   }
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -183,11 +221,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
   public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Duration totalBilledTime_;
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -195,18 +236,25 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
@@ -219,6 +267,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -230,8 +279,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < results_.size(); i++) { output.writeMessage(2, results_.get(i)); } @@ -248,12 +296,10 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, results_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i)); } if (totalBilledTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTotalBilledTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTotalBilledTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -263,19 +309,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.RecognizeResponse other = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; + com.google.cloud.speech.v1p1beta1.RecognizeResponse other = + (com.google.cloud.speech.v1p1beta1.RecognizeResponse) obj; - if (!getResultsList() - .equals(other.getResultsList())) return false; + if (!getResultsList().equals(other.getResultsList())) return false; if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false; if (hasTotalBilledTime()) { - if (!getTotalBilledTime() - .equals(other.getTotalBilledTime())) return false; + if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -302,96 +347,103 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.RecognizeResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.RecognizeResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The only message returned to the client by the `Recognize` method. It
    * contains the result as zero or more sequential `SpeechRecognitionResult`
@@ -400,21 +452,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.RecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.RecognizeResponse)
       com.google.cloud.speech.v1p1beta1.RecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class, com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.RecognizeResponse.class,
+              com.google.cloud.speech.v1p1beta1.RecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.RecognizeResponse.newBuilder()
@@ -422,17 +476,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -452,9 +506,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor;
     }
 
     @java.lang.Override
@@ -473,7 +527,8 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.RecognizeResponse result = new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.RecognizeResponse result =
+          new com.google.cloud.speech.v1p1beta1.RecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (resultsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -497,38 +552,39 @@ public com.google.cloud.speech.v1p1beta1.RecognizeResponse buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.RecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.RecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -536,7 +592,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognizeResponse other) {
-      if (other == com.google.cloud.speech.v1p1beta1.RecognizeResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.RecognizeResponse.getDefaultInstance())
+        return this;
       if (resultsBuilder_ == null) {
         if (!other.results_.isEmpty()) {
           if (results_.isEmpty()) {
@@ -555,9 +612,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.RecognizeResponse oth
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -585,7 +643,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.RecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -594,21 +653,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -616,7 +684,8 @@ private void ensureResultsIsMutable() {
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List getResultsList() {
+    public java.util.List
+        getResultsList() {
       if (resultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(results_);
       } else {
@@ -624,6 +693,8 @@ public java.util.List
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -639,6 +710,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -654,6 +727,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -676,6 +751,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -684,7 +761,8 @@ public Builder setResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder setResults(
-        int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.set(index, builderForValue.build());
@@ -695,6 +773,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -716,6 +796,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.SpeechRecognitionRes
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -738,6 +820,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -757,6 +841,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -765,7 +851,8 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder addResults(
-        int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.add(index, builderForValue.build());
@@ -776,6 +863,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -784,11 +873,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public Builder addAllResults(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -796,6 +885,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -814,6 +905,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -832,6 +925,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -844,6 +939,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder getResu
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -854,11 +951,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder getResu
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
         int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);  } else {
+        return results_.get(index);
+      } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -866,8 +966,9 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -875,6 +976,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
       }
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -883,10 +986,13 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getRes
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -896,10 +1002,14 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
      */
     public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index,
+              com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Sequential list of transcription results corresponding to
      * sequential portions of audio.
@@ -907,20 +1017,23 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
      *
      * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult,
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder,
+                com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -928,34 +1041,47 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder addResu
 
     private com.google.protobuf.Duration totalBilledTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        totalBilledTimeBuilder_;
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -976,14 +1102,15 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
* * .google.protobuf.Duration total_billed_time = 3; */ - public Builder setTotalBilledTime( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) { if (totalBilledTimeBuilder_ == null) { totalBilledTime_ = builderForValue.build(); onChanged(); @@ -994,6 +1121,8 @@ public Builder setTotalBilledTime( return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1004,7 +1133,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { if (totalBilledTimeBuilder_ == null) { if (totalBilledTime_ != null) { totalBilledTime_ = - com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(totalBilledTime_) + .mergeFrom(value) + .buildPartial(); } else { totalBilledTime_ = value; } @@ -1016,6 +1147,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1034,6 +1167,8 @@ public Builder clearTotalBilledTime() { return this; } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1041,11 +1176,13 @@ public Builder clearTotalBilledTime() { * .google.protobuf.Duration total_billed_time = 3; */ public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() { - + onChanged(); return getTotalBilledTimeFieldBuilder().getBuilder(); } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1056,11 +1193,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { if (totalBilledTimeBuilder_ != null) { return totalBilledTimeBuilder_.getMessageOrBuilder(); } else { - return totalBilledTime_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } } /** + * + * *
      * When available, billed audio seconds for the corresponding request.
      * 
@@ -1068,21 +1208,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() { * .google.protobuf.Duration total_billed_time = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTotalBilledTimeFieldBuilder() { if (totalBilledTimeBuilder_ == null) { - totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTotalBilledTime(), - getParentForChildren(), - isClean()); + totalBilledTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTotalBilledTime(), getParentForChildren(), isClean()); totalBilledTime_ = null; } return totalBilledTimeBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1092,12 +1235,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.RecognizeResponse) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.RecognizeResponse) private static final com.google.cloud.speech.v1p1beta1.RecognizeResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.RecognizeResponse(); } @@ -1106,16 +1249,16 @@ public static com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RecognizeResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new RecognizeResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecognizeResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RecognizeResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1130,6 +1273,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.RecognizeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java index d558c9d50..c03d3c9b7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/RecognizeResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface RecognizeResponseOrBuilder extends +public interface RecognizeResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.RecognizeResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -15,9 +33,10 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -27,6 +46,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -36,6 +57,8 @@ public interface RecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -43,9 +66,11 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * Sequential list of transcription results corresponding to
    * sequential portions of audio.
@@ -53,28 +78,35 @@ public interface RecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;
    */
-  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
* * .google.protobuf.Duration total_billed_time = 3; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the corresponding request.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java index 936d08258..74cddaf21 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfig.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Config to enable speaker diarization.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ -public final class SpeakerDiarizationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeakerDiarizationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) SpeakerDiarizationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeakerDiarizationConfig.newBuilder() to construct. private SpeakerDiarizationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SpeakerDiarizationConfig() { - } + + private SpeakerDiarizationConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeakerDiarizationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeakerDiarizationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,33 +68,33 @@ private SpeakerDiarizationConfig( case 0: done = true; break; - case 8: { - - enableSpeakerDiarization_ = input.readBool(); - break; - } - case 16: { - - minSpeakerCount_ = input.readInt32(); - break; - } - case 24: { - - maxSpeakerCount_ = input.readInt32(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enableSpeakerDiarization_ = input.readBool(); + break; + } + case 16: + { + minSpeakerCount_ = input.readInt32(); + break; + } + case 24: + { + maxSpeakerCount_ = input.readInt32(); + break; + } + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,29 +102,33 @@ private SpeakerDiarizationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } public static final int ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER = 1; private boolean enableSpeakerDiarization_; /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -116,6 +136,7 @@ private SpeakerDiarizationConfig(
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -126,6 +147,8 @@ public boolean getEnableSpeakerDiarization() { public static final int MIN_SPEAKER_COUNT_FIELD_NUMBER = 2; private int minSpeakerCount_; /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -133,6 +156,7 @@ public boolean getEnableSpeakerDiarization() {
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -143,6 +167,8 @@ public int getMinSpeakerCount() { public static final int MAX_SPEAKER_COUNT_FIELD_NUMBER = 3; private int maxSpeakerCount_; /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -150,6 +176,7 @@ public int getMinSpeakerCount() {
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -160,21 +187,27 @@ public int getMaxSpeakerCount() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @return The speakerTag. */ @java.lang.Override - @java.lang.Deprecated public int getSpeakerTag() { + @java.lang.Deprecated + public int getSpeakerTag() { return speakerTag_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +219,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (enableSpeakerDiarization_ != false) { output.writeBool(1, enableSpeakerDiarization_); } @@ -210,20 +242,16 @@ public int getSerializedSize() { size = 0; if (enableSpeakerDiarization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableSpeakerDiarization_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSpeakerDiarization_); } if (minSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, minSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, minSpeakerCount_); } if (maxSpeakerCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, maxSpeakerCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxSpeakerCount_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,21 +261,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other = + (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) obj; - if (getEnableSpeakerDiarization() - != other.getEnableSpeakerDiarization()) return false; - if (getMinSpeakerCount() - != other.getMinSpeakerCount()) return false; - if (getMaxSpeakerCount() - != other.getMaxSpeakerCount()) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + if (getEnableSpeakerDiarization() != other.getEnableSpeakerDiarization()) return false; + if (getMinSpeakerCount() != other.getMinSpeakerCount()) return false; + if (getMaxSpeakerCount() != other.getMaxSpeakerCount()) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -260,8 +285,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_SPEAKER_DIARIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableSpeakerDiarization()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSpeakerDiarization()); hash = (37 * hash) + MIN_SPEAKER_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMinSpeakerCount(); hash = (37 * hash) + MAX_SPEAKER_COUNT_FIELD_NUMBER; @@ -274,117 +298,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config to enable speaker diarization.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.class, + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.newBuilder() @@ -392,16 +426,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -417,9 +450,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; } @java.lang.Override @@ -438,7 +471,8 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); + com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig result = + new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(this); result.enableSpeakerDiarization_ = enableSpeakerDiarization_; result.minSpeakerCount_ = minSpeakerCount_; result.maxSpeakerCount_ = maxSpeakerCount_; @@ -451,38 +485,39 @@ public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) other); } else { super.mergeFrom(other); return this; @@ -490,7 +525,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.getDefaultInstance()) + return this; if (other.getEnableSpeakerDiarization() != false) { setEnableSpeakerDiarization(other.getEnableSpeakerDiarization()); } @@ -522,7 +558,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -532,8 +569,10 @@ public Builder mergeFrom( return this; } - private boolean enableSpeakerDiarization_ ; + private boolean enableSpeakerDiarization_; /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -541,6 +580,7 @@ public Builder mergeFrom(
      * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ @java.lang.Override @@ -548,6 +588,8 @@ public boolean getEnableSpeakerDiarization() { return enableSpeakerDiarization_; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -555,16 +597,19 @@ public boolean getEnableSpeakerDiarization() {
      * 
* * bool enable_speaker_diarization = 1; + * * @param value The enableSpeakerDiarization to set. * @return This builder for chaining. */ public Builder setEnableSpeakerDiarization(boolean value) { - + enableSpeakerDiarization_ = value; onChanged(); return this; } /** + * + * *
      * If 'true', enables speaker detection for each recognized word in
      * the top alternative of the recognition result using a speaker_tag provided
@@ -572,17 +617,20 @@ public Builder setEnableSpeakerDiarization(boolean value) {
      * 
* * bool enable_speaker_diarization = 1; + * * @return This builder for chaining. */ public Builder clearEnableSpeakerDiarization() { - + enableSpeakerDiarization_ = false; onChanged(); return this; } - private int minSpeakerCount_ ; + private int minSpeakerCount_; /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -590,6 +638,7 @@ public Builder clearEnableSpeakerDiarization() {
      * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ @java.lang.Override @@ -597,6 +646,8 @@ public int getMinSpeakerCount() { return minSpeakerCount_; } /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -604,16 +655,19 @@ public int getMinSpeakerCount() {
      * 
* * int32 min_speaker_count = 2; + * * @param value The minSpeakerCount to set. * @return This builder for chaining. */ public Builder setMinSpeakerCount(int value) { - + minSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Minimum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -621,17 +675,20 @@ public Builder setMinSpeakerCount(int value) {
      * 
* * int32 min_speaker_count = 2; + * * @return This builder for chaining. */ public Builder clearMinSpeakerCount() { - + minSpeakerCount_ = 0; onChanged(); return this; } - private int maxSpeakerCount_ ; + private int maxSpeakerCount_; /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -639,6 +696,7 @@ public Builder clearMinSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ @java.lang.Override @@ -646,6 +704,8 @@ public int getMaxSpeakerCount() { return maxSpeakerCount_; } /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -653,16 +713,19 @@ public int getMaxSpeakerCount() {
      * 
* * int32 max_speaker_count = 3; + * * @param value The maxSpeakerCount to set. * @return This builder for chaining. */ public Builder setMaxSpeakerCount(int value) { - + maxSpeakerCount_ = value; onChanged(); return this; } /** + * + * *
      * Maximum number of speakers in the conversation. This range gives you more
      * flexibility by allowing the system to automatically determine the correct
@@ -670,66 +733,82 @@ public Builder setMaxSpeakerCount(int value) {
      * 
* * int32 max_speaker_count = 3; + * * @return This builder for chaining. */ public Builder clearMaxSpeakerCount() { - + maxSpeakerCount_ = 0; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @return The speakerTag. */ @java.lang.Override - @java.lang.Deprecated public int getSpeakerTag() { + @java.lang.Deprecated + public int getSpeakerTag() { return speakerTag_; } /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @param value The speakerTag to set. * @return This builder for chaining. */ - @java.lang.Deprecated public Builder setSpeakerTag(int value) { - + @java.lang.Deprecated + public Builder setSpeakerTag(int value) { + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Unused.
      * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @return This builder for chaining. */ - @java.lang.Deprecated public Builder clearSpeakerTag() { - + @java.lang.Deprecated + public Builder clearSpeakerTag() { + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -739,12 +818,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) private static final com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig(); } @@ -753,16 +832,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeakerDiarizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeakerDiarizationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeakerDiarizationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeakerDiarizationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -777,6 +856,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java similarity index 68% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java index bc23982ea..00c1be0d0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeakerDiarizationConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeakerDiarizationConfigOrBuilder extends +public interface SpeakerDiarizationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If 'true', enables speaker detection for each recognized word in
    * the top alternative of the recognition result using a speaker_tag provided
@@ -15,11 +33,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * bool enable_speaker_diarization = 1; + * * @return The enableSpeakerDiarization. */ boolean getEnableSpeakerDiarization(); /** + * + * *
    * Minimum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -27,11 +48,14 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 min_speaker_count = 2; + * * @return The minSpeakerCount. */ int getMinSpeakerCount(); /** + * + * *
    * Maximum number of speakers in the conversation. This range gives you more
    * flexibility by allowing the system to automatically determine the correct
@@ -39,19 +63,25 @@ public interface SpeakerDiarizationConfigOrBuilder extends
    * 
* * int32 max_speaker_count = 3; + * * @return The maxSpeakerCount. */ int getMaxSpeakerCount(); /** + * + * *
    * Output only. Unused.
    * 
* - * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * int32 speaker_tag = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @deprecated google.cloud.speech.v1p1beta1.SpeakerDiarizationConfig.speaker_tag is deprecated. * See google/cloud/speech/v1p1beta1/cloud_speech.proto;l=480 * @return The speakerTag. */ - @java.lang.Deprecated int getSpeakerTag(); + @java.lang.Deprecated + int getSpeakerTag(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java index 020d93047..5ba85b0e0 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptation.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Speech adaptation configuration.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ -public final class SpeechAdaptation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechAdaptation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) SpeechAdaptationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechAdaptation.newBuilder() to construct. private SpeechAdaptation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechAdaptation() { phraseSets_ = java.util.Collections.emptyList(); phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -27,16 +45,15 @@ private SpeechAdaptation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechAdaptation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechAdaptation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,40 +73,47 @@ private SpeechAdaptation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + phraseSets_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + phraseSets_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); + break; } - phraseSets_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + phraseSetReferences_.add(s); + break; } - phraseSetReferences_.add(s); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; + case 26: + { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + customClasses_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + customClasses_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); + break; } - customClasses_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -97,8 +121,7 @@ private SpeechAdaptation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { phraseSets_ = java.util.Collections.unmodifiableList(phraseSets_); @@ -113,22 +136,27 @@ private SpeechAdaptation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } public static final int PHRASE_SETS_FIELD_NUMBER = 1; private java.util.List phraseSets_; /** + * + * *
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -142,6 +170,8 @@ public java.util.List getPhraseSets
     return phraseSets_;
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -151,11 +181,13 @@ public java.util.List getPhraseSets
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getPhraseSetsOrBuilderList() {
     return phraseSets_;
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -169,6 +201,8 @@ public int getPhraseSetsCount() {
     return phraseSets_.size();
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -182,6 +216,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
     return phraseSets_.get(index);
   }
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -191,42 +227,52 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
     return phraseSets_.get(index);
   }
 
   public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER = 2;
   private com.google.protobuf.LazyStringList phraseSetReferences_;
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList - getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { return phraseSetReferences_; } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -234,22 +280,27 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } public static final int CUSTOM_CLASSES_FIELD_NUMBER = 3; private java.util.List customClasses_; /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -264,6 +315,8 @@ public java.util.List getCustomCl
     return customClasses_;
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -274,11 +327,13 @@ public java.util.List getCustomCl
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getCustomClassesOrBuilderList() {
     return customClasses_;
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -293,6 +348,8 @@ public int getCustomClassesCount() {
     return customClasses_.size();
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -307,6 +364,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index)
     return customClasses_.get(index);
   }
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -323,6 +382,7 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -334,8 +394,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < phraseSets_.size(); i++) {
       output.writeMessage(1, phraseSets_.get(i));
     }
@@ -355,8 +414,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < phraseSets_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, phraseSets_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, phraseSets_.get(i));
     }
     {
       int dataSize = 0;
@@ -367,8 +425,7 @@ public int getSerializedSize() {
       size += 1 * getPhraseSetReferencesList().size();
     }
     for (int i = 0; i < customClasses_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, customClasses_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, customClasses_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -378,19 +435,17 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechAdaptation other =
+        (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) obj;
 
-    if (!getPhraseSetsList()
-        .equals(other.getPhraseSetsList())) return false;
-    if (!getPhraseSetReferencesList()
-        .equals(other.getPhraseSetReferencesList())) return false;
-    if (!getCustomClassesList()
-        .equals(other.getCustomClassesList())) return false;
+    if (!getPhraseSetsList().equals(other.getPhraseSetsList())) return false;
+    if (!getPhraseSetReferencesList().equals(other.getPhraseSetReferencesList())) return false;
+    if (!getCustomClassesList().equals(other.getCustomClassesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -420,117 +475,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechAdaptation prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Speech adaptation configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechAdaptation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechAdaptation) com.google.cloud.speech.v1p1beta1.SpeechAdaptationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.class, + com.google.cloud.speech.v1p1beta1.SpeechAdaptation.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechAdaptation.newBuilder() @@ -538,18 +602,18 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getPhraseSetsFieldBuilder(); getCustomClassesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -571,9 +635,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; } @java.lang.Override @@ -592,7 +656,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); + com.google.cloud.speech.v1p1beta1.SpeechAdaptation result = + new com.google.cloud.speech.v1p1beta1.SpeechAdaptation(this); int from_bitField0_ = bitField0_; if (phraseSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -625,38 +690,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechAdaptation buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechAdaptation) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechAdaptation) other); } else { super.mergeFrom(other); return this; @@ -664,7 +730,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechAdaptation.getDefaultInstance()) + return this; if (phraseSetsBuilder_ == null) { if (!other.phraseSets_.isEmpty()) { if (phraseSets_.isEmpty()) { @@ -683,9 +750,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation othe phraseSetsBuilder_ = null; phraseSets_ = other.phraseSets_; bitField0_ = (bitField0_ & ~0x00000001); - phraseSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPhraseSetsFieldBuilder() : null; + phraseSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPhraseSetsFieldBuilder() + : null; } else { phraseSetsBuilder_.addAllMessages(other.phraseSets_); } @@ -719,9 +787,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechAdaptation othe customClassesBuilder_ = null; customClasses_ = other.customClasses_; bitField0_ = (bitField0_ & ~0x00000004); - customClassesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomClassesFieldBuilder() : null; + customClassesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomClassesFieldBuilder() + : null; } else { customClassesBuilder_.addAllMessages(other.customClasses_); } @@ -746,7 +815,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeechAdaptation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -755,21 +825,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List phraseSets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensurePhraseSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - phraseSets_ = new java.util.ArrayList(phraseSets_); + phraseSets_ = + new java.util.ArrayList(phraseSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetsBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetsBuilder_; /** + * + * *
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -786,6 +864,8 @@ public java.util.List getPhraseSets
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -802,6 +882,8 @@ public int getPhraseSetsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -818,6 +900,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -826,8 +910,7 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index) {
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public Builder setPhraseSets(
-        int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) {
+    public Builder setPhraseSets(int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) {
       if (phraseSetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -841,6 +924,8 @@ public Builder setPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -861,6 +946,8 @@ public Builder setPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -883,6 +970,8 @@ public Builder addPhraseSets(com.google.cloud.speech.v1p1beta1.PhraseSet value)
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -891,8 +980,7 @@ public Builder addPhraseSets(com.google.cloud.speech.v1p1beta1.PhraseSet value)
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public Builder addPhraseSets(
-        int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) {
+    public Builder addPhraseSets(int index, com.google.cloud.speech.v1p1beta1.PhraseSet value) {
       if (phraseSetsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -906,6 +994,8 @@ public Builder addPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -926,6 +1016,8 @@ public Builder addPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -946,6 +1038,8 @@ public Builder addPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -958,8 +1052,7 @@ public Builder addAllPhraseSets(
         java.lang.Iterable values) {
       if (phraseSetsBuilder_ == null) {
         ensurePhraseSetsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, phraseSets_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSets_);
         onChanged();
       } else {
         phraseSetsBuilder_.addAllMessages(values);
@@ -967,6 +1060,8 @@ public Builder addAllPhraseSets(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -986,6 +1081,8 @@ public Builder clearPhraseSets() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1005,6 +1102,8 @@ public Builder removePhraseSets(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1013,11 +1112,12 @@ public Builder removePhraseSets(int index) {
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder(
-        int index) {
+    public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder(int index) {
       return getPhraseSetsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1026,14 +1126,16 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index) {
       if (phraseSetsBuilder_ == null) {
-        return phraseSets_.get(index);  } else {
+        return phraseSets_.get(index);
+      } else {
         return phraseSetsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1042,8 +1144,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public java.util.List 
-         getPhraseSetsOrBuilderList() {
+    public java.util.List
+        getPhraseSetsOrBuilderList() {
       if (phraseSetsBuilder_ != null) {
         return phraseSetsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1051,6 +1153,8 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1060,10 +1164,12 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuild
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
     public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder() {
-      return getPhraseSetsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance());
+      return getPhraseSetsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1072,12 +1178,13 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(
-        int index) {
-      return getPhraseSetsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance());
+    public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(int index) {
+      return getPhraseSetsFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of phrase sets. To specify the hints inline, leave the
      * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -1086,61 +1193,77 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder addPhraseSetsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
      */
-    public java.util.List 
-         getPhraseSetsBuilderList() {
+    public java.util.List
+        getPhraseSetsBuilderList() {
       return getPhraseSetsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.PhraseSet,
+            com.google.cloud.speech.v1p1beta1.PhraseSet.Builder,
+            com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>
         getPhraseSetsFieldBuilder() {
       if (phraseSetsBuilder_ == null) {
-        phraseSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>(
-                phraseSets_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        phraseSetsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.PhraseSet,
+                com.google.cloud.speech.v1p1beta1.PhraseSet.Builder,
+                com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>(
+                phraseSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         phraseSets_ = null;
       }
       return phraseSetsBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList phraseSetReferences_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList phraseSetReferences_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensurePhraseSetReferencesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         phraseSetReferences_ = new com.google.protobuf.LazyStringArrayList(phraseSetReferences_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - public com.google.protobuf.ProtocolStringList - getPhraseSetReferencesList() { + public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList() { return phraseSetReferences_.getUnmodifiableView(); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ public int getPhraseSetReferencesCount() { return phraseSetReferences_.size(); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ @@ -1148,80 +1271,95 @@ public java.lang.String getPhraseSetReferences(int index) { return phraseSetReferences_.get(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - public com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index) { + public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) { return phraseSetReferences_.getByteString(index); } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The phraseSetReferences to set. * @return This builder for chaining. */ - public Builder setPhraseSetReferences( - int index, java.lang.String value) { + public Builder setPhraseSetReferences(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.set(index, value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferences( - java.lang.String value) { + public Builder addPhraseSetReferences(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhraseSetReferencesIsMutable(); + throw new NullPointerException(); + } + ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param values The phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addAllPhraseSetReferences( - java.lang.Iterable values) { + public Builder addAllPhraseSetReferences(java.lang.Iterable values) { ensurePhraseSetReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phraseSetReferences_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseSetReferences_); onChanged(); return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearPhraseSetReferences() { @@ -1231,20 +1369,23 @@ public Builder clearPhraseSetReferences() { return this; } /** + * + * *
      * A collection of phrase set resource names to use.
      * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the phraseSetReferences to add. * @return This builder for chaining. */ - public Builder addPhraseSetReferencesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhraseSetReferencesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhraseSetReferencesIsMutable(); phraseSetReferences_.add(value); onChanged(); @@ -1252,18 +1393,25 @@ public Builder addPhraseSetReferencesBytes( } private java.util.List customClasses_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureCustomClassesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - customClasses_ = new java.util.ArrayList(customClasses_); + customClasses_ = + new java.util.ArrayList(customClasses_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassesBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassesBuilder_; /** + * + * *
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1281,6 +1429,8 @@ public java.util.List getCustomCl
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1298,6 +1448,8 @@ public int getCustomClassesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1315,6 +1467,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index)
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1339,6 +1493,8 @@ public Builder setCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1360,6 +1516,8 @@ public Builder setCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1383,6 +1541,8 @@ public Builder addCustomClasses(com.google.cloud.speech.v1p1beta1.CustomClass va
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1407,6 +1567,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1428,6 +1590,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1449,6 +1613,8 @@ public Builder addCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1462,8 +1628,7 @@ public Builder addAllCustomClasses(
         java.lang.Iterable values) {
       if (customClassesBuilder_ == null) {
         ensureCustomClassesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, customClasses_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customClasses_);
         onChanged();
       } else {
         customClassesBuilder_.addAllMessages(values);
@@ -1471,6 +1636,8 @@ public Builder addAllCustomClasses(
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1491,6 +1658,8 @@ public Builder clearCustomClasses() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1511,6 +1680,8 @@ public Builder removeCustomClasses(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1525,6 +1696,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui
       return getCustomClassesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1537,11 +1710,14 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassesBui
     public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(
         int index) {
       if (customClassesBuilder_ == null) {
-        return customClasses_.get(index);  } else {
+        return customClasses_.get(index);
+      } else {
         return customClassesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1551,8 +1727,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
      *
      * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
      */
-    public java.util.List 
-         getCustomClassesOrBuilderList() {
+    public java.util.List
+        getCustomClassesOrBuilderList() {
       if (customClassesBuilder_ != null) {
         return customClassesBuilder_.getMessageOrBuilderList();
       } else {
@@ -1560,6 +1736,8 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
       }
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1570,10 +1748,12 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOr
      * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
      */
     public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBuilder() {
-      return getCustomClassesFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1585,10 +1765,12 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
      */
     public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBuilder(
         int index) {
-      return getCustomClassesFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance());
+      return getCustomClassesFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A collection of custom classes. To specify the classes inline, leave the
      * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -1598,16 +1780,22 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
      *
      * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
      */
-    public java.util.List 
-         getCustomClassesBuilderList() {
+    public java.util.List
+        getCustomClassesBuilderList() {
       return getCustomClassesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.CustomClass,
+            com.google.cloud.speech.v1p1beta1.CustomClass.Builder,
+            com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>
         getCustomClassesFieldBuilder() {
       if (customClassesBuilder_ == null) {
-        customClassesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>(
+        customClassesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.CustomClass,
+                com.google.cloud.speech.v1p1beta1.CustomClass.Builder,
+                com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>(
                 customClasses_,
                 ((bitField0_ & 0x00000004) != 0),
                 getParentForChildren(),
@@ -1616,9 +1804,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder addCustomClassesBui
       }
       return customClassesBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1628,12 +1816,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechAdaptation)
   private static final com.google.cloud.speech.v1p1beta1.SpeechAdaptation DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechAdaptation();
   }
@@ -1642,16 +1830,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInsta
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechAdaptation parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechAdaptation(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechAdaptation parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechAdaptation(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1666,6 +1854,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.speech.v1p1beta1.SpeechAdaptation getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
similarity index 80%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
index 64b0f0cb1..b808e4167 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface SpeechAdaptationOrBuilder extends
+public interface SpeechAdaptationOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechAdaptation)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -16,9 +34,10 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
-      getPhraseSetsList();
+  java.util.List getPhraseSetsList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -29,6 +48,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSets(int index);
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -39,6 +60,8 @@ public interface SpeechAdaptationOrBuilder extends
    */
   int getPhraseSetsCount();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -47,9 +70,11 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  java.util.List 
+  java.util.List
       getPhraseSetsOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of phrase sets. To specify the hints inline, leave the
    * phrase set's `name` blank and fill in the rest of its fields. Any
@@ -58,51 +83,66 @@ public interface SpeechAdaptationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;
    */
-  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return A list containing the phraseSetReferences. */ - java.util.List - getPhraseSetReferencesList(); + java.util.List getPhraseSetReferencesList(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @return The count of phraseSetReferences. */ int getPhraseSetReferencesCount(); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The phraseSetReferences at the given index. */ java.lang.String getPhraseSetReferences(int index); /** + * + * *
    * A collection of phrase set resource names to use.
    * 
* - * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the phraseSetReferences at the given index. */ - com.google.protobuf.ByteString - getPhraseSetReferencesBytes(int index); + com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index); /** + * + * *
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -112,9 +152,10 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List 
-      getCustomClassesList();
+  java.util.List getCustomClassesList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -126,6 +167,8 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   com.google.cloud.speech.v1p1beta1.CustomClass getCustomClasses(int index);
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -137,6 +180,8 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    */
   int getCustomClassesCount();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -146,9 +191,11 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  java.util.List 
+  java.util.List
       getCustomClassesOrBuilderList();
   /**
+   *
+   *
    * 
    * A collection of custom classes. To specify the classes inline, leave the
    * class' `name` blank and fill in the rest of its fields, giving it a unique
@@ -158,6 +205,5 @@ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetsOrBuilder(
    *
    * repeated .google.cloud.speech.v1p1beta1.CustomClass custom_classes = 3;
    */
-  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassesOrBuilder(int index);
 }
diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
new file mode 100644
index 000000000..2d3104cbb
--- /dev/null
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechAdaptationProto.java
@@ -0,0 +1,318 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto
+
+package com.google.cloud.speech.v1p1beta1;
+
+public final class SpeechAdaptationProto {
+  private SpeechAdaptationProto() {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+  public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+    registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+  }
+
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable;
+  static final com.google.protobuf.Descriptors.Descriptor
+      internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor;
+  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+      internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable;
+
+  public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+    return descriptor;
+  }
+
+  private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+  static {
+    java.lang.String[] descriptorData = {
+      "\n;google/cloud/speech/v1p1beta1/cloud_sp"
+          + "eech_adaptation.proto\022\035google.cloud.spee"
+          + "ch.v1p1beta1\032\034google/api/annotations.pro"
+          + "to\032\027google/api/client.proto\032\037google/api/"
+          + "field_behavior.proto\032\031google/api/resourc"
+          + "e.proto\032,google/cloud/speech/v1p1beta1/r"
+          + "esource.proto\032\033google/protobuf/empty.pro"
+          + "to\032 google/protobuf/field_mask.proto\"\260\001\n"
+          + "\026CreatePhraseSetRequest\0227\n\006parent\030\001 \001(\tB"
+          + "\'\340A\002\372A!\022\037speech.googleapis.com/PhraseSet"
+          + "\022\032\n\rphrase_set_id\030\002 \001(\tB\003\340A\002\022A\n\nphrase_s"
+          + "et\030\003 \001(\0132(.google.cloud.speech.v1p1beta1"
+          + ".PhraseSetB\003\340A\002\"\214\001\n\026UpdatePhraseSetReque"
+          + "st\022A\n\nphrase_set\030\001 \001(\0132(.google.cloud.sp"
+          + "eech.v1p1beta1.PhraseSetB\003\340A\002\022/\n\013update_"
+          + "mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L"
+          + "\n\023GetPhraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002"
+          + "\372A!\n\037speech.googleapis.com/PhraseSet\"v\n\024"
+          + "ListPhraseSetRequest\0227\n\006parent\030\001 \001(\tB\'\340A"
+          + "\002\372A!\022\037speech.googleapis.com/PhraseSet\022\021\n"
+          + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"o\n\025"
+          + "ListPhraseSetResponse\022=\n\013phrase_sets\030\001 \003"
+          + "(\0132(.google.cloud.speech.v1p1beta1.Phras"
+          + "eSet\022\027\n\017next_page_token\030\002 \001(\t\"O\n\026DeleteP"
+          + "hraseSetRequest\0225\n\004name\030\001 \001(\tB\'\340A\002\372A!\n\037s"
+          + "peech.googleapis.com/PhraseSet\"\272\001\n\030Creat"
+          + "eCustomClassRequest\0229\n\006parent\030\001 \001(\tB)\340A\002"
+          + "\372A#\022!speech.googleapis.com/CustomClass\022\034"
+          + "\n\017custom_class_id\030\002 \001(\tB\003\340A\002\022E\n\014custom_c"
+          + "lass\030\003 \001(\0132*.google.cloud.speech.v1p1bet"
+          + "a1.CustomClassB\003\340A\002\"\222\001\n\030UpdateCustomClas"
+          + "sRequest\022E\n\014custom_class\030\001 \001(\0132*.google."
+          + "cloud.speech.v1p1beta1.CustomClassB\003\340A\002\022"
+          + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F"
+          + "ieldMask\"P\n\025GetCustomClassRequest\0227\n\004nam"
+          + "e\030\001 \001(\tB)\340A\002\372A#\n!speech.googleapis.com/C"
+          + "ustomClass\"|\n\030ListCustomClassesRequest\0229"
+          + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\022!speech.googleapi"
+          + "s.com/CustomClass\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n"
+          + "page_token\030\003 \001(\t\"x\n\031ListCustomClassesRes"
+          + "ponse\022B\n\016custom_classes\030\001 \003(\0132*.google.c"
+          + "loud.speech.v1p1beta1.CustomClass\022\027\n\017nex"
+          + "t_page_token\030\002 \001(\t\"S\n\030DeleteCustomClassR"
+          + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!speech.goo"
+          + "gleapis.com/CustomClass2\322\020\n\nAdaptation\022\326"
+          + "\001\n\017CreatePhraseSet\0225.google.cloud.speech"
+          + ".v1p1beta1.CreatePhraseSetRequest\032(.goog"
+          + "le.cloud.speech.v1p1beta1.PhraseSet\"b\202\323\344"
+          + "\223\002:\"5/v1p1beta1/{parent=projects/*/locat"
+          + "ions/*}/phraseSets:\001*\332A\037parent,phrase_se"
+          + "t,phrase_set_id\022\262\001\n\014GetPhraseSet\0222.googl"
+          + "e.cloud.speech.v1p1beta1.GetPhraseSetReq"
+          + "uest\032(.google.cloud.speech.v1p1beta1.Phr"
+          + "aseSet\"D\202\323\344\223\0027\0225/v1p1beta1/{name=project"
+          + "s/*/locations/*/phraseSets/*}\332A\004name\022\302\001\n"
+          + "\rListPhraseSet\0223.google.cloud.speech.v1p"
+          + "1beta1.ListPhraseSetRequest\0324.google.clo"
+          + "ud.speech.v1p1beta1.ListPhraseSetRespons"
+          + "e\"F\202\323\344\223\0027\0225/v1p1beta1/{parent=projects/*"
+          + "/locations/*}/phraseSets\332A\006parent\022\341\001\n\017Up"
+          + "datePhraseSet\0225.google.cloud.speech.v1p1"
+          + "beta1.UpdatePhraseSetRequest\032(.google.cl"
+          + "oud.speech.v1p1beta1.PhraseSet\"m\202\323\344\223\002N2@"
+          + "/v1p1beta1/{phrase_set.name=projects/*/l"
+          + "ocations/*/phraseSets/*}:\nphrase_set\332A\026p"
+          + "hrase_set,update_mask\022\246\001\n\017DeletePhraseSe"
+          + "t\0225.google.cloud.speech.v1p1beta1.Delete"
+          + "PhraseSetRequest\032\026.google.protobuf.Empty"
+          + "\"D\202\323\344\223\0027*5/v1p1beta1/{name=projects/*/lo"
+          + "cations/*/phraseSets/*}\332A\004name\022\343\001\n\021Creat"
+          + "eCustomClass\0227.google.cloud.speech.v1p1b"
+          + "eta1.CreateCustomClassRequest\032*.google.c"
+          + "loud.speech.v1p1beta1.CustomClass\"i\202\323\344\223\002"
+          + "=\"8/v1p1beta1/{parent=projects/*/locatio"
+          + "ns/*}/customClasses:\001*\332A#parent,custom_c"
+          + "lass,custom_class_id\022\273\001\n\016GetCustomClass\022"
+          + "4.google.cloud.speech.v1p1beta1.GetCusto"
+          + "mClassRequest\032*.google.cloud.speech.v1p1"
+          + "beta1.CustomClass\"G\202\323\344\223\002:\0228/v1p1beta1/{n"
+          + "ame=projects/*/locations/*/customClasses"
+          + "/*}\332A\004name\022\321\001\n\021ListCustomClasses\0227.googl"
+          + "e.cloud.speech.v1p1beta1.ListCustomClass"
+          + "esRequest\0328.google.cloud.speech.v1p1beta"
+          + "1.ListCustomClassesResponse\"I\202\323\344\223\002:\0228/v1"
+          + "p1beta1/{parent=projects/*/locations/*}/"
+          + "customClasses\332A\006parent\022\360\001\n\021UpdateCustomC"
+          + "lass\0227.google.cloud.speech.v1p1beta1.Upd"
+          + "ateCustomClassRequest\032*.google.cloud.spe"
+          + "ech.v1p1beta1.CustomClass\"v\202\323\344\223\002U2E/v1p1"
+          + "beta1/{custom_class.name=projects/*/loca"
+          + "tions/*/customClasses/*}:\014custom_class\332A"
+          + "\030custom_class,update_mask\022\255\001\n\021DeleteCust"
+          + "omClass\0227.google.cloud.speech.v1p1beta1."
+          + "DeleteCustomClassRequest\032\026.google.protob"
+          + "uf.Empty\"G\202\323\344\223\002:*8/v1p1beta1/{name=proje"
+          + "cts/*/locations/*/customClasses/*}\332A\004nam"
+          + "e\032I\312A\025speech.googleapis.com\322A.https://ww"
+          + "w.googleapis.com/auth/cloud-platformB\212\001\n"
+          + "!com.google.cloud.speech.v1p1beta1B\025Spee"
+          + "chAdaptationProtoP\001ZCgoogle.golang.org/g"
+          + "enproto/googleapis/cloud/speech/v1p1beta"
+          + "1;speech\370\001\001\242\002\003GCSb\006proto3"
+    };
+    descriptor =
+        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+            descriptorData,
+            new com.google.protobuf.Descriptors.FileDescriptor[] {
+              com.google.api.AnnotationsProto.getDescriptor(),
+              com.google.api.ClientProto.getDescriptor(),
+              com.google.api.FieldBehaviorProto.getDescriptor(),
+              com.google.api.ResourceProto.getDescriptor(),
+              com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(),
+              com.google.protobuf.EmptyProto.getDescriptor(),
+              com.google.protobuf.FieldMaskProto.getDescriptor(),
+            });
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(0);
+    internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_CreatePhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PhraseSetId", "PhraseSet",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(1);
+    internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "PhraseSet", "UpdateMask",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(2);
+    internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_GetPhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(3);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor =
+        getDescriptor().getMessageTypes().get(4);
+    internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListPhraseSetResponse_descriptor,
+            new java.lang.String[] {
+              "PhraseSets", "NextPageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor =
+        getDescriptor().getMessageTypes().get(5);
+    internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_DeletePhraseSetRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(6);
+    internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_CreateCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "CustomClassId", "CustomClass",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(7);
+    internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "CustomClass", "UpdateMask",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(8);
+    internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_GetCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor =
+        getDescriptor().getMessageTypes().get(9);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesRequest_descriptor,
+            new java.lang.String[] {
+              "Parent", "PageSize", "PageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor =
+        getDescriptor().getMessageTypes().get(10);
+    internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_ListCustomClassesResponse_descriptor,
+            new java.lang.String[] {
+              "CustomClasses", "NextPageToken",
+            });
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor =
+        getDescriptor().getMessageTypes().get(11);
+    internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_fieldAccessorTable =
+        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+            internal_static_google_cloud_speech_v1p1beta1_DeleteCustomClassRequest_descriptor,
+            new java.lang.String[] {
+              "Name",
+            });
+    com.google.protobuf.ExtensionRegistry registry =
+        com.google.protobuf.ExtensionRegistry.newInstance();
+    registry.add(com.google.api.ClientProto.defaultHost);
+    registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+    registry.add(com.google.api.AnnotationsProto.http);
+    registry.add(com.google.api.ClientProto.methodSignature);
+    registry.add(com.google.api.ClientProto.oauthScopes);
+    registry.add(com.google.api.ResourceProto.resourceReference);
+    com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+        descriptor, registry);
+    com.google.api.AnnotationsProto.getDescriptor();
+    com.google.api.ClientProto.getDescriptor();
+    com.google.api.FieldBehaviorProto.getDescriptor();
+    com.google.api.ResourceProto.getDescriptor();
+    com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor();
+    com.google.protobuf.EmptyProto.getDescriptor();
+    com.google.protobuf.FieldMaskProto.getDescriptor();
+  }
+
+  // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
similarity index 80%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
index b4cbb679d..cefe57720 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContext.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Provides "hints" to the speech recognizer to favor specific words and phrases
  * in the results.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
  */
-public final class SpeechContext extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class SpeechContext extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechContext)
     SpeechContextOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use SpeechContext.newBuilder() to construct.
   private SpeechContext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private SpeechContext() {
     phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new SpeechContext();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private SpeechContext(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,27 +72,28 @@ private SpeechContext(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              phrases_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                phrases_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              phrases_.add(s);
+              break;
             }
-            phrases_.add(s);
-            break;
-          }
-          case 37: {
-
-            boost_ = input.readFloat();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 37:
+            {
+              boost_ = input.readFloat();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,8 +101,7 @@ private SpeechContext(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -93,22 +110,27 @@ private SpeechContext(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+            com.google.cloud.speech.v1p1beta1.SpeechContext.class,
+            com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
   }
 
   public static final int PHRASES_FIELD_NUMBER = 1;
   private com.google.protobuf.LazyStringList phrases_;
   /**
+   *
+   *
    * 
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -124,13 +146,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_; } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -146,12 +170,15 @@ private SpeechContext(
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -167,6 +194,7 @@ public int getPhrasesCount() {
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -174,6 +202,8 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -189,17 +219,19 @@ public java.lang.String getPhrases(int index) {
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } public static final int BOOST_FIELD_NUMBER = 4; private float boost_; /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -212,6 +244,7 @@ public java.lang.String getPhrases(int index) {
    * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -220,6 +253,7 @@ public float getBoost() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +265,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < phrases_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, phrases_.getRaw(i)); } @@ -257,8 +290,7 @@ public int getSerializedSize() { size += 1 * getPhrasesList().size(); } if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, boost_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, boost_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -268,18 +300,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechContext)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechContext other = (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; + com.google.cloud.speech.v1p1beta1.SpeechContext other = + (com.google.cloud.speech.v1p1beta1.SpeechContext) obj; - if (!getPhrasesList() - .equals(other.getPhrasesList())) return false; + if (!getPhrasesList().equals(other.getPhrasesList())) return false; if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits( - other.getBoost())) return false; + != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -296,104 +327,110 @@ public int hashCode() { hash = (53 * hash) + getPhrasesList().hashCode(); } hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getBoost()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechContext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechContext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides "hints" to the speech recognizer to favor specific words and phrases
    * in the results.
@@ -401,21 +438,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechContext}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechContext)
       com.google.cloud.speech.v1p1beta1.SpeechContextOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.SpeechContext.class, com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
+              com.google.cloud.speech.v1p1beta1.SpeechContext.class,
+              com.google.cloud.speech.v1p1beta1.SpeechContext.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.SpeechContext.newBuilder()
@@ -423,16 +462,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -444,9 +482,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor;
     }
 
     @java.lang.Override
@@ -465,7 +503,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
-      com.google.cloud.speech.v1p1beta1.SpeechContext result = new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
+      com.google.cloud.speech.v1p1beta1.SpeechContext result =
+          new com.google.cloud.speech.v1p1beta1.SpeechContext(this);
       int from_bitField0_ = bitField0_;
       if (((bitField0_ & 0x00000001) != 0)) {
         phrases_ = phrases_.getUnmodifiableView();
@@ -481,38 +520,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechContext buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechContext) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechContext) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -520,7 +560,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechContext other) {
-      if (other == com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.SpeechContext.getDefaultInstance())
+        return this;
       if (!other.phrases_.isEmpty()) {
         if (phrases_.isEmpty()) {
           phrases_ = other.phrases_;
@@ -562,16 +603,21 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList phrases_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList phrases_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensurePhrasesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         phrases_ = new com.google.protobuf.LazyStringArrayList(phrases_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -587,13 +633,15 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - public com.google.protobuf.ProtocolStringList - getPhrasesList() { + public com.google.protobuf.ProtocolStringList getPhrasesList() { return phrases_.getUnmodifiableView(); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -609,12 +657,15 @@ private void ensurePhrasesIsMutable() {
      * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ public int getPhrasesCount() { return phrases_.size(); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -630,6 +681,7 @@ public int getPhrasesCount() {
      * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ @@ -637,6 +689,8 @@ public java.lang.String getPhrases(int index) { return phrases_.get(index); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -652,14 +706,16 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - public com.google.protobuf.ByteString - getPhrasesBytes(int index) { + public com.google.protobuf.ByteString getPhrasesBytes(int index) { return phrases_.getByteString(index); } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -675,21 +731,23 @@ public java.lang.String getPhrases(int index) {
      * 
* * repeated string phrases = 1; + * * @param index The index to set the value at. * @param value The phrases to set. * @return This builder for chaining. */ - public Builder setPhrases( - int index, java.lang.String value) { + public Builder setPhrases(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.set(index, value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -705,20 +763,22 @@ public Builder setPhrases(
      * 
* * repeated string phrases = 1; + * * @param value The phrases to add. * @return This builder for chaining. */ - public Builder addPhrases( - java.lang.String value) { + public Builder addPhrases(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensurePhrasesIsMutable(); + throw new NullPointerException(); + } + ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -734,18 +794,19 @@ public Builder addPhrases(
      * 
* * repeated string phrases = 1; + * * @param values The phrases to add. * @return This builder for chaining. */ - public Builder addAllPhrases( - java.lang.Iterable values) { + public Builder addAllPhrases(java.lang.Iterable values) { ensurePhrasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, phrases_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phrases_); onChanged(); return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -761,6 +822,7 @@ public Builder addAllPhrases(
      * 
* * repeated string phrases = 1; + * * @return This builder for chaining. */ public Builder clearPhrases() { @@ -770,6 +832,8 @@ public Builder clearPhrases() { return this; } /** + * + * *
      * A list of strings containing words and phrases "hints" so that
      * the speech recognition is more likely to recognize them. This can be used
@@ -785,23 +849,25 @@ public Builder clearPhrases() {
      * 
* * repeated string phrases = 1; + * * @param value The bytes of the phrases to add. * @return This builder for chaining. */ - public Builder addPhrasesBytes( - com.google.protobuf.ByteString value) { + public Builder addPhrasesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensurePhrasesIsMutable(); phrases_.add(value); onChanged(); return this; } - private float boost_ ; + private float boost_; /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -814,6 +880,7 @@ public Builder addPhrasesBytes(
      * 
* * float boost = 4; + * * @return The boost. */ @java.lang.Override @@ -821,6 +888,8 @@ public float getBoost() { return boost_; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -833,16 +902,19 @@ public float getBoost() {
      * 
* * float boost = 4; + * * @param value The boost to set. * @return This builder for chaining. */ public Builder setBoost(float value) { - + boost_ = value; onChanged(); return this; } /** + * + * *
      * Hint Boost. Positive value will increase the probability that a specific
      * phrase will be recognized over other similar sounding phrases. The higher
@@ -855,17 +927,18 @@ public Builder setBoost(float value) {
      * 
* * float boost = 4; + * * @return This builder for chaining. */ public Builder clearBoost() { - + boost_ = 0F; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -875,12 +948,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechContext) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechContext) private static final com.google.cloud.speech.v1p1beta1.SpeechContext DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechContext(); } @@ -889,16 +962,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechContext(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechContext(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -913,6 +986,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechContext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java similarity index 85% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java index 1daae97d3..9c1e1ba58 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechContextOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechContextOrBuilder extends +public interface SpeechContextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechContext) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -23,11 +41,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return A list containing the phrases. */ - java.util.List - getPhrasesList(); + java.util.List getPhrasesList(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -43,10 +63,13 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @return The count of phrases. */ int getPhrasesCount(); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -62,11 +85,14 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the element to return. * @return The phrases at the given index. */ java.lang.String getPhrases(int index); /** + * + * *
    * A list of strings containing words and phrases "hints" so that
    * the speech recognition is more likely to recognize them. This can be used
@@ -82,13 +108,15 @@ public interface SpeechContextOrBuilder extends
    * 
* * repeated string phrases = 1; + * * @param index The index of the value to return. * @return The bytes of the phrases at the given index. */ - com.google.protobuf.ByteString - getPhrasesBytes(int index); + com.google.protobuf.ByteString getPhrasesBytes(int index); /** + * + * *
    * Hint Boost. Positive value will increase the probability that a specific
    * phrase will be recognized over other similar sounding phrases. The higher
@@ -101,6 +129,7 @@ public interface SpeechContextOrBuilder extends
    * 
* * float boost = 4; + * * @return The boost. */ float getBoost(); diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java new file mode 100644 index 000000000..2d6aa673c --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechProto.java @@ -0,0 +1,481 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/cloud_speech.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechProto { + private SpeechProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/cloud/speech/v1p1beta1/cloud_sp" + + "eech.proto\022\035google.cloud.speech.v1p1beta" + + "1\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032\037google/api/field_behav" + + "ior.proto\032,google/cloud/speech/v1p1beta1" + + "/resource.proto\032#google/longrunning/oper" + + "ations.proto\032\036google/protobuf/duration.p" + + "roto\032\037google/protobuf/timestamp.proto\032\036g" + + "oogle/protobuf/wrappers.proto\032\027google/rp" + + "c/status.proto\"\236\001\n\020RecognizeRequest\022E\n\006c" + + "onfig\030\001 \001(\01320.google.cloud.speech.v1p1be" + + "ta1.RecognitionConfigB\003\340A\002\022C\n\005audio\030\002 \001(" + + "\0132/.google.cloud.speech.v1p1beta1.Recogn" + + "itionAudioB\003\340A\002\"\374\001\n\033LongRunningRecognize" + + "Request\022E\n\006config\030\001 \001(\01320.google.cloud.s" + + "peech.v1p1beta1.RecognitionConfigB\003\340A\002\022C" + + "\n\005audio\030\002 \001(\0132/.google.cloud.speech.v1p1" + + "beta1.RecognitionAudioB\003\340A\002\022Q\n\routput_co" + + "nfig\030\004 \001(\01325.google.cloud.speech.v1p1bet" + + "a1.TranscriptOutputConfigB\003\340A\001\":\n\026Transc" + + "riptOutputConfig\022\021\n\007gcs_uri\030\001 \001(\tH\000B\r\n\013o" + + "utput_type\"\240\001\n\031StreamingRecognizeRequest" + + "\022U\n\020streaming_config\030\001 \001(\01329.google.clou" + + "d.speech.v1p1beta1.StreamingRecognitionC" + + "onfigH\000\022\027\n\raudio_content\030\002 \001(\014H\000B\023\n\021stre" + + "aming_request\"\226\001\n\032StreamingRecognitionCo" + + "nfig\022E\n\006config\030\001 \001(\01320.google.cloud.spee" + + "ch.v1p1beta1.RecognitionConfigB\003\340A\002\022\030\n\020s" + + "ingle_utterance\030\002 \001(\010\022\027\n\017interim_results" + + "\030\003 \001(\010\"\276\t\n\021RecognitionConfig\022P\n\010encoding" + + "\030\001 \001(\0162>.google.cloud.speech.v1p1beta1.R" + + "ecognitionConfig.AudioEncoding\022\031\n\021sample" + + "_rate_hertz\030\002 \001(\005\022\033\n\023audio_channel_count" + + "\030\007 \001(\005\022/\n\'enable_separate_recognition_pe" + + "r_channel\030\014 \001(\010\022\032\n\rlanguage_code\030\003 \001(\tB\003" + + "\340A\002\022\"\n\032alternative_language_codes\030\022 \003(\t\022" + + "\030\n\020max_alternatives\030\004 \001(\005\022\030\n\020profanity_f" + + "ilter\030\005 \001(\010\022C\n\nadaptation\030\024 \001(\0132/.google" + + ".cloud.speech.v1p1beta1.SpeechAdaptation" + + "\022X\n\030transcript_normalization\030\030 \001(\01326.goo" + + "gle.cloud.speech.v1p1beta1.TranscriptNor" + + "malization\022E\n\017speech_contexts\030\006 \003(\0132,.go" + + "ogle.cloud.speech.v1p1beta1.SpeechContex" + + "t\022 \n\030enable_word_time_offsets\030\010 \001(\010\022\036\n\026e" + + "nable_word_confidence\030\017 \001(\010\022$\n\034enable_au" + + "tomatic_punctuation\030\013 \001(\010\022=\n\031enable_spok" + + "en_punctuation\030\026 \001(\0132\032.google.protobuf.B" + + "oolValue\0228\n\024enable_spoken_emojis\030\027 \001(\0132\032" + + ".google.protobuf.BoolValue\022&\n\032enable_spe" + + "aker_diarization\030\020 \001(\010B\002\030\001\022%\n\031diarizatio" + + "n_speaker_count\030\021 \001(\005B\002\030\001\022S\n\022diarization" + + "_config\030\023 \001(\01327.google.cloud.speech.v1p1" + + "beta1.SpeakerDiarizationConfig\022D\n\010metada" + + "ta\030\t \001(\01322.google.cloud.speech.v1p1beta1" + + ".RecognitionMetadata\022\r\n\005model\030\r \001(\t\022\024\n\014u" + + "se_enhanced\030\016 \001(\010\"\243\001\n\rAudioEncoding\022\030\n\024E" + + "NCODING_UNSPECIFIED\020\000\022\014\n\010LINEAR16\020\001\022\010\n\004F" + + "LAC\020\002\022\t\n\005MULAW\020\003\022\007\n\003AMR\020\004\022\n\n\006AMR_WB\020\005\022\014\n" + + "\010OGG_OPUS\020\006\022\032\n\026SPEEX_WITH_HEADER_BYTE\020\007\022" + + "\007\n\003MP3\020\010\022\r\n\tWEBM_OPUS\020\t\"\220\001\n\030SpeakerDiari" + + "zationConfig\022\"\n\032enable_speaker_diarizati" + + "on\030\001 \001(\010\022\031\n\021min_speaker_count\030\002 \001(\005\022\031\n\021m" + + "ax_speaker_count\030\003 \001(\005\022\032\n\013speaker_tag\030\005 " + + "\001(\005B\005\030\001\340A\003\"\333\010\n\023RecognitionMetadata\022\\\n\020in" + + "teraction_type\030\001 \001(\0162B.google.cloud.spee" + + "ch.v1p1beta1.RecognitionMetadata.Interac" + + "tionType\022$\n\034industry_naics_code_of_audio" + + "\030\003 \001(\r\022b\n\023microphone_distance\030\004 \001(\0162E.go" + + "ogle.cloud.speech.v1p1beta1.RecognitionM" + + "etadata.MicrophoneDistance\022a\n\023original_m" + + "edia_type\030\005 \001(\0162D.google.cloud.speech.v1" + + "p1beta1.RecognitionMetadata.OriginalMedi" + + "aType\022e\n\025recording_device_type\030\006 \001(\0162F.g" + + "oogle.cloud.speech.v1p1beta1.Recognition" + + "Metadata.RecordingDeviceType\022\035\n\025recordin" + + "g_device_name\030\007 \001(\t\022\032\n\022original_mime_typ" + + "e\030\010 \001(\t\022\031\n\robfuscated_id\030\t \001(\003B\002\030\001\022\023\n\013au" + + "dio_topic\030\n \001(\t\"\305\001\n\017InteractionType\022 \n\034I" + + "NTERACTION_TYPE_UNSPECIFIED\020\000\022\016\n\nDISCUSS" + + "ION\020\001\022\020\n\014PRESENTATION\020\002\022\016\n\nPHONE_CALL\020\003\022" + + "\r\n\tVOICEMAIL\020\004\022\033\n\027PROFESSIONALLY_PRODUCE" + + "D\020\005\022\020\n\014VOICE_SEARCH\020\006\022\021\n\rVOICE_COMMAND\020\007" + + "\022\r\n\tDICTATION\020\010\"d\n\022MicrophoneDistance\022#\n" + + "\037MICROPHONE_DISTANCE_UNSPECIFIED\020\000\022\r\n\tNE" + + "ARFIELD\020\001\022\014\n\010MIDFIELD\020\002\022\014\n\010FARFIELD\020\003\"N\n" + + "\021OriginalMediaType\022#\n\037ORIGINAL_MEDIA_TYP" + + "E_UNSPECIFIED\020\000\022\t\n\005AUDIO\020\001\022\t\n\005VIDEO\020\002\"\244\001" + + "\n\023RecordingDeviceType\022%\n!RECORDING_DEVIC" + + "E_TYPE_UNSPECIFIED\020\000\022\016\n\nSMARTPHONE\020\001\022\006\n\002" + + "PC\020\002\022\016\n\nPHONE_LINE\020\003\022\013\n\007VEHICLE\020\004\022\030\n\024OTH" + + "ER_OUTDOOR_DEVICE\020\005\022\027\n\023OTHER_INDOOR_DEVI" + + "CE\020\006:\002\030\001\"/\n\rSpeechContext\022\017\n\007phrases\030\001 \003" + + "(\t\022\r\n\005boost\030\004 \001(\002\"D\n\020RecognitionAudio\022\021\n" + + "\007content\030\001 \001(\014H\000\022\r\n\003uri\030\002 \001(\tH\000B\016\n\014audio" + + "_source\"\222\001\n\021RecognizeResponse\022G\n\007results" + + "\030\002 \003(\01326.google.cloud.speech.v1p1beta1.S" + + "peechRecognitionResult\0224\n\021total_billed_t" + + "ime\030\003 \001(\0132\031.google.protobuf.Duration\"\225\002\n" + + "\034LongRunningRecognizeResponse\022G\n\007results" + + "\030\002 \003(\01326.google.cloud.speech.v1p1beta1.S" + + "peechRecognitionResult\0224\n\021total_billed_t" + + "ime\030\003 \001(\0132\031.google.protobuf.Duration\022L\n\r" + + "output_config\030\006 \001(\01325.google.cloud.speec" + + "h.v1p1beta1.TranscriptOutputConfig\022(\n\014ou" + + "tput_error\030\007 \001(\0132\022.google.rpc.Status\"\203\002\n" + + "\034LongRunningRecognizeMetadata\022\030\n\020progres" + + "s_percent\030\001 \001(\005\022.\n\nstart_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\0224\n\020last_update_t" + + "ime\030\003 \001(\0132\032.google.protobuf.Timestamp\022\020\n" + + "\003uri\030\004 \001(\tB\003\340A\003\022Q\n\routput_config\030\005 \001(\01325" + + ".google.cloud.speech.v1p1beta1.Transcrip" + + "tOutputConfigB\003\340A\003\"\365\002\n\032StreamingRecogniz" + + "eResponse\022!\n\005error\030\001 \001(\0132\022.google.rpc.St" + + "atus\022J\n\007results\030\002 \003(\01329.google.cloud.spe" + + "ech.v1p1beta1.StreamingRecognitionResult" + + "\022d\n\021speech_event_type\030\004 \001(\0162I.google.clo" + + "ud.speech.v1p1beta1.StreamingRecognizeRe" + + "sponse.SpeechEventType\0224\n\021total_billed_t" + + "ime\030\005 \001(\0132\031.google.protobuf.Duration\"L\n\017" + + "SpeechEventType\022\034\n\030SPEECH_EVENT_UNSPECIF" + + "IED\020\000\022\033\n\027END_OF_SINGLE_UTTERANCE\020\001\"\371\001\n\032S" + + "treamingRecognitionResult\022Q\n\014alternative" + + "s\030\001 \003(\0132;.google.cloud.speech.v1p1beta1." + + "SpeechRecognitionAlternative\022\020\n\010is_final" + + "\030\002 \001(\010\022\021\n\tstability\030\003 \001(\002\0222\n\017result_end_" + + "time\030\004 \001(\0132\031.google.protobuf.Duration\022\023\n" + + "\013channel_tag\030\005 \001(\005\022\032\n\rlanguage_code\030\006 \001(" + + "\tB\003\340A\003\"\321\001\n\027SpeechRecognitionResult\022Q\n\014al" + + "ternatives\030\001 \003(\0132;.google.cloud.speech.v" + + "1p1beta1.SpeechRecognitionAlternative\022\023\n" + + "\013channel_tag\030\002 \001(\005\0222\n\017result_end_time\030\004 " + + "\001(\0132\031.google.protobuf.Duration\022\032\n\rlangua" + + "ge_code\030\005 \001(\tB\003\340A\003\"~\n\034SpeechRecognitionA" + + "lternative\022\022\n\ntranscript\030\001 \001(\t\022\022\n\nconfid" + + "ence\030\002 \001(\002\0226\n\005words\030\003 \003(\0132\'.google.cloud" + + ".speech.v1p1beta1.WordInfo\"\242\001\n\010WordInfo\022" + + "-\n\nstart_time\030\001 \001(\0132\031.google.protobuf.Du" + + "ration\022+\n\010end_time\030\002 \001(\0132\031.google.protob" + + "uf.Duration\022\014\n\004word\030\003 \001(\t\022\022\n\nconfidence\030" + + "\004 \001(\002\022\030\n\013speaker_tag\030\005 \001(\005B\003\340A\0032\202\005\n\006Spee" + + "ch\022\245\001\n\tRecognize\022/.google.cloud.speech.v" + + "1p1beta1.RecognizeRequest\0320.google.cloud" + + ".speech.v1p1beta1.RecognizeResponse\"5\202\323\344" + + "\223\002 \"\033/v1p1beta1/speech:recognize:\001*\332A\014co" + + "nfig,audio\022\362\001\n\024LongRunningRecognize\022:.go" + + "ogle.cloud.speech.v1p1beta1.LongRunningR" + + "ecognizeRequest\032\035.google.longrunning.Ope" + + "ration\"\177\202\323\344\223\002+\"&/v1p1beta1/speech:longru" + + "nningrecognize:\001*\332A\014config,audio\312A<\n\034Lon" + + "gRunningRecognizeResponse\022\034LongRunningRe" + + "cognizeMetadata\022\217\001\n\022StreamingRecognize\0228" + + ".google.cloud.speech.v1p1beta1.Streaming" + + "RecognizeRequest\0329.google.cloud.speech.v" + + "1p1beta1.StreamingRecognizeResponse\"\000(\0010" + + "\001\032I\312A\025speech.googleapis.com\322A.https://ww" + + "w.googleapis.com/auth/cloud-platformB\200\001\n" + + "!com.google.cloud.speech.v1p1beta1B\013Spee" + + "chProtoP\001ZCgoogle.golang.org/genproto/go" + + "ogleapis/cloud/speech/v1p1beta1;speech\370\001" + + "\001\242\002\003GCSb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeRequest_descriptor, + new java.lang.String[] { + "Config", "Audio", + }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeRequest_descriptor, + new java.lang.String[] { + "Config", "Audio", "OutputConfig", + }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor, + new java.lang.String[] { + "GcsUri", "OutputType", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor, + new java.lang.String[] { + "StreamingConfig", "AudioContent", "StreamingRequest", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor, + new java.lang.String[] { + "Config", "SingleUtterance", "InterimResults", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionConfig_descriptor, + new java.lang.String[] { + "Encoding", + "SampleRateHertz", + "AudioChannelCount", + "EnableSeparateRecognitionPerChannel", + "LanguageCode", + "AlternativeLanguageCodes", + "MaxAlternatives", + "ProfanityFilter", + "Adaptation", + "TranscriptNormalization", + "SpeechContexts", + "EnableWordTimeOffsets", + "EnableWordConfidence", + "EnableAutomaticPunctuation", + "EnableSpokenPunctuation", + "EnableSpokenEmojis", + "EnableSpeakerDiarization", + "DiarizationSpeakerCount", + "DiarizationConfig", + "Metadata", + "Model", + "UseEnhanced", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeakerDiarizationConfig_descriptor, + new java.lang.String[] { + "EnableSpeakerDiarization", "MinSpeakerCount", "MaxSpeakerCount", "SpeakerTag", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionMetadata_descriptor, + new java.lang.String[] { + "InteractionType", + "IndustryNaicsCodeOfAudio", + "MicrophoneDistance", + "OriginalMediaType", + "RecordingDeviceType", + "RecordingDeviceName", + "OriginalMimeType", + "ObfuscatedId", + "AudioTopic", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechContext_descriptor, + new java.lang.String[] { + "Phrases", "Boost", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognitionAudio_descriptor, + new java.lang.String[] { + "Content", "Uri", "AudioSource", + }); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_RecognizeResponse_descriptor, + new java.lang.String[] { + "Results", "TotalBilledTime", + }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeResponse_descriptor, + new java.lang.String[] { + "Results", "TotalBilledTime", "OutputConfig", "OutputError", + }); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_LongRunningRecognizeMetadata_descriptor, + new java.lang.String[] { + "ProgressPercent", "StartTime", "LastUpdateTime", "Uri", "OutputConfig", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor, + new java.lang.String[] { + "Error", "Results", "SpeechEventType", "TotalBilledTime", + }); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor, + new java.lang.String[] { + "Alternatives", "IsFinal", "Stability", "ResultEndTime", "ChannelTag", "LanguageCode", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor, + new java.lang.String[] { + "Alternatives", "ChannelTag", "ResultEndTime", "LanguageCode", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor, + new java.lang.String[] { + "Transcript", "Confidence", "Words", + }); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor, + new java.lang.String[] { + "StartTime", "EndTime", "Word", "Confidence", "SpeakerTag", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.speech.v1p1beta1.SpeechResourceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java similarity index 76% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java index d016049a2..d81d4ca98 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternative.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Alternative hypotheses (a.k.a. n-best list).
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ -public final class SpeechRecognitionAlternative extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionAlternative extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) SpeechRecognitionAlternativeOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionAlternative.newBuilder() to construct. private SpeechRecognitionAlternative(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionAlternative() { transcript_ = ""; words_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private SpeechRecognitionAlternative() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionAlternative(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionAlternative( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,33 +72,36 @@ private SpeechRecognitionAlternative( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - transcript_ = s; - break; - } - case 21: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - confidence_ = input.readFloat(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - words_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + transcript_ = s; + break; } - words_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 21: + { + confidence_ = input.readFloat(); + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + words_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + words_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.WordInfo.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -89,8 +109,7 @@ private SpeechRecognitionAlternative( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { words_ = java.util.Collections.unmodifiableList(words_); @@ -99,22 +118,27 @@ private SpeechRecognitionAlternative( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } public static final int TRANSCRIPT_FIELD_NUMBER = 1; private volatile java.lang.Object transcript_; /** + * + * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -123,6 +147,7 @@ private SpeechRecognitionAlternative(
    * 
* * string transcript = 1; + * * @return The transcript. */ @java.lang.Override @@ -131,14 +156,15 @@ public java.lang.String getTranscript() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transcript_ = s; return s; } } /** + * + * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -147,16 +173,15 @@ public java.lang.String getTranscript() {
    * 
* * string transcript = 1; + * * @return The bytes for transcript. */ @java.lang.Override - public com.google.protobuf.ByteString - getTranscriptBytes() { + public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); transcript_ = b; return b; } else { @@ -167,6 +192,8 @@ public java.lang.String getTranscript() { public static final int CONFIDENCE_FIELD_NUMBER = 2; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -178,6 +205,7 @@ public java.lang.String getTranscript() {
    * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -188,6 +216,8 @@ public float getConfidence() { public static final int WORDS_FIELD_NUMBER = 3; private java.util.List words_; /** + * + * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -201,6 +231,8 @@ public java.util.List getWordsList()
     return words_;
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -210,11 +242,13 @@ public java.util.List getWordsList()
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getWordsOrBuilderList() {
     return words_;
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -228,6 +262,8 @@ public int getWordsCount() {
     return words_.size();
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -241,6 +277,8 @@ public com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index) {
     return words_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -250,12 +288,12 @@ public com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index) {
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int index) {
     return words_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -267,8 +305,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transcript_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, transcript_);
     }
@@ -291,12 +328,10 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, transcript_);
     }
     if (java.lang.Float.floatToRawIntBits(confidence_) != 0) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeFloatSize(2, confidence_);
+      size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, confidence_);
     }
     for (int i = 0; i < words_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(3, words_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, words_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -306,20 +341,18 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
+    com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other =
+        (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) obj;
 
-    if (!getTranscript()
-        .equals(other.getTranscript())) return false;
+    if (!getTranscript().equals(other.getTranscript())) return false;
     if (java.lang.Float.floatToIntBits(getConfidence())
-        != java.lang.Float.floatToIntBits(
-            other.getConfidence())) return false;
-    if (!getWordsList()
-        .equals(other.getWordsList())) return false;
+        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
+    if (!getWordsList().equals(other.getWordsList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -334,8 +367,7 @@ public int hashCode() {
     hash = (37 * hash) + TRANSCRIPT_FIELD_NUMBER;
     hash = (53 * hash) + getTranscript().hashCode();
     hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER;
-    hash = (53 * hash) + java.lang.Float.floatToIntBits(
-        getConfidence());
+    hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence());
     if (getWordsCount() > 0) {
       hash = (37 * hash) + WORDS_FIELD_NUMBER;
       hash = (53 * hash) + getWordsList().hashCode();
@@ -346,117 +378,127 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(byte[] data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
+      byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Alternative hypotheses (a.k.a. n-best list).
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.newBuilder() @@ -464,17 +506,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getWordsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -492,13 +534,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionAlternative_descriptor; } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative + getDefaultInstanceForType() { return com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance(); } @@ -513,7 +556,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative result = + new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative(this); int from_bitField0_ = bitField0_; result.transcript_ = transcript_; result.confidence_ = confidence_; @@ -534,38 +578,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative buildParti public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) other); } else { super.mergeFrom(other); return this; @@ -573,7 +618,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) return this; + if (other + == com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()) + return this; if (!other.getTranscript().isEmpty()) { transcript_ = other.transcript_; onChanged(); @@ -599,9 +646,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlte wordsBuilder_ = null; words_ = other.words_; bitField0_ = (bitField0_ & ~0x00000001); - wordsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWordsFieldBuilder() : null; + wordsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getWordsFieldBuilder() + : null; } else { wordsBuilder_.addAllMessages(other.words_); } @@ -626,7 +674,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,10 +685,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object transcript_ = ""; /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -647,13 +700,13 @@ public Builder mergeFrom(
      * 
* * string transcript = 1; + * * @return The transcript. */ public java.lang.String getTranscript() { java.lang.Object ref = transcript_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); transcript_ = s; return s; @@ -662,6 +715,8 @@ public java.lang.String getTranscript() { } } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -670,15 +725,14 @@ public java.lang.String getTranscript() {
      * 
* * string transcript = 1; + * * @return The bytes for transcript. */ - public com.google.protobuf.ByteString - getTranscriptBytes() { + public com.google.protobuf.ByteString getTranscriptBytes() { java.lang.Object ref = transcript_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); transcript_ = b; return b; } else { @@ -686,6 +740,8 @@ public java.lang.String getTranscript() { } } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -694,20 +750,22 @@ public java.lang.String getTranscript() {
      * 
* * string transcript = 1; + * * @param value The transcript to set. * @return This builder for chaining. */ - public Builder setTranscript( - java.lang.String value) { + public Builder setTranscript(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + transcript_ = value; onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -716,15 +774,18 @@ public Builder setTranscript(
      * 
* * string transcript = 1; + * * @return This builder for chaining. */ public Builder clearTranscript() { - + transcript_ = getDefaultInstance().getTranscript(); onChanged(); return this; } /** + * + * *
      * Transcript text representing the words that the user spoke.
      * In languages that use spaces to separate words, the transcript might have a
@@ -733,23 +794,25 @@ public Builder clearTranscript() {
      * 
* * string transcript = 1; + * * @param value The bytes for transcript to set. * @return This builder for chaining. */ - public Builder setTranscriptBytes( - com.google.protobuf.ByteString value) { + public Builder setTranscriptBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + transcript_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -761,6 +824,7 @@ public Builder setTranscriptBytes(
      * 
* * float confidence = 2; + * * @return The confidence. */ @java.lang.Override @@ -768,6 +832,8 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -779,16 +845,19 @@ public float getConfidence() {
      * 
* * float confidence = 2; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -800,28 +869,35 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 2; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } private java.util.List words_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureWordsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { words_ = new java.util.ArrayList(words_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> wordsBuilder_; + com.google.cloud.speech.v1p1beta1.WordInfo, + com.google.cloud.speech.v1p1beta1.WordInfo.Builder, + com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> + wordsBuilder_; /** + * + * *
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -838,6 +914,8 @@ public java.util.List getWordsList()
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -854,6 +932,8 @@ public int getWordsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -870,6 +950,8 @@ public com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -878,8 +960,7 @@ public com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index) {
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public Builder setWords(
-        int index, com.google.cloud.speech.v1p1beta1.WordInfo value) {
+    public Builder setWords(int index, com.google.cloud.speech.v1p1beta1.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -893,6 +974,8 @@ public Builder setWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -913,6 +996,8 @@ public Builder setWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -935,6 +1020,8 @@ public Builder addWords(com.google.cloud.speech.v1p1beta1.WordInfo value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -943,8 +1030,7 @@ public Builder addWords(com.google.cloud.speech.v1p1beta1.WordInfo value) {
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public Builder addWords(
-        int index, com.google.cloud.speech.v1p1beta1.WordInfo value) {
+    public Builder addWords(int index, com.google.cloud.speech.v1p1beta1.WordInfo value) {
       if (wordsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -958,6 +1044,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -966,8 +1054,7 @@ public Builder addWords(
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public Builder addWords(
-        com.google.cloud.speech.v1p1beta1.WordInfo.Builder builderForValue) {
+    public Builder addWords(com.google.cloud.speech.v1p1beta1.WordInfo.Builder builderForValue) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
         words_.add(builderForValue.build());
@@ -978,6 +1065,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -998,6 +1087,8 @@ public Builder addWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1010,8 +1101,7 @@ public Builder addAllWords(
         java.lang.Iterable values) {
       if (wordsBuilder_ == null) {
         ensureWordsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, words_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_);
         onChanged();
       } else {
         wordsBuilder_.addAllMessages(values);
@@ -1019,6 +1109,8 @@ public Builder addAllWords(
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1038,6 +1130,8 @@ public Builder clearWords() {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1057,6 +1151,8 @@ public Builder removeWords(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1065,11 +1161,12 @@ public Builder removeWords(int index) {
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1p1beta1.WordInfo.Builder getWordsBuilder(
-        int index) {
+    public com.google.cloud.speech.v1p1beta1.WordInfo.Builder getWordsBuilder(int index) {
       return getWordsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1078,14 +1175,16 @@ public com.google.cloud.speech.v1p1beta1.WordInfo.Builder getWordsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int index) {
       if (wordsBuilder_ == null) {
-        return words_.get(index);  } else {
+        return words_.get(index);
+      } else {
         return wordsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1094,8 +1193,8 @@ public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsOrBuilderList() {
+    public java.util.List
+        getWordsOrBuilderList() {
       if (wordsBuilder_ != null) {
         return wordsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1103,6 +1202,8 @@ public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1112,10 +1213,12 @@ public com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
     public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder() {
-      return getWordsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1p1beta1.WordInfo.getDefaultInstance());
+      return getWordsFieldBuilder()
+          .addBuilder(com.google.cloud.speech.v1p1beta1.WordInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1124,12 +1227,13 @@ public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder() {
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder(
-        int index) {
-      return getWordsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1p1beta1.WordInfo.getDefaultInstance());
+    public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder(int index) {
+      return getWordsFieldBuilder()
+          .addBuilder(index, com.google.cloud.speech.v1p1beta1.WordInfo.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * A list of word-specific information for each recognized word.
      * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -1138,27 +1242,30 @@ public com.google.cloud.speech.v1p1beta1.WordInfo.Builder addWordsBuilder(
      *
      * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
      */
-    public java.util.List 
-         getWordsBuilderList() {
+    public java.util.List
+        getWordsBuilderList() {
       return getWordsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.WordInfo,
+            com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
+            com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>
         getWordsFieldBuilder() {
       if (wordsBuilder_ == null) {
-        wordsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.WordInfo, com.google.cloud.speech.v1p1beta1.WordInfo.Builder, com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
-                words_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        wordsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.WordInfo,
+                com.google.cloud.speech.v1p1beta1.WordInfo.Builder,
+                com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder>(
+                words_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         words_ = null;
       }
       return wordsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1168,30 +1275,32 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
-  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative DEFAULT_INSTANCE;
+  private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative();
   }
 
-  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstance() {
+  public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
+      getDefaultInstance() {
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public SpeechRecognitionAlternative parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new SpeechRecognitionAlternative(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public SpeechRecognitionAlternative parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new SpeechRecognitionAlternative(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1203,9 +1312,8 @@ public com.google.protobuf.Parser getParserForType
   }
 
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getDefaultInstanceForType() {
+  public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative
+      getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
similarity index 79%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
index 24dc349ab..8b8eb60eb 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionAlternativeOrBuilder.java
@@ -1,13 +1,31 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface SpeechRecognitionAlternativeOrBuilder extends
+public interface SpeechRecognitionAlternativeOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -16,10 +34,13 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    * 
* * string transcript = 1; + * * @return The transcript. */ java.lang.String getTranscript(); /** + * + * *
    * Transcript text representing the words that the user spoke.
    * In languages that use spaces to separate words, the transcript might have a
@@ -28,12 +49,14 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    * 
* * string transcript = 1; + * * @return The bytes for transcript. */ - com.google.protobuf.ByteString - getTranscriptBytes(); + com.google.protobuf.ByteString getTranscriptBytes(); /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -45,11 +68,14 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    * 
* * float confidence = 2; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -58,9 +84,10 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
-  java.util.List 
-      getWordsList();
+  java.util.List getWordsList();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -71,6 +98,8 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.WordInfo getWords(int index);
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -81,6 +110,8 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    */
   int getWordsCount();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -89,9 +120,11 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
-  java.util.List 
+  java.util.List
       getWordsOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of word-specific information for each recognized word.
    * Note: When `enable_speaker_diarization` is true, you will see all the words
@@ -100,6 +133,5 @@ public interface SpeechRecognitionAlternativeOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.WordInfo words = 3;
    */
-  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(
-      int index);
+  com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder getWordsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
similarity index 74%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
index 9636912bb..a0a52c4e8 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResult.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * A speech recognition result corresponding to a portion of the audio.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ -public final class SpeechRecognitionResult extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SpeechRecognitionResult extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) SpeechRecognitionResultOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SpeechRecognitionResult.newBuilder() to construct. private SpeechRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SpeechRecognitionResult() { alternatives_ = java.util.Collections.emptyList(); languageCode_ = ""; @@ -26,16 +44,15 @@ private SpeechRecognitionResult() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SpeechRecognitionResult(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SpeechRecognitionResult( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,46 +72,54 @@ private SpeechRecognitionResult( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - alternatives_.add( - input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry)); - break; - } - case 16: { - - channelTag_ = input.readInt32(); - break; - } - case 34: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (resultEndTime_ != null) { - subBuilder = resultEndTime_.toBuilder(); + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + alternatives_ = + new java.util.ArrayList< + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>(); + mutable_bitField0_ |= 0x00000001; + } + alternatives_.add( + input.readMessage( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), + extensionRegistry)); + break; } - resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(resultEndTime_); - resultEndTime_ = subBuilder.buildPartial(); + case 16: + { + channelTag_ = input.readInt32(); + break; } + case 34: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (resultEndTime_ != null) { + subBuilder = resultEndTime_.toBuilder(); + } + resultEndTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resultEndTime_); + resultEndTime_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,8 +127,7 @@ private SpeechRecognitionResult( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { alternatives_ = java.util.Collections.unmodifiableList(alternatives_); @@ -112,22 +136,28 @@ private SpeechRecognitionResult( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } public static final int ALTERNATIVES_FIELD_NUMBER = 1; - private java.util.List alternatives_; + private java.util.List + alternatives_; /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -135,13 +165,17 @@ private SpeechRecognitionResult(
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public java.util.List getAlternativesList() { + public java.util.List + getAlternativesList() { return alternatives_; } /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -149,14 +183,18 @@ public java.util.List
    *
-   * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
+   * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -164,13 +202,16 @@ public java.util.List
    *
-   * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
+   * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
+   * 
    */
   @java.lang.Override
   public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -178,13 +219,16 @@ public int getAlternativesCount() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index) { return alternatives_.get(index); } /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -192,17 +236,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder + getAlternativesOrBuilder(int index) { return alternatives_.get(index); } public static final int CHANNEL_TAG_FIELD_NUMBER = 2; private int channelTag_; /** + * + * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -210,6 +257,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -220,12 +268,15 @@ public int getChannelTag() { public static final int RESULT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndTime_; /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ @java.lang.Override @@ -233,19 +284,26 @@ public boolean hasResultEndTime() { return resultEndTime_ != null; } /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ @java.lang.Override public com.google.protobuf.Duration getResultEndTime() { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -261,6 +319,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int LANGUAGE_CODE_FIELD_NUMBER = 5;
   private volatile java.lang.Object languageCode_;
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -268,6 +328,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -276,14 +337,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -291,16 +353,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -309,6 +370,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -320,8 +382,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -344,16 +405,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < alternatives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, alternatives_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, alternatives_.get(i)); } if (channelTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, channelTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, channelTag_); } if (resultEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResultEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -366,24 +424,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other = + (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getChannelTag() - != other.getChannelTag()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getChannelTag() != other.getChannelTag()) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -413,117 +468,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A speech recognition result corresponding to a portion of the audio.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.SpeechRecognitionResult} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.class, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.newBuilder() @@ -531,17 +596,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAlternativesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -565,9 +630,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_SpeechRecognitionResult_descriptor; } @java.lang.Override @@ -586,7 +651,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() { - com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); + com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult result = + new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(this); int from_bitField0_ = bitField0_; if (alternativesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -612,38 +678,39 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) other); } else { super.mergeFrom(other); return this; @@ -651,7 +718,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult other) { - if (other == com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult.getDefaultInstance()) + return this; if (alternativesBuilder_ == null) { if (!other.alternatives_.isEmpty()) { if (alternatives_.isEmpty()) { @@ -670,9 +738,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.SpeechRecognitionResu alternativesBuilder_ = null; alternatives_ = other.alternatives_; bitField0_ = (bitField0_ & ~0x00000001); - alternativesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAlternativesFieldBuilder() : null; + alternativesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAlternativesFieldBuilder() + : null; } else { alternativesBuilder_.addAllMessages(other.alternatives_); } @@ -707,7 +776,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -716,21 +786,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List alternatives_ = - java.util.Collections.emptyList(); + private java.util.List + alternatives_ = java.util.Collections.emptyList(); + private void ensureAlternativesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - alternatives_ = new java.util.ArrayList(alternatives_); + alternatives_ = + new java.util.ArrayList( + alternatives_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_; + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + alternativesBuilder_; /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -738,9 +817,11 @@ private void ensureAlternativesIsMutable() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public java.util.List getAlternativesList() { + public java.util.List + getAlternativesList() { if (alternativesBuilder_ == null) { return java.util.Collections.unmodifiableList(alternatives_); } else { @@ -748,6 +829,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -755,7 +838,8 @@ public java.util.List * - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public int getAlternativesCount() { if (alternativesBuilder_ == null) { @@ -765,6 +849,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -772,9 +858,11 @@ public int getAlternativesCount() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives( + int index) { if (alternativesBuilder_ == null) { return alternatives_.get(index); } else { @@ -782,6 +870,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -789,7 +879,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder setAlternatives( int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { @@ -806,6 +897,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -813,10 +906,12 @@ public Builder setAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder setAlternatives( - int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { + int index, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.set(index, builderForValue.build()); @@ -827,6 +922,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -834,9 +931,11 @@ public Builder setAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public Builder addAlternatives(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { + public Builder addAlternatives( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { if (alternativesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -850,6 +949,8 @@ public Builder addAlternatives(com.google.cloud.speech.v1p1beta1.SpeechRecogniti return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -857,7 +958,8 @@ public Builder addAlternatives(com.google.cloud.speech.v1p1beta1.SpeechRecogniti
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder addAlternatives( int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { @@ -874,6 +976,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -881,7 +985,8 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder addAlternatives( com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { @@ -895,6 +1000,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -902,10 +1009,12 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder addAlternatives( - int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { + int index, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.add(index, builderForValue.build()); @@ -916,6 +1025,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -923,14 +1034,15 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder addAllAlternatives( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, alternatives_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternatives_); onChanged(); } else { alternativesBuilder_.addAllMessages(values); @@ -938,6 +1050,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -945,7 +1059,8 @@ public Builder addAllAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder clearAlternatives() { if (alternativesBuilder_ == null) { @@ -958,6 +1073,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -965,7 +1082,8 @@ public Builder clearAlternatives() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder removeAlternatives(int index) { if (alternativesBuilder_ == null) { @@ -978,6 +1096,8 @@ public Builder removeAlternatives(int index) { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -985,13 +1105,16 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder getAlternativesBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder + getAlternativesBuilder(int index) { return getAlternativesFieldBuilder().getBuilder(index); } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -999,16 +1122,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ge
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder + getAlternativesOrBuilder(int index) { if (alternativesBuilder_ == null) { - return alternatives_.get(index); } else { + return alternatives_.get(index); + } else { return alternativesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1016,10 +1143,12 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public java.util.List - getAlternativesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + getAlternativesOrBuilderList() { if (alternativesBuilder_ != null) { return alternativesBuilder_.getMessageOrBuilderList(); } else { @@ -1027,6 +1156,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1034,13 +1165,18 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder addAlternativesBuilder() { - return getAlternativesFieldBuilder().addBuilder( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder + addAlternativesBuilder() { + return getAlternativesFieldBuilder() + .addBuilder( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1048,14 +1184,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder addAlternativesBuilder( - int index) { - return getAlternativesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder + addAlternativesBuilder(int index) { + return getAlternativesFieldBuilder() + .addBuilder( + index, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1063,29 +1204,35 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public java.util.List - getAlternativesBuilderList() { + public java.util.List + getAlternativesBuilderList() { return getAlternativesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> getAlternativesFieldBuilder() { if (alternativesBuilder_ == null) { - alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>( - alternatives_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + alternativesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>( + alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); alternatives_ = null; } return alternativesBuilder_; } - private int channelTag_ ; + private int channelTag_; /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1093,6 +1240,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ @java.lang.Override @@ -1100,6 +1248,8 @@ public int getChannelTag() { return channelTag_; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1107,16 +1257,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 2; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1124,10 +1277,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 2; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1135,36 +1289,49 @@ public Builder clearChannelTag() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1186,6 +1353,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1193,8 +1362,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1205,6 +1373,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1216,7 +1386,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1228,6 +1400,8 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1247,6 +1421,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1255,11 +1431,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1271,11 +1449,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
       if (resultEndTimeBuilder_ != null) {
         return resultEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+        return resultEndTime_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : resultEndTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1284,14 +1465,17 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getResultEndTimeFieldBuilder() {
       if (resultEndTimeBuilder_ == null) {
-        resultEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getResultEndTime(),
-                getParentForChildren(),
-                isClean());
+        resultEndTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getResultEndTime(), getParentForChildren(), isClean());
         resultEndTime_ = null;
       }
       return resultEndTimeBuilder_;
@@ -1299,6 +1483,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
 
     private java.lang.Object languageCode_ = "";
     /**
+     *
+     *
      * 
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1306,13 +1492,13 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1321,6 +1507,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1328,15 +1516,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1344,6 +1531,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1351,20 +1540,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1372,15 +1563,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1388,23 +1582,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1414,12 +1608,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) private static final com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult(); } @@ -1428,16 +1622,16 @@ public static com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SpeechRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SpeechRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpeechRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SpeechRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1452,6 +1646,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.SpeechRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java similarity index 79% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java index 55e3c978e..b836a20e7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface SpeechRecognitionResultOrBuilder extends +public interface SpeechRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.SpeechRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -15,11 +33,14 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -27,10 +48,13 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -38,10 +62,13 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ int getAlternativesCount(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -49,11 +76,14 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -61,12 +91,15 @@ public interface SpeechRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** + * + * *
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -74,31 +107,40 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 2; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -109,6 +151,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -116,10 +160,13 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -127,8 +174,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java new file mode 100644 index 000000000..006c71cf0 --- /dev/null +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/SpeechResourceProto.java @@ -0,0 +1,173 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/speech/v1p1beta1/resource.proto + +package com.google.cloud.speech.v1p1beta1; + +public final class SpeechResourceProto { + private SpeechResourceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n,google/cloud/speech/v1p1beta1/resource" + + ".proto\022\035google.cloud.speech.v1p1beta1\032\031g" + + "oogle/api/resource.proto\"\203\002\n\013CustomClass" + + "\022\014\n\004name\030\001 \001(\t\022\027\n\017custom_class_id\030\002 \001(\t\022" + + "C\n\005items\030\003 \003(\01324.google.cloud.speech.v1p" + + "1beta1.CustomClass.ClassItem\032\032\n\tClassIte" + + "m\022\r\n\005value\030\001 \001(\t:l\352Ai\n!speech.googleapis" + + ".com/CustomClass\022Dprojects/{project}/loc" + + "ations/{location}/customClasses/{custom_" + + "class}\"\371\001\n\tPhraseSet\022\014\n\004name\030\001 \001(\t\022@\n\007ph" + + "rases\030\002 \003(\0132/.google.cloud.speech.v1p1be" + + "ta1.PhraseSet.Phrase\022\r\n\005boost\030\004 \001(\002\032&\n\006P" + + "hrase\022\r\n\005value\030\001 \001(\t\022\r\n\005boost\030\002 \001(\002:e\352Ab" + + "\n\037speech.googleapis.com/PhraseSet\022?proje" + + "cts/{project}/locations/{location}/phras" + + "eSets/{phrase_set}\"\332\001\n\020SpeechAdaptation\022" + + "=\n\013phrase_sets\030\001 \003(\0132(.google.cloud.spee" + + "ch.v1p1beta1.PhraseSet\022C\n\025phrase_set_ref" + + "erences\030\002 \003(\tB$\372A!\n\037speech.googleapis.co" + + "m/PhraseSet\022B\n\016custom_classes\030\003 \003(\0132*.go" + + "ogle.cloud.speech.v1p1beta1.CustomClass\"" + + "\252\001\n\027TranscriptNormalization\022M\n\007entries\030\001" + + " \003(\0132<.google.cloud.speech.v1p1beta1.Tra" + + "nscriptNormalization.Entry\032@\n\005Entry\022\016\n\006s" + + "earch\030\001 \001(\t\022\017\n\007replace\030\002 \001(\t\022\026\n\016case_sen" + + "sitive\030\003 \001(\010B\210\001\n!com.google.cloud.speech" + + ".v1p1beta1B\023SpeechResourceProtoP\001ZCgoogl" + + "e.golang.org/genproto/googleapis/cloud/s" + + "peech/v1p1beta1;speech\370\001\001\242\002\003GCSb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor, + new java.lang.String[] { + "Name", "CustomClassId", "Items", + }); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor = + internal_static_google_cloud_speech_v1p1beta1_CustomClass_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_CustomClass_ClassItem_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor, + new java.lang.String[] { + "Name", "Phrases", "Boost", + }); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor = + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_PhraseSet_Phrase_descriptor, + new java.lang.String[] { + "Value", "Boost", + }); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_SpeechAdaptation_descriptor, + new java.lang.String[] { + "PhraseSets", "PhraseSetReferences", "CustomClasses", + }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor, + new java.lang.String[] { + "Entries", + }); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor = + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor, + new java.lang.String[] { + "Search", "Replace", "CaseSensitive", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java index cdf053e41..2f4bbc518 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfig.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Provides information to the recognizer that specifies how to process the
  * request.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
  */
-public final class StreamingRecognitionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognitionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
     StreamingRecognitionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionConfig.newBuilder() to construct.
   private StreamingRecognitionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StreamingRecognitionConfig() {
-  }
+
+  private StreamingRecognitionConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognitionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognitionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,36 +69,40 @@ private StreamingRecognitionConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            config_ = input.readMessage(com.google.cloud.speech.v1p1beta1.RecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
+          case 16:
+            {
+              singleUtterance_ = input.readBool();
+              break;
             }
-
-            break;
-          }
-          case 16: {
-
-            singleUtterance_ = input.readBool();
-            break;
-          }
-          case 24: {
-
-            interimResults_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 24:
+            {
+              interimResults_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -90,35 +110,42 @@ private StreamingRecognitionConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
   }
 
   public static final int CONFIG_FIELD_NUMBER = 1;
   private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
   /**
+   *
+   *
    * 
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ @java.lang.Override @@ -126,25 +153,36 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { @@ -154,6 +192,8 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB public static final int SINGLE_UTTERANCE_FIELD_NUMBER = 2; private boolean singleUtterance_; /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -176,6 +216,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -186,6 +227,8 @@ public boolean getSingleUtterance() { public static final int INTERIM_RESULTS_FIELD_NUMBER = 3; private boolean interimResults_; /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -194,6 +237,7 @@ public boolean getSingleUtterance() {
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -202,6 +246,7 @@ public boolean getInterimResults() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,8 +258,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (config_ != null) { output.writeMessage(1, getConfig()); } @@ -234,16 +278,13 @@ public int getSerializedSize() { size = 0; if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConfig()); } if (singleUtterance_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, singleUtterance_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, singleUtterance_); } if (interimResults_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, interimResults_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, interimResults_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -253,22 +294,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other = + (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) obj; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } - if (getSingleUtterance() - != other.getSingleUtterance()) return false; - if (getInterimResults() - != other.getInterimResults()) return false; + if (getSingleUtterance() != other.getSingleUtterance()) return false; + if (getInterimResults() != other.getInterimResults()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -285,107 +324,113 @@ public int hashCode() { hash = (53 * hash) + getConfig().hashCode(); } hash = (37 * hash) + SINGLE_UTTERANCE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSingleUtterance()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSingleUtterance()); hash = (37 * hash) + INTERIM_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getInterimResults()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInterimResults()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request.
@@ -393,21 +438,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.newBuilder()
@@ -415,16 +462,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -442,13 +488,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig
+        getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
     }
 
@@ -463,7 +510,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(this);
       if (configBuilder_ == null) {
         result.config_ = config_;
       } else {
@@ -479,38 +527,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -518,7 +567,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig other) {
-      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance())
+        return this;
       if (other.hasConfig()) {
         mergeConfig(other.getConfig());
       }
@@ -547,7 +598,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -559,42 +611,61 @@ public Builder mergeFrom(
 
     private com.google.cloud.speech.v1p1beta1.RecognitionConfig config_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> configBuilder_;
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>
+        configBuilder_;
     /**
+     *
+     *
      * 
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { @@ -610,12 +681,16 @@ public Builder setConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig val return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setConfig( com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder builderForValue) { @@ -629,18 +704,24 @@ public Builder setConfig( return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig value) { if (configBuilder_ == null) { if (config_ != null) { config_ = - com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.RecognitionConfig.newBuilder(config_) + .mergeFrom(value) + .buildPartial(); } else { config_ = value; } @@ -652,12 +733,16 @@ public Builder mergeConfig(com.google.cloud.speech.v1p1beta1.RecognitionConfig v return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearConfig() { if (configBuilder_ == null) { @@ -671,58 +756,76 @@ public Builder clearConfig() { return this; } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder getConfigBuilder() { - + onChanged(); return getConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder() { if (configBuilder_ != null) { return configBuilder_.getMessageOrBuilder(); } else { - return config_ == null ? - com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.speech.v1p1beta1.RecognitionConfig.getDefaultInstance() + : config_; } } /** + * + * *
      * Required. Provides information to the recognizer that specifies how to
      * process the request.
      * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder> getConfigFieldBuilder() { if (configBuilder_ == null) { - configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.RecognitionConfig, com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( - getConfig(), - getParentForChildren(), - isClean()); + configBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.RecognitionConfig, + com.google.cloud.speech.v1p1beta1.RecognitionConfig.Builder, + com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); config_ = null; } return configBuilder_; } - private boolean singleUtterance_ ; + private boolean singleUtterance_; /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -745,6 +848,7 @@ public com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrB
      * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ @java.lang.Override @@ -752,6 +856,8 @@ public boolean getSingleUtterance() { return singleUtterance_; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -774,16 +880,19 @@ public boolean getSingleUtterance() {
      * 
* * bool single_utterance = 2; + * * @param value The singleUtterance to set. * @return This builder for chaining. */ public Builder setSingleUtterance(boolean value) { - + singleUtterance_ = value; onChanged(); return this; } /** + * + * *
      * If `false` or omitted, the recognizer will perform continuous
      * recognition (continuing to wait for and process audio even if the user
@@ -806,17 +915,20 @@ public Builder setSingleUtterance(boolean value) {
      * 
* * bool single_utterance = 2; + * * @return This builder for chaining. */ public Builder clearSingleUtterance() { - + singleUtterance_ = false; onChanged(); return this; } - private boolean interimResults_ ; + private boolean interimResults_; /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -825,6 +937,7 @@ public Builder clearSingleUtterance() {
      * 
* * bool interim_results = 3; + * * @return The interimResults. */ @java.lang.Override @@ -832,6 +945,8 @@ public boolean getInterimResults() { return interimResults_; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -840,16 +955,19 @@ public boolean getInterimResults() {
      * 
* * bool interim_results = 3; + * * @param value The interimResults to set. * @return This builder for chaining. */ public Builder setInterimResults(boolean value) { - + interimResults_ = value; onChanged(); return this; } /** + * + * *
      * If `true`, interim results (tentative hypotheses) may be
      * returned as they become available (these interim results are indicated with
@@ -858,17 +976,18 @@ public Builder setInterimResults(boolean value) {
      * 
* * bool interim_results = 3; + * * @return This builder for chaining. */ public Builder clearInterimResults() { - + interimResults_ = false; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -878,12 +997,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) - private static final com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig(); } @@ -892,16 +1012,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -916,6 +1036,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java similarity index 70% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java index 73a8d60b1..40aa63db7 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionConfigOrBuilder.java @@ -1,43 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionConfigOrBuilder extends +public interface StreamingRecognitionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The config. */ com.google.cloud.speech.v1p1beta1.RecognitionConfig getConfig(); /** + * + * *
    * Required. Provides information to the recognizer that specifies how to
    * process the request.
    * 
* - * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.RecognitionConfigOrBuilder getConfigOrBuilder(); /** + * + * *
    * If `false` or omitted, the recognizer will perform continuous
    * recognition (continuing to wait for and process audio even if the user
@@ -60,11 +92,14 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool single_utterance = 2; + * * @return The singleUtterance. */ boolean getSingleUtterance(); /** + * + * *
    * If `true`, interim results (tentative hypotheses) may be
    * returned as they become available (these interim results are indicated with
@@ -73,6 +108,7 @@ public interface StreamingRecognitionConfigOrBuilder extends
    * 
* * bool interim_results = 3; + * * @return The interimResults. */ boolean getInterimResults(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java similarity index 75% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java index 21fdf7d84..374690210 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResult.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * A streaming speech recognition result corresponding to a portion of the audio
  * that is currently being processed.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
  */
-public final class StreamingRecognitionResult extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognitionResult extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
     StreamingRecognitionResultOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognitionResult.newBuilder() to construct.
   private StreamingRecognitionResult(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognitionResult() {
     alternatives_ = java.util.Collections.emptyList();
     languageCode_ = "";
@@ -27,16 +45,15 @@ private StreamingRecognitionResult() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognitionResult();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognitionResult(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,56 +73,64 @@ private StreamingRecognitionResult(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              alternatives_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                alternatives_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              alternatives_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(),
+                      extensionRegistry));
+              break;
             }
-            alternatives_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.parser(), extensionRegistry));
-            break;
-          }
-          case 16: {
-
-            isFinal_ = input.readBool();
-            break;
-          }
-          case 29: {
-
-            stability_ = input.readFloat();
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (resultEndTime_ != null) {
-              subBuilder = resultEndTime_.toBuilder();
+          case 16:
+            {
+              isFinal_ = input.readBool();
+              break;
             }
-            resultEndTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(resultEndTime_);
-              resultEndTime_ = subBuilder.buildPartial();
+          case 29:
+            {
+              stability_ = input.readFloat();
+              break;
             }
+          case 34:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (resultEndTime_ != null) {
+                subBuilder = resultEndTime_.toBuilder();
+              }
+              resultEndTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(resultEndTime_);
+                resultEndTime_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 40:
+            {
+              channelTag_ = input.readInt32();
+              break;
+            }
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 40: {
-
-            channelTag_ = input.readInt32();
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            languageCode_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              languageCode_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -113,8 +138,7 @@ private StreamingRecognitionResult(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         alternatives_ = java.util.Collections.unmodifiableList(alternatives_);
@@ -123,22 +147,28 @@ private StreamingRecognitionResult(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
   }
 
   public static final int ALTERNATIVES_FIELD_NUMBER = 1;
-  private java.util.List alternatives_;
+  private java.util.List
+      alternatives_;
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -146,13 +176,17 @@ private StreamingRecognitionResult(
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public java.util.List getAlternativesList() { + public java.util.List + getAlternativesList() { return alternatives_; } /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -160,14 +194,18 @@ public java.util.List
    *
-   * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
+   * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>
       getAlternativesOrBuilderList() {
     return alternatives_;
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -175,13 +213,16 @@ public java.util.List
    *
-   * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
+   * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1;
+   * 
    */
   @java.lang.Override
   public int getAlternativesCount() {
     return alternatives_.size();
   }
   /**
+   *
+   *
    * 
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -189,13 +230,16 @@ public int getAlternativesCount() {
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index) { return alternatives_.get(index); } /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -203,17 +247,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder + getAlternativesOrBuilder(int index) { return alternatives_.get(index); } public static final int IS_FINAL_FIELD_NUMBER = 2; private boolean isFinal_; /** + * + * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -223,6 +270,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
    * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -233,6 +281,8 @@ public boolean getIsFinal() { public static final int STABILITY_FIELD_NUMBER = 3; private float stability_; /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -242,6 +292,7 @@ public boolean getIsFinal() {
    * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -252,12 +303,15 @@ public float getStability() { public static final int RESULT_END_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Duration resultEndTime_; /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ @java.lang.Override @@ -265,19 +319,26 @@ public boolean hasResultEndTime() { return resultEndTime_ != null; } /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ @java.lang.Override public com.google.protobuf.Duration getResultEndTime() { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -293,6 +354,8 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
   public static final int CHANNEL_TAG_FIELD_NUMBER = 5;
   private int channelTag_;
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -300,6 +363,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -310,6 +374,8 @@ public int getChannelTag() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; private volatile java.lang.Object languageCode_; /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -317,6 +383,7 @@ public int getChannelTag() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ @java.lang.Override @@ -325,14 +392,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -340,16 +408,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -358,6 +425,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -369,8 +437,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < alternatives_.size(); i++) { output.writeMessage(1, alternatives_.get(i)); } @@ -399,24 +466,19 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < alternatives_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, alternatives_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, alternatives_.get(i)); } if (isFinal_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, isFinal_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isFinal_); } if (java.lang.Float.floatToRawIntBits(stability_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, stability_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, stability_); } if (resultEndTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResultEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResultEndTime()); } if (channelTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, channelTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, channelTag_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, languageCode_); @@ -429,29 +491,24 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other = + (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) obj; - if (!getAlternativesList() - .equals(other.getAlternativesList())) return false; - if (getIsFinal() - != other.getIsFinal()) return false; + if (!getAlternativesList().equals(other.getAlternativesList())) return false; + if (getIsFinal() != other.getIsFinal()) return false; if (java.lang.Float.floatToIntBits(getStability()) - != java.lang.Float.floatToIntBits( - other.getStability())) return false; + != java.lang.Float.floatToIntBits(other.getStability())) return false; if (hasResultEndTime() != other.hasResultEndTime()) return false; if (hasResultEndTime()) { - if (!getResultEndTime() - .equals(other.getResultEndTime())) return false; + if (!getResultEndTime().equals(other.getResultEndTime())) return false; } - if (getChannelTag() - != other.getChannelTag()) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (getChannelTag() != other.getChannelTag()) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -468,11 +525,9 @@ public int hashCode() { hash = (53 * hash) + getAlternativesList().hashCode(); } hash = (37 * hash) + IS_FINAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsFinal()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsFinal()); hash = (37 * hash) + STABILITY_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getStability()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getStability()); if (hasResultEndTime()) { hash = (37 * hash) + RESULT_END_TIME_FIELD_NUMBER; hash = (53 * hash) + getResultEndTime().hashCode(); @@ -487,96 +542,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * A streaming speech recognition result corresponding to a portion of the audio
    * that is currently being processed.
@@ -584,21 +647,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognitionResult}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognitionResult)
       com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.newBuilder()
@@ -606,17 +671,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getAlternativesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -644,13 +709,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognitionResult_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult
+        getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance();
     }
 
@@ -665,7 +731,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(this);
       int from_bitField0_ = bitField0_;
       if (alternativesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -693,38 +760,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -732,7 +800,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult other) {
-      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance())
+        return this;
       if (alternativesBuilder_ == null) {
         if (!other.alternatives_.isEmpty()) {
           if (alternatives_.isEmpty()) {
@@ -751,9 +821,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognitionR
             alternativesBuilder_ = null;
             alternatives_ = other.alternatives_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            alternativesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAlternativesFieldBuilder() : null;
+            alternativesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAlternativesFieldBuilder()
+                    : null;
           } else {
             alternativesBuilder_.addAllMessages(other.alternatives_);
           }
@@ -794,7 +865,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -803,21 +875,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List alternatives_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        alternatives_ = java.util.Collections.emptyList();
+
     private void ensureAlternativesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        alternatives_ = new java.util.ArrayList(alternatives_);
+        alternatives_ =
+            new java.util.ArrayList(
+                alternatives_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> alternativesBuilder_;
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder,
+            com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>
+        alternativesBuilder_;
 
     /**
+     *
+     *
      * 
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -825,9 +906,11 @@ private void ensureAlternativesIsMutable() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public java.util.List getAlternativesList() { + public java.util.List + getAlternativesList() { if (alternativesBuilder_ == null) { return java.util.Collections.unmodifiableList(alternatives_); } else { @@ -835,6 +918,8 @@ public java.util.List * May contain one or more recognition hypotheses (up to the * maximum specified in `max_alternatives`). @@ -842,7 +927,8 @@ public java.util.List * - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public int getAlternativesCount() { if (alternativesBuilder_ == null) { @@ -852,6 +938,8 @@ public int getAlternativesCount() { } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -859,9 +947,11 @@ public int getAlternativesCount() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives( + int index) { if (alternativesBuilder_ == null) { return alternatives_.get(index); } else { @@ -869,6 +959,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -876,7 +968,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlterna
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder setAlternatives( int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { @@ -893,6 +986,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -900,10 +995,12 @@ public Builder setAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder setAlternatives( - int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { + int index, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.set(index, builderForValue.build()); @@ -914,6 +1011,8 @@ public Builder setAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -921,9 +1020,11 @@ public Builder setAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public Builder addAlternatives(com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { + public Builder addAlternatives( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { if (alternativesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -937,6 +1038,8 @@ public Builder addAlternatives(com.google.cloud.speech.v1p1beta1.SpeechRecogniti return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -944,7 +1047,8 @@ public Builder addAlternatives(com.google.cloud.speech.v1p1beta1.SpeechRecogniti
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder addAlternatives( int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative value) { @@ -961,6 +1065,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -968,7 +1074,8 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder addAlternatives( com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { @@ -982,6 +1089,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -989,10 +1098,12 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder addAlternatives( - int index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { + int index, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder builderForValue) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); alternatives_.add(index, builderForValue.build()); @@ -1003,6 +1114,8 @@ public Builder addAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1010,14 +1123,15 @@ public Builder addAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder addAllAlternatives( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (alternativesBuilder_ == null) { ensureAlternativesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, alternatives_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, alternatives_); onChanged(); } else { alternativesBuilder_.addAllMessages(values); @@ -1025,6 +1139,8 @@ public Builder addAllAlternatives( return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1032,7 +1148,8 @@ public Builder addAllAlternatives(
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder clearAlternatives() { if (alternativesBuilder_ == null) { @@ -1045,6 +1162,8 @@ public Builder clearAlternatives() { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1052,7 +1171,8 @@ public Builder clearAlternatives() {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ public Builder removeAlternatives(int index) { if (alternativesBuilder_ == null) { @@ -1065,6 +1185,8 @@ public Builder removeAlternatives(int index) { return this; } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1072,13 +1194,16 @@ public Builder removeAlternatives(int index) {
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder getAlternativesBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder + getAlternativesBuilder(int index) { return getAlternativesFieldBuilder().getBuilder(index); } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1086,16 +1211,20 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ge
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder + getAlternativesOrBuilder(int index) { if (alternativesBuilder_ == null) { - return alternatives_.get(index); } else { + return alternatives_.get(index); + } else { return alternativesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1103,10 +1232,12 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public java.util.List - getAlternativesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + getAlternativesOrBuilderList() { if (alternativesBuilder_ != null) { return alternativesBuilder_.getMessageOrBuilderList(); } else { @@ -1114,6 +1245,8 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g } } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1121,13 +1254,18 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder g
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder addAlternativesBuilder() { - return getAlternativesFieldBuilder().addBuilder( - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder + addAlternativesBuilder() { + return getAlternativesFieldBuilder() + .addBuilder( + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1135,14 +1273,19 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder addAlternativesBuilder( - int index) { - return getAlternativesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder + addAlternativesBuilder(int index) { + return getAlternativesFieldBuilder() + .addBuilder( + index, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.getDefaultInstance()); } /** + * + * *
      * May contain one or more recognition hypotheses (up to the
      * maximum specified in `max_alternatives`).
@@ -1150,29 +1293,35 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * alternative being the most probable, as ranked by the recognizer.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - public java.util.List - getAlternativesBuilderList() { + public java.util.List + getAlternativesBuilderList() { return getAlternativesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder> getAlternativesFieldBuilder() { if (alternativesBuilder_ == null) { - alternativesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>( - alternatives_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + alternativesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder, + com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder>( + alternatives_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); alternatives_ = null; } return alternativesBuilder_; } - private boolean isFinal_ ; + private boolean isFinal_; /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1182,6 +1331,7 @@ public com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative.Builder ad
      * 
* * bool is_final = 2; + * * @return The isFinal. */ @java.lang.Override @@ -1189,6 +1339,8 @@ public boolean getIsFinal() { return isFinal_; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1198,16 +1350,19 @@ public boolean getIsFinal() {
      * 
* * bool is_final = 2; + * * @param value The isFinal to set. * @return This builder for chaining. */ public Builder setIsFinal(boolean value) { - + isFinal_ = value; onChanged(); return this; } /** + * + * *
      * If `false`, this `StreamingRecognitionResult` represents an
      * interim result that may change. If `true`, this is the final time the
@@ -1217,17 +1372,20 @@ public Builder setIsFinal(boolean value) {
      * 
* * bool is_final = 2; + * * @return This builder for chaining. */ public Builder clearIsFinal() { - + isFinal_ = false; onChanged(); return this; } - private float stability_ ; + private float stability_; /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1237,6 +1395,7 @@ public Builder clearIsFinal() {
      * 
* * float stability = 3; + * * @return The stability. */ @java.lang.Override @@ -1244,6 +1403,8 @@ public float getStability() { return stability_; } /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1253,16 +1414,19 @@ public float getStability() {
      * 
* * float stability = 3; + * * @param value The stability to set. * @return This builder for chaining. */ public Builder setStability(float value) { - + stability_ = value; onChanged(); return this; } /** + * + * *
      * An estimate of the likelihood that the recognizer will not
      * change its guess about this interim result. Values range from 0.0
@@ -1272,10 +1436,11 @@ public Builder setStability(float value) {
      * 
* * float stability = 3; + * * @return This builder for chaining. */ public Builder clearStability() { - + stability_ = 0F; onChanged(); return this; @@ -1283,36 +1448,49 @@ public Builder clearStability() { private com.google.protobuf.Duration resultEndTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> resultEndTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + resultEndTimeBuilder_; /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ public boolean hasResultEndTime() { return resultEndTimeBuilder_ != null || resultEndTime_ != null; } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
      * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ public com.google.protobuf.Duration getResultEndTime() { if (resultEndTimeBuilder_ == null) { - return resultEndTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_; + return resultEndTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : resultEndTime_; } else { return resultEndTimeBuilder_.getMessage(); } } /** + * + * *
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1334,6 +1512,8 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1341,8 +1521,7 @@ public Builder setResultEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration result_end_time = 4;
      */
-    public Builder setResultEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setResultEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (resultEndTimeBuilder_ == null) {
         resultEndTime_ = builderForValue.build();
         onChanged();
@@ -1353,6 +1532,8 @@ public Builder setResultEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1364,7 +1545,9 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       if (resultEndTimeBuilder_ == null) {
         if (resultEndTime_ != null) {
           resultEndTime_ =
-            com.google.protobuf.Duration.newBuilder(resultEndTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(resultEndTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           resultEndTime_ = value;
         }
@@ -1376,6 +1559,8 @@ public Builder mergeResultEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1395,6 +1580,8 @@ public Builder clearResultEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1403,11 +1590,13 @@ public Builder clearResultEndTime() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     public com.google.protobuf.Duration.Builder getResultEndTimeBuilder() {
-      
+
       onChanged();
       return getResultEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1419,11 +1608,14 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
       if (resultEndTimeBuilder_ != null) {
         return resultEndTimeBuilder_.getMessageOrBuilder();
       } else {
-        return resultEndTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : resultEndTime_;
+        return resultEndTime_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : resultEndTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset of the end of this result relative to the
      * beginning of the audio.
@@ -1432,21 +1624,26 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * .google.protobuf.Duration result_end_time = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getResultEndTimeFieldBuilder() {
       if (resultEndTimeBuilder_ == null) {
-        resultEndTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getResultEndTime(),
-                getParentForChildren(),
-                isClean());
+        resultEndTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getResultEndTime(), getParentForChildren(), isClean());
         resultEndTime_ = null;
       }
       return resultEndTimeBuilder_;
     }
 
-    private int channelTag_ ;
+    private int channelTag_;
     /**
+     *
+     *
      * 
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1454,6 +1651,7 @@ public com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder() {
      * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ @java.lang.Override @@ -1461,6 +1659,8 @@ public int getChannelTag() { return channelTag_; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1468,16 +1668,19 @@ public int getChannelTag() {
      * 
* * int32 channel_tag = 5; + * * @param value The channelTag to set. * @return This builder for chaining. */ public Builder setChannelTag(int value) { - + channelTag_ = value; onChanged(); return this; } /** + * + * *
      * For multi-channel audio, this is the channel number corresponding to the
      * recognized result for the audio from that channel.
@@ -1485,10 +1688,11 @@ public Builder setChannelTag(int value) {
      * 
* * int32 channel_tag = 5; + * * @return This builder for chaining. */ public Builder clearChannelTag() { - + channelTag_ = 0; onChanged(); return this; @@ -1496,6 +1700,8 @@ public Builder clearChannelTag() { private java.lang.Object languageCode_ = ""; /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1503,13 +1709,13 @@ public Builder clearChannelTag() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1518,6 +1724,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1525,15 +1733,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1541,6 +1748,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1548,20 +1757,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1569,15 +1780,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
      * of the language in this result. This language code was detected to have
@@ -1585,23 +1799,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1611,12 +1825,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) - private static final com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult(); } @@ -1625,16 +1840,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognitionResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognitionResult(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognitionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognitionResult(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1649,6 +1864,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java similarity index 82% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java index 3d6da9c0a..8a2935d37 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognitionResultOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognitionResultOrBuilder extends +public interface StreamingRecognitionResultOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognitionResult) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -15,11 +33,14 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -27,10 +48,13 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative getAlternatives(int index); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -38,10 +62,13 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ int getAlternativesCount(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -49,11 +76,14 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ - java.util.List + java.util.List getAlternativesOrBuilderList(); /** + * + * *
    * May contain one or more recognition hypotheses (up to the
    * maximum specified in `max_alternatives`).
@@ -61,12 +91,15 @@ public interface StreamingRecognitionResultOrBuilder extends
    * alternative being the most probable, as ranked by the recognizer.
    * 
* - * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionAlternative alternatives = 1; + * */ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlternativesOrBuilder( int index); /** + * + * *
    * If `false`, this `StreamingRecognitionResult` represents an
    * interim result that may change. If `true`, this is the final time the
@@ -76,11 +109,14 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * bool is_final = 2; + * * @return The isFinal. */ boolean getIsFinal(); /** + * + * *
    * An estimate of the likelihood that the recognizer will not
    * change its guess about this interim result. Values range from 0.0
@@ -90,31 +126,40 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * float stability = 3; + * * @return The stability. */ float getStability(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return Whether the resultEndTime field is set. */ boolean hasResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
    * 
* * .google.protobuf.Duration result_end_time = 4; + * * @return The resultEndTime. */ com.google.protobuf.Duration getResultEndTime(); /** + * + * *
    * Time offset of the end of this result relative to the
    * beginning of the audio.
@@ -125,6 +170,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
   com.google.protobuf.DurationOrBuilder getResultEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * For multi-channel audio, this is the channel number corresponding to the
    * recognized result for the audio from that channel.
@@ -132,11 +179,14 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * int32 channel_tag = 5; + * * @return The channelTag. */ int getChannelTag(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -144,10 +194,13 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag
    * of the language in this result. This language code was detected to have
@@ -155,8 +208,8 @@ com.google.cloud.speech.v1p1beta1.SpeechRecognitionAlternativeOrBuilder getAlter
    * 
* * string language_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java index 5c7c200e1..8464bea28 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequest.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * The top-level message sent by the client for the `StreamingRecognize` method.
  * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -14,30 +31,29 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
  */
-public final class StreamingRecognizeRequest extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeRequest extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
     StreamingRecognizeRequestOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeRequest.newBuilder() to construct.
   private StreamingRecognizeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private StreamingRecognizeRequest() {
-  }
+
+  private StreamingRecognizeRequest() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeRequest();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeRequest(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,32 +72,42 @@ private StreamingRecognizeRequest(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder = null;
-            if (streamingRequestCase_ == 1) {
-              subBuilder = ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_).toBuilder();
+          case 10:
+            {
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder subBuilder =
+                  null;
+              if (streamingRequestCase_ == 1) {
+                subBuilder =
+                    ((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
+                            streamingRequest_)
+                        .toBuilder();
+              }
+              streamingRequest_ =
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
+                        streamingRequest_);
+                streamingRequest_ = subBuilder.buildPartial();
+              }
+              streamingRequestCase_ = 1;
+              break;
             }
-            streamingRequest_ =
-                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_);
-              streamingRequest_ = subBuilder.buildPartial();
+          case 18:
+            {
+              streamingRequest_ = input.readBytes();
+              streamingRequestCase_ = 2;
+              break;
             }
-            streamingRequestCase_ = 1;
-            break;
-          }
-          case 18: {
-            streamingRequest_ = input.readBytes();
-            streamingRequestCase_ = 2;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -89,35 +115,40 @@ private StreamingRecognizeRequest(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
   }
 
   private int streamingRequestCase_ = 0;
   private java.lang.Object streamingRequest_;
+
   public enum StreamingRequestCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     STREAMING_CONFIG(1),
     AUDIO_CONTENT(2),
     STREAMINGREQUEST_NOT_SET(0);
     private final int value;
+
     private StreamingRequestCase(int value) {
       this.value = value;
     }
@@ -133,25 +164,30 @@ public static StreamingRequestCase valueOf(int value) {
 
     public static StreamingRequestCase forNumber(int value) {
       switch (value) {
-        case 1: return STREAMING_CONFIG;
-        case 2: return AUDIO_CONTENT;
-        case 0: return STREAMINGREQUEST_NOT_SET;
-        default: return null;
+        case 1:
+          return STREAMING_CONFIG;
+        case 2:
+          return AUDIO_CONTENT;
+        case 0:
+          return STREAMINGREQUEST_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public StreamingRequestCase
-  getStreamingRequestCase() {
-    return StreamingRequestCase.forNumber(
-        streamingRequestCase_);
+  public StreamingRequestCase getStreamingRequestCase() {
+    return StreamingRequestCase.forNumber(streamingRequestCase_);
   }
 
   public static final int STREAMING_CONFIG_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -159,6 +195,7 @@ public int getNumber() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -166,6 +203,8 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 1; } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -173,16 +212,19 @@ public boolean hasStreamingConfig() {
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreamingConfig() { if (streamingRequestCase_ == 1) { - return (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_; + return (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_; } return com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance(); } /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -192,15 +234,18 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming
    * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
+  public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder
+      getStreamingConfigOrBuilder() {
     if (streamingRequestCase_ == 1) {
-       return (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_;
+      return (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_;
     }
     return com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
   }
 
   public static final int AUDIO_CONTENT_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -213,6 +258,7 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ @java.lang.Override @@ -220,6 +266,8 @@ public boolean hasAudioContent() { return streamingRequestCase_ == 2; } /** + * + * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -232,6 +280,7 @@ public boolean hasAudioContent() {
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ @java.lang.Override @@ -243,6 +292,7 @@ public com.google.protobuf.ByteString getAudioContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,14 +304,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (streamingRequestCase_ == 1) { - output.writeMessage(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + output.writeMessage( + 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - output.writeBytes( - 2, (com.google.protobuf.ByteString) streamingRequest_); + output.writeBytes(2, (com.google.protobuf.ByteString) streamingRequest_); } unknownFields.writeTo(output); } @@ -273,13 +322,14 @@ public int getSerializedSize() { size = 0; if (streamingRequestCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_); } if (streamingRequestCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize( - 2, (com.google.protobuf.ByteString) streamingRequest_); + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 2, (com.google.protobuf.ByteString) streamingRequest_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -289,22 +339,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest other = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) obj; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest other = + (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) obj; if (!getStreamingRequestCase().equals(other.getStreamingRequestCase())) return false; switch (streamingRequestCase_) { case 1: - if (!getStreamingConfig() - .equals(other.getStreamingConfig())) return false; + if (!getStreamingConfig().equals(other.getStreamingConfig())) return false; break; case 2: - if (!getAudioContent() - .equals(other.getAudioContent())) return false; + if (!getAudioContent().equals(other.getAudioContent())) return false; break; case 0: default: @@ -338,96 +387,104 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * The top-level message sent by the client for the `StreamingRecognize` method.
    * Multiple `StreamingRecognizeRequest` messages are sent. The first message
@@ -438,21 +495,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeRequest}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequestOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.newBuilder()
@@ -460,16 +519,15 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
-      }
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -479,9 +537,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeRequest_descriptor;
     }
 
     @java.lang.Override
@@ -500,7 +558,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(this);
       if (streamingRequestCase_ == 1) {
         if (streamingConfigBuilder_ == null) {
           result.streamingRequest_ = streamingRequest_;
@@ -520,38 +579,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -559,19 +619,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest other) {
-      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.getDefaultInstance())
+        return this;
       switch (other.getStreamingRequestCase()) {
-        case STREAMING_CONFIG: {
-          mergeStreamingConfig(other.getStreamingConfig());
-          break;
-        }
-        case AUDIO_CONTENT: {
-          setAudioContent(other.getAudioContent());
-          break;
-        }
-        case STREAMINGREQUEST_NOT_SET: {
-          break;
-        }
+        case STREAMING_CONFIG:
+          {
+            mergeStreamingConfig(other.getStreamingConfig());
+            break;
+          }
+        case AUDIO_CONTENT:
+          {
+            setAudioContent(other.getAudioContent());
+            break;
+          }
+        case STREAMINGREQUEST_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -592,7 +656,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -601,12 +666,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int streamingRequestCase_ = 0;
     private java.lang.Object streamingRequest_;
-    public StreamingRequestCase
-        getStreamingRequestCase() {
-      return StreamingRequestCase.forNumber(
-          streamingRequestCase_);
+
+    public StreamingRequestCase getStreamingRequestCase() {
+      return StreamingRequestCase.forNumber(streamingRequestCase_);
     }
 
     public Builder clearStreamingRequest() {
@@ -616,10 +681,14 @@ public Builder clearStreamingRequest() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> streamingConfigBuilder_;
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
+        streamingConfigBuilder_;
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -627,6 +696,7 @@ public Builder clearStreamingRequest() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ @java.lang.Override @@ -634,6 +704,8 @@ public boolean hasStreamingConfig() { return streamingRequestCase_ == 1; } /** + * + * *
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -641,6 +713,7 @@ public boolean hasStreamingConfig() {
      * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ @java.lang.Override @@ -658,6 +731,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming } } /** + * + * *
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -666,7 +741,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreaming
      *
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public Builder setStreamingConfig(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig value) {
+    public Builder setStreamingConfig(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -680,6 +756,8 @@ public Builder setStreamingConfig(com.google.cloud.speech.v1p1beta1.StreamingRec
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -700,6 +778,8 @@ public Builder setStreamingConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -708,12 +788,19 @@ public Builder setStreamingConfig(
      *
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public Builder mergeStreamingConfig(com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig value) {
+    public Builder mergeStreamingConfig(
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig value) {
       if (streamingConfigBuilder_ == null) {
-        if (streamingRequestCase_ == 1 &&
-            streamingRequest_ != com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance()) {
-          streamingRequest_ = com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.newBuilder((com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_)
-              .mergeFrom(value).buildPartial();
+        if (streamingRequestCase_ == 1
+            && streamingRequest_
+                != com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig
+                    .getDefaultInstance()) {
+          streamingRequest_ =
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.newBuilder(
+                      (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig)
+                          streamingRequest_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           streamingRequest_ = value;
         }
@@ -729,6 +816,8 @@ public Builder mergeStreamingConfig(com.google.cloud.speech.v1p1beta1.StreamingR
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -754,6 +843,8 @@ public Builder clearStreamingConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -762,10 +853,13 @@ public Builder clearStreamingConfig() {
      *
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder getStreamingConfigBuilder() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder
+        getStreamingConfigBuilder() {
       return getStreamingConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -775,7 +869,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder getS
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder
+        getStreamingConfigOrBuilder() {
       if ((streamingRequestCase_ == 1) && (streamingConfigBuilder_ != null)) {
         return streamingConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -786,6 +881,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
       }
     }
     /**
+     *
+     *
      * 
      * Provides information to the recognizer that specifies how to process the
      * request. The first `StreamingRecognizeRequest` message must contain a
@@ -795,25 +892,34 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
      * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>
         getStreamingConfigFieldBuilder() {
       if (streamingConfigBuilder_ == null) {
         if (!(streamingRequestCase_ == 1)) {
-          streamingRequest_ = com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
+          streamingRequest_ =
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.getDefaultInstance();
         }
-        streamingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
+        streamingConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig.Builder,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder>(
                 (com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig) streamingRequest_,
                 getParentForChildren(),
                 isClean());
         streamingRequest_ = null;
       }
       streamingRequestCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return streamingConfigBuilder_;
     }
 
     /**
+     *
+     *
      * 
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -826,12 +932,15 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder get
      * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ public boolean hasAudioContent() { return streamingRequestCase_ == 2; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -844,6 +953,7 @@ public boolean hasAudioContent() {
      * 
* * bytes audio_content = 2; + * * @return The audioContent. */ public com.google.protobuf.ByteString getAudioContent() { @@ -853,6 +963,8 @@ public com.google.protobuf.ByteString getAudioContent() { return com.google.protobuf.ByteString.EMPTY; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -865,19 +977,22 @@ public com.google.protobuf.ByteString getAudioContent() {
      * 
* * bytes audio_content = 2; + * * @param value The audioContent to set. * @return This builder for chaining. */ public Builder setAudioContent(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - streamingRequestCase_ = 2; + throw new NullPointerException(); + } + streamingRequestCase_ = 2; streamingRequest_ = value; onChanged(); return this; } /** + * + * *
      * The audio data to be recognized. Sequential chunks of audio data are sent
      * in sequential `StreamingRecognizeRequest` messages. The first
@@ -890,6 +1005,7 @@ public Builder setAudioContent(com.google.protobuf.ByteString value) {
      * 
* * bytes audio_content = 2; + * * @return This builder for chaining. */ public Builder clearAudioContent() { @@ -900,9 +1016,9 @@ public Builder clearAudioContent() { } return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -912,12 +1028,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) private static final com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest(); } @@ -926,16 +1042,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamingRecognizeRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamingRecognizeRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamingRecognizeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamingRecognizeRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -950,6 +1066,4 @@ public com.google.protobuf.Parser getParserForType() public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java similarity index 78% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java index e77bf66cf..f6b61734f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface StreamingRecognizeRequestOrBuilder extends +public interface StreamingRecognizeRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -15,10 +33,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return Whether the streamingConfig field is set. */ boolean hasStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -26,10 +47,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1; + * * @return The streamingConfig. */ com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfig getStreamingConfig(); /** + * + * *
    * Provides information to the recognizer that specifies how to process the
    * request. The first `StreamingRecognizeRequest` message must contain a
@@ -38,9 +62,12 @@ public interface StreamingRecognizeRequestOrBuilder extends
    *
    * .google.cloud.speech.v1p1beta1.StreamingRecognitionConfig streaming_config = 1;
    */
-  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder getStreamingConfigOrBuilder();
+  com.google.cloud.speech.v1p1beta1.StreamingRecognitionConfigOrBuilder
+      getStreamingConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -53,10 +80,13 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return Whether the audioContent field is set. */ boolean hasAudioContent(); /** + * + * *
    * The audio data to be recognized. Sequential chunks of audio data are sent
    * in sequential `StreamingRecognizeRequest` messages. The first
@@ -69,9 +99,11 @@ public interface StreamingRecognizeRequestOrBuilder extends
    * 
* * bytes audio_content = 2; + * * @return The audioContent. */ com.google.protobuf.ByteString getAudioContent(); - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase getStreamingRequestCase(); + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeRequest.StreamingRequestCase + getStreamingRequestCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java similarity index 76% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java index cf81fdc8c..3aebd6d1d 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * `StreamingRecognizeResponse` is the only message returned to the client by
  * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -45,15 +62,16 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
  */
-public final class StreamingRecognizeResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class StreamingRecognizeResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     StreamingRecognizeResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use StreamingRecognizeResponse.newBuilder() to construct.
   private StreamingRecognizeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private StreamingRecognizeResponse() {
     results_ = java.util.Collections.emptyList();
     speechEventType_ = 0;
@@ -61,16 +79,15 @@ private StreamingRecognizeResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new StreamingRecognizeResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private StreamingRecognizeResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -90,54 +107,63 @@ private StreamingRecognizeResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.rpc.Status.Builder subBuilder = null;
-            if (error_ != null) {
-              subBuilder = error_.toBuilder();
+          case 10:
+            {
+              com.google.rpc.Status.Builder subBuilder = null;
+              if (error_ != null) {
+                subBuilder = error_.toBuilder();
+              }
+              error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(error_);
+                error_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            error_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(error_);
-              error_ = subBuilder.buildPartial();
+          case 18:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                results_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              results_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(),
+                      extensionRegistry));
+              break;
             }
+          case 32:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 18: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              results_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              speechEventType_ = rawValue;
+              break;
             }
-            results_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.parser(), extensionRegistry));
-            break;
-          }
-          case 32: {
-            int rawValue = input.readEnum();
-
-            speechEventType_ = rawValue;
-            break;
-          }
-          case 42: {
-            com.google.protobuf.Duration.Builder subBuilder = null;
-            if (totalBilledTime_ != null) {
-              subBuilder = totalBilledTime_.toBuilder();
+          case 42:
+            {
+              com.google.protobuf.Duration.Builder subBuilder = null;
+              if (totalBilledTime_ != null) {
+                subBuilder = totalBilledTime_.toBuilder();
+              }
+              totalBilledTime_ =
+                  input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(totalBilledTime_);
+                totalBilledTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            totalBilledTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(totalBilledTime_);
-              totalBilledTime_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -145,8 +171,7 @@ private StreamingRecognizeResponse(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         results_ = java.util.Collections.unmodifiableList(results_);
@@ -155,29 +180,35 @@ private StreamingRecognizeResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechProto
+        .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* * Protobuf enum {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType} */ - public enum SpeechEventType - implements com.google.protobuf.ProtocolMessageEnum { + public enum SpeechEventType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
      * No speech event specified.
      * 
@@ -186,6 +217,8 @@ public enum SpeechEventType */ SPEECH_EVENT_UNSPECIFIED(0), /** + * + * *
      * This event indicates that the server has detected the end of the user's
      * speech utterance and expects no additional speech. Therefore, the server
@@ -203,6 +236,8 @@ public enum SpeechEventType
     ;
 
     /**
+     *
+     *
      * 
      * No speech event specified.
      * 
@@ -211,6 +246,8 @@ public enum SpeechEventType */ public static final int SPEECH_EVENT_UNSPECIFIED_VALUE = 0; /** + * + * *
      * This event indicates that the server has detected the end of the user's
      * speech utterance and expects no additional speech. Therefore, the server
@@ -225,7 +262,6 @@ public enum SpeechEventType
      */
     public static final int END_OF_SINGLE_UTTERANCE_VALUE = 1;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -250,39 +286,43 @@ public static SpeechEventType valueOf(int value) {
      */
     public static SpeechEventType forNumber(int value) {
       switch (value) {
-        case 0: return SPEECH_EVENT_UNSPECIFIED;
-        case 1: return END_OF_SINGLE_UTTERANCE;
-        default: return null;
+        case 0:
+          return SPEECH_EVENT_UNSPECIFIED;
+        case 1:
+          return END_OF_SINGLE_UTTERANCE;
+        default:
+          return null;
       }
     }
 
-    public static com.google.protobuf.Internal.EnumLiteMap
-        internalGetValueMap() {
+    public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
       return internalValueMap;
     }
-    private static final com.google.protobuf.Internal.EnumLiteMap<
-        SpeechEventType> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public SpeechEventType findValueByNumber(int number) {
-              return SpeechEventType.forNumber(number);
-            }
-          };
 
-    public final com.google.protobuf.Descriptors.EnumValueDescriptor
-        getValueDescriptor() {
+    private static final com.google.protobuf.Internal.EnumLiteMap
+        internalValueMap =
+            new com.google.protobuf.Internal.EnumLiteMap() {
+              public SpeechEventType findValueByNumber(int number) {
+                return SpeechEventType.forNumber(number);
+              }
+            };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalStateException(
             "Can't get the descriptor of an unrecognized enum value.");
       }
       return getDescriptor().getValues().get(ordinal());
     }
-    public final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptorForType() {
+
+    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
       return getDescriptor();
     }
-    public static final com.google.protobuf.Descriptors.EnumDescriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final SpeechEventType[] VALUES = values();
@@ -290,8 +330,7 @@ public SpeechEventType findValueByNumber(int number) {
     public static SpeechEventType valueOf(
         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
       if (desc.getType() != getDescriptor()) {
-        throw new java.lang.IllegalArgumentException(
-          "EnumValueDescriptor is not for this type.");
+        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
       }
       if (desc.getIndex() == -1) {
         return UNRECOGNIZED;
@@ -311,12 +350,15 @@ private SpeechEventType(int value) {
   public static final int ERROR_FIELD_NUMBER = 1;
   private com.google.rpc.Status error_;
   /**
+   *
+   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ @java.lang.Override @@ -324,12 +366,15 @@ public boolean hasError() { return error_ != null; } /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return The error. */ @java.lang.Override @@ -337,6 +382,8 @@ public com.google.rpc.Status getError() { return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; } /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -352,6 +399,8 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
   public static final int RESULTS_FIELD_NUMBER = 2;
   private java.util.List results_;
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -362,10 +411,13 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List getResultsList() {
+  public java.util.List
+      getResultsList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -376,11 +428,14 @@ public java.util.Listrepeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
       getResultsOrBuilderList() {
     return results_;
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -395,6 +450,8 @@ public int getResultsCount() {
     return results_.size();
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -409,6 +466,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getResults(i
     return results_.get(index);
   }
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -427,39 +486,59 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
   public static final int SPEECH_EVENT_TYPE_FIELD_NUMBER = 4;
   private int speechEventType_;
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ - @java.lang.Override public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + @java.lang.Override + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED + : result; } public static final int TOTAL_BILLED_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Duration totalBilledTime_; /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ @java.lang.Override @@ -467,19 +546,26 @@ public boolean hasTotalBilledTime() { return totalBilledTime_ != null; } /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ @java.lang.Override public com.google.protobuf.Duration getTotalBilledTime() { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
@@ -493,6 +579,7 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -504,15 +591,17 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     if (error_ != null) {
       output.writeMessage(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
       output.writeMessage(2, results_.get(i));
     }
-    if (speechEventType_ != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
+    if (speechEventType_
+        != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType
+            .SPEECH_EVENT_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
@@ -528,20 +617,19 @@ public int getSerializedSize() {
 
     size = 0;
     if (error_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, getError());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getError());
     }
     for (int i = 0; i < results_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, results_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, results_.get(i));
     }
-    if (speechEventType_ != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.SPEECH_EVENT_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(4, speechEventType_);
+    if (speechEventType_
+        != com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType
+            .SPEECH_EVENT_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, speechEventType_);
     }
     if (totalBilledTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, getTotalBilledTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTotalBilledTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -551,25 +639,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
+    com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other =
+        (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) obj;
 
     if (hasError() != other.hasError()) return false;
     if (hasError()) {
-      if (!getError()
-          .equals(other.getError())) return false;
+      if (!getError().equals(other.getError())) return false;
     }
-    if (!getResultsList()
-        .equals(other.getResultsList())) return false;
+    if (!getResultsList().equals(other.getResultsList())) return false;
     if (speechEventType_ != other.speechEventType_) return false;
     if (hasTotalBilledTime() != other.hasTotalBilledTime()) return false;
     if (hasTotalBilledTime()) {
-      if (!getTotalBilledTime()
-          .equals(other.getTotalBilledTime())) return false;
+      if (!getTotalBilledTime().equals(other.getTotalBilledTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -602,96 +688,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * `StreamingRecognizeResponse` is the only message returned to the client by
    * `StreamingRecognize`. A series of zero or more `StreamingRecognizeResponse`
@@ -733,21 +827,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.StreamingRecognizeResponse}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
       com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class, com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.class,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.newBuilder()
@@ -755,17 +851,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getResultsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -793,13 +889,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechProto
+          .internal_static_google_cloud_speech_v1p1beta1_StreamingRecognizeResponse_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse
+        getDefaultInstanceForType() {
       return com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance();
     }
 
@@ -814,7 +911,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial() {
-      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
+      com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse result =
+          new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse(this);
       int from_bitField0_ = bitField0_;
       if (errorBuilder_ == null) {
         result.error_ = error_;
@@ -844,38 +942,39 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -883,7 +982,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse other) {
-      if (other == com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.getDefaultInstance())
+        return this;
       if (other.hasError()) {
         mergeError(other.getError());
       }
@@ -905,9 +1006,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.StreamingRecognizeRes
             resultsBuilder_ = null;
             results_ = other.results_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            resultsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getResultsFieldBuilder() : null;
+            resultsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getResultsFieldBuilder()
+                    : null;
           } else {
             resultsBuilder_.addAllMessages(other.results_);
           }
@@ -938,7 +1040,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -947,30 +1050,38 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private com.google.rpc.Status error_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> errorBuilder_;
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
+        errorBuilder_;
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ public boolean hasError() { return errorBuilder_ != null || error_ != null; } /** + * + * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
      * 
* * .google.rpc.Status error = 1; + * * @return The error. */ public com.google.rpc.Status getError() { @@ -981,6 +1092,8 @@ public com.google.rpc.Status getError() { } } /** + * + * *
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1002,6 +1115,8 @@ public Builder setError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1009,8 +1124,7 @@ public Builder setError(com.google.rpc.Status value) {
      *
      * .google.rpc.Status error = 1;
      */
-    public Builder setError(
-        com.google.rpc.Status.Builder builderForValue) {
+    public Builder setError(com.google.rpc.Status.Builder builderForValue) {
       if (errorBuilder_ == null) {
         error_ = builderForValue.build();
         onChanged();
@@ -1021,6 +1135,8 @@ public Builder setError(
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1031,8 +1147,7 @@ public Builder setError(
     public Builder mergeError(com.google.rpc.Status value) {
       if (errorBuilder_ == null) {
         if (error_ != null) {
-          error_ =
-            com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
+          error_ = com.google.rpc.Status.newBuilder(error_).mergeFrom(value).buildPartial();
         } else {
           error_ = value;
         }
@@ -1044,6 +1159,8 @@ public Builder mergeError(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1063,6 +1180,8 @@ public Builder clearError() {
       return this;
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1071,11 +1190,13 @@ public Builder clearError() {
      * .google.rpc.Status error = 1;
      */
     public com.google.rpc.Status.Builder getErrorBuilder() {
-      
+
       onChanged();
       return getErrorFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1087,11 +1208,12 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
       if (errorBuilder_ != null) {
         return errorBuilder_.getMessageOrBuilder();
       } else {
-        return error_ == null ?
-            com.google.rpc.Status.getDefaultInstance() : error_;
+        return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_;
       }
     }
     /**
+     *
+     *
      * 
      * If set, returns a [google.rpc.Status][google.rpc.Status] message that
      * specifies the error for the operation.
@@ -1100,32 +1222,40 @@ public com.google.rpc.StatusOrBuilder getErrorOrBuilder() {
      * .google.rpc.Status error = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> 
+            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>
         getErrorFieldBuilder() {
       if (errorBuilder_ == null) {
-        errorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>(
-                getError(),
-                getParentForChildren(),
-                isClean());
+        errorBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.rpc.Status,
+                com.google.rpc.Status.Builder,
+                com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean());
         error_ = null;
       }
       return errorBuilder_;
     }
 
     private java.util.List results_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureResultsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        results_ = new java.util.ArrayList(results_);
+        results_ =
+            new java.util.ArrayList(
+                results_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> resultsBuilder_;
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
+        resultsBuilder_;
 
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1135,7 +1265,8 @@ private void ensureResultsIsMutable() {
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List getResultsList() {
+    public java.util.List
+        getResultsList() {
       if (resultsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(results_);
       } else {
@@ -1143,6 +1274,8 @@ public java.util.List
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1160,6 +1293,8 @@ public int getResultsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1177,6 +1312,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getResults(i
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1201,6 +1338,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1211,7 +1350,8 @@ public Builder setResults(
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
     public Builder setResults(
-        int index, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.set(index, builderForValue.build());
@@ -1222,6 +1362,8 @@ public Builder setResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1245,6 +1387,8 @@ public Builder addResults(com.google.cloud.speech.v1p1beta1.StreamingRecognition
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1269,6 +1413,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1290,6 +1436,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1300,7 +1448,8 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
     public Builder addResults(
-        int index, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder builderForValue) {
+        int index,
+        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder builderForValue) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
         results_.add(index, builderForValue.build());
@@ -1311,6 +1460,8 @@ public Builder addResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1321,11 +1472,11 @@ public Builder addResults(
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
     public Builder addAllResults(
-        java.lang.Iterable values) {
+        java.lang.Iterable
+            values) {
       if (resultsBuilder_ == null) {
         ensureResultsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, results_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);
         onChanged();
       } else {
         resultsBuilder_.addAllMessages(values);
@@ -1333,6 +1484,8 @@ public Builder addAllResults(
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1353,6 +1506,8 @@ public Builder clearResults() {
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1373,6 +1528,8 @@ public Builder removeResults(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1387,6 +1544,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder getR
       return getResultsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1396,14 +1555,17 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder getR
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResultsOrBuilder(
-        int index) {
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder
+        getResultsOrBuilder(int index) {
       if (resultsBuilder_ == null) {
-        return results_.get(index);  } else {
+        return results_.get(index);
+      } else {
         return resultsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1413,8 +1575,9 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsOrBuilderList() {
+    public java.util.List<
+            ? extends com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
+        getResultsOrBuilderList() {
       if (resultsBuilder_ != null) {
         return resultsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1422,6 +1585,8 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
       }
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1431,11 +1596,15 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder get
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addResultsBuilder() {
-      return getResultsFieldBuilder().addBuilder(
-          com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance());
+    public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder
+        addResultsBuilder() {
+      return getResultsFieldBuilder()
+          .addBuilder(
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1447,10 +1616,14 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
      */
     public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addResultsBuilder(
         int index) {
-      return getResultsFieldBuilder().addBuilder(
-          index, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance());
+      return getResultsFieldBuilder()
+          .addBuilder(
+              index,
+              com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * This repeated list contains zero or more results that
      * correspond to consecutive portions of the audio currently being processed.
@@ -1460,20 +1633,23 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
      *
      * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
      */
-    public java.util.List 
-         getResultsBuilderList() {
+    public java.util.List
+        getResultsBuilderList() {
       return getResultsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder> 
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
+            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>
         getResultsFieldBuilder() {
       if (resultsBuilder_ == null) {
-        resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder, com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
-                results_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        resultsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder,
+                com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder>(
+                results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         results_ = null;
       }
       return resultsBuilder_;
@@ -1481,73 +1657,106 @@ public com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult.Builder addR
 
     private int speechEventType_ = 0;
     /**
+     *
+     *
      * 
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ - @java.lang.Override public int getSpeechEventTypeValue() { + @java.lang.Override + public int getSpeechEventTypeValue() { return speechEventType_; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The enum numeric value on the wire for speechEventType to set. * @return This builder for chaining. */ public Builder setSpeechEventTypeValue(int value) { - + speechEventType_ = value; onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ @java.lang.Override - public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType() { + public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + getSpeechEventType() { @SuppressWarnings("deprecation") - com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf(speechEventType_); - return result == null ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.UNRECOGNIZED : result; + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType result = + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType.valueOf( + speechEventType_); + return result == null + ? com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType + .UNRECOGNIZED + : result; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @param value The speechEventType to set. * @return This builder for chaining. */ - public Builder setSpeechEventType(com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { + public Builder setSpeechEventType( + com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType value) { if (value == null) { throw new NullPointerException(); } - + speechEventType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Indicates the type of speech event.
      * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return This builder for chaining. */ public Builder clearSpeechEventType() { - + speechEventType_ = 0; onChanged(); return this; @@ -1555,36 +1764,49 @@ public Builder clearSpeechEventType() { private com.google.protobuf.Duration totalBilledTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> totalBilledTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + totalBilledTimeBuilder_; /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ public boolean hasTotalBilledTime() { return totalBilledTimeBuilder_ != null || totalBilledTime_ != null; } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
      * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ public com.google.protobuf.Duration getTotalBilledTime() { if (totalBilledTimeBuilder_ == null) { - return totalBilledTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_; + return totalBilledTime_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : totalBilledTime_; } else { return totalBilledTimeBuilder_.getMessage(); } } /** + * + * *
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1606,6 +1828,8 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1613,8 +1837,7 @@ public Builder setTotalBilledTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration total_billed_time = 5;
      */
-    public Builder setTotalBilledTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setTotalBilledTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (totalBilledTimeBuilder_ == null) {
         totalBilledTime_ = builderForValue.build();
         onChanged();
@@ -1625,6 +1848,8 @@ public Builder setTotalBilledTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1636,7 +1861,9 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       if (totalBilledTimeBuilder_ == null) {
         if (totalBilledTime_ != null) {
           totalBilledTime_ =
-            com.google.protobuf.Duration.newBuilder(totalBilledTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(totalBilledTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           totalBilledTime_ = value;
         }
@@ -1648,6 +1875,8 @@ public Builder mergeTotalBilledTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1667,6 +1896,8 @@ public Builder clearTotalBilledTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1675,11 +1906,13 @@ public Builder clearTotalBilledTime() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     public com.google.protobuf.Duration.Builder getTotalBilledTimeBuilder() {
-      
+
       onChanged();
       return getTotalBilledTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1691,11 +1924,14 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
       if (totalBilledTimeBuilder_ != null) {
         return totalBilledTimeBuilder_.getMessageOrBuilder();
       } else {
-        return totalBilledTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : totalBilledTime_;
+        return totalBilledTime_ == null
+            ? com.google.protobuf.Duration.getDefaultInstance()
+            : totalBilledTime_;
       }
     }
     /**
+     *
+     *
      * 
      * When available, billed audio seconds for the stream.
      * Set only if this is the last response in the stream.
@@ -1704,21 +1940,24 @@ public com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder() {
      * .google.protobuf.Duration total_billed_time = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getTotalBilledTimeFieldBuilder() {
       if (totalBilledTimeBuilder_ == null) {
-        totalBilledTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getTotalBilledTime(),
-                getParentForChildren(),
-                isClean());
+        totalBilledTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getTotalBilledTime(), getParentForChildren(), isClean());
         totalBilledTime_ = null;
       }
       return totalBilledTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1728,12 +1967,13 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
-  private static final com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse DEFAULT_INSTANCE;
+  private static final com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse
+      DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse();
   }
@@ -1742,16 +1982,16 @@ public static com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDe
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public StreamingRecognizeResponse parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new StreamingRecognizeResponse(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public StreamingRecognizeResponse parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new StreamingRecognizeResponse(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1766,6 +2006,4 @@ public com.google.protobuf.Parser getParserForType()
   public com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
similarity index 81%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
index f8b30e427..d58bc6551 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/StreamingRecognizeResponseOrBuilder.java
@@ -1,33 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
-public interface StreamingRecognizeResponseOrBuilder extends
+public interface StreamingRecognizeResponseOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.StreamingRecognizeResponse)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return Whether the error field is set. */ boolean hasError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
    * 
* * .google.rpc.Status error = 1; + * * @return The error. */ com.google.rpc.Status getError(); /** + * + * *
    * If set, returns a [google.rpc.Status][google.rpc.Status] message that
    * specifies the error for the operation.
@@ -38,6 +62,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
   com.google.rpc.StatusOrBuilder getErrorOrBuilder();
 
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -47,9 +73,10 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
-      getResultsList();
+  java.util.List getResultsList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -61,6 +88,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.StreamingRecognitionResult getResults(int index);
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -72,6 +101,8 @@ public interface StreamingRecognizeResponseOrBuilder extends
    */
   int getResultsCount();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -81,9 +112,11 @@ public interface StreamingRecognizeResponseOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
    */
-  java.util.List 
+  java.util.List
       getResultsOrBuilderList();
   /**
+   *
+   *
    * 
    * This repeated list contains zero or more results that
    * correspond to consecutive portions of the audio currently being processed.
@@ -97,45 +130,63 @@ com.google.cloud.speech.v1p1beta1.StreamingRecognitionResultOrBuilder getResults
       int index);
 
   /**
+   *
+   *
    * 
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The enum numeric value on the wire for speechEventType. */ int getSpeechEventTypeValue(); /** + * + * *
    * Indicates the type of speech event.
    * 
* - * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * .google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4; + * + * * @return The speechEventType. */ com.google.cloud.speech.v1p1beta1.StreamingRecognizeResponse.SpeechEventType getSpeechEventType(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return Whether the totalBilledTime field is set. */ boolean hasTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
    * 
* * .google.protobuf.Duration total_billed_time = 5; + * * @return The totalBilledTime. */ com.google.protobuf.Duration getTotalBilledTime(); /** + * + * *
    * When available, billed audio seconds for the stream.
    * Set only if this is the last response in the stream.
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
similarity index 73%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
index 1f54a67cb..edd251ef4 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalization.java
@@ -1,9 +1,26 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/resource.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Transcription normalization configuration. Use transcription normalization
  * to automatically replace parts of the transcript with phrases of your
@@ -13,31 +30,31 @@
  *
  * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
  */
-public final class TranscriptNormalization extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class TranscriptNormalization extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
     TranscriptNormalizationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use TranscriptNormalization.newBuilder() to construct.
   private TranscriptNormalization(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private TranscriptNormalization() {
     entries_ = java.util.Collections.emptyList();
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new TranscriptNormalization();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private TranscriptNormalization(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,22 +74,27 @@ private TranscriptNormalization(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              entries_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                entries_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              entries_.add(
+                  input.readMessage(
+                      com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(),
+                      extensionRegistry));
+              break;
             }
-            entries_.add(
-                input.readMessage(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.parser(), extensionRegistry));
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -80,8 +102,7 @@ private TranscriptNormalization(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       if (((mutable_bitField0_ & 0x00000001) != 0)) {
         entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -90,89 +111,109 @@ private TranscriptNormalization(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+    return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+        .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
   }
 
-  public interface EntryOrBuilder extends
+  public interface EntryOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The search. */ java.lang.String getSearch(); /** + * + * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The bytes for search. */ - com.google.protobuf.ByteString - getSearchBytes(); + com.google.protobuf.ByteString getSearchBytes(); /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The replace. */ java.lang.String getReplace(); /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The bytes for replace. */ - com.google.protobuf.ByteString - getReplaceBytes(); + com.google.protobuf.ByteString getReplaceBytes(); /** + * + * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ boolean getCaseSensitive(); } /** + * + * *
    * A single replacement configuration.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Entry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Entry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) EntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Entry.newBuilder() to construct. private Entry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Entry() { search_ = ""; replace_ = ""; @@ -180,16 +221,15 @@ private Entry() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Entry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Entry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -208,30 +248,32 @@ private Entry( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - search_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - replace_ = s; - break; - } - case 24: { + search_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - caseSensitive_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + replace_ = s; + break; + } + case 24: + { + caseSensitive_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -239,34 +281,39 @@ private Entry( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } public static final int SEARCH_FIELD_NUMBER = 1; private volatile java.lang.Object search_; /** + * + * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The search. */ @java.lang.Override @@ -275,29 +322,29 @@ public java.lang.String getSearch() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); search_ = s; return s; } } /** + * + * *
      * What to replace. Max length is 100 characters.
      * 
* * string search = 1; + * * @return The bytes for search. */ @java.lang.Override - public com.google.protobuf.ByteString - getSearchBytes() { + public com.google.protobuf.ByteString getSearchBytes() { java.lang.Object ref = search_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); search_ = b; return b; } else { @@ -308,11 +355,14 @@ public java.lang.String getSearch() { public static final int REPLACE_FIELD_NUMBER = 2; private volatile java.lang.Object replace_; /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The replace. */ @java.lang.Override @@ -321,29 +371,29 @@ public java.lang.String getReplace() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replace_ = s; return s; } } /** + * + * *
      * What to replace with. Max length is 100 characters.
      * 
* * string replace = 2; + * * @return The bytes for replace. */ @java.lang.Override - public com.google.protobuf.ByteString - getReplaceBytes() { + public com.google.protobuf.ByteString getReplaceBytes() { java.lang.Object ref = replace_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replace_ = b; return b; } else { @@ -354,11 +404,14 @@ public java.lang.String getReplace() { public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; private boolean caseSensitive_; /** + * + * *
      * Whether the search is case sensitive.
      * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -367,6 +420,7 @@ public boolean getCaseSensitive() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -378,8 +432,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(search_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, search_); } @@ -405,8 +458,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, replace_); } if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, caseSensitive_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -416,19 +468,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other = + (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) obj; - if (!getSearch() - .equals(other.getSearch())) return false; - if (!getReplace() - .equals(other.getReplace())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) return false; + if (!getSearch().equals(other.getSearch())) return false; + if (!getReplace().equals(other.getReplace())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -445,95 +495,102 @@ public int hashCode() { hash = (37 * hash) + REPLACE_FIELD_NUMBER; hash = (53 * hash) + getReplace().hashCode(); hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -543,44 +600,49 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A single replacement configuration.
      * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.class, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder.class); } - // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() + // Construct using + // com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -594,13 +656,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechResourceProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_Entry_descriptor; } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + getDefaultInstanceForType() { return com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance(); } @@ -615,7 +678,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry result = + new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(this); result.search_ = search_; result.replace_ = replace_; result.caseSensitive_ = caseSensitive_; @@ -627,46 +691,52 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry buildPart public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { - if (other == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry other) { + if (other + == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()) + return this; if (!other.getSearch().isEmpty()) { search_ = other.search_; onChanged(); @@ -697,7 +767,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -709,18 +781,20 @@ public Builder mergeFrom( private java.lang.Object search_ = ""; /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @return The search. */ public java.lang.String getSearch() { java.lang.Object ref = search_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); search_ = s; return s; @@ -729,20 +803,21 @@ public java.lang.String getSearch() { } } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @return The bytes for search. */ - public com.google.protobuf.ByteString - getSearchBytes() { + public com.google.protobuf.ByteString getSearchBytes() { java.lang.Object ref = search_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); search_ = b; return b; } else { @@ -750,54 +825,61 @@ public java.lang.String getSearch() { } } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @param value The search to set. * @return This builder for chaining. */ - public Builder setSearch( - java.lang.String value) { + public Builder setSearch(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + search_ = value; onChanged(); return this; } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @return This builder for chaining. */ public Builder clearSearch() { - + search_ = getDefaultInstance().getSearch(); onChanged(); return this; } /** + * + * *
        * What to replace. Max length is 100 characters.
        * 
* * string search = 1; + * * @param value The bytes for search to set. * @return This builder for chaining. */ - public Builder setSearchBytes( - com.google.protobuf.ByteString value) { + public Builder setSearchBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + search_ = value; onChanged(); return this; @@ -805,18 +887,20 @@ public Builder setSearchBytes( private java.lang.Object replace_ = ""; /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @return The replace. */ public java.lang.String getReplace() { java.lang.Object ref = replace_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); replace_ = s; return s; @@ -825,20 +909,21 @@ public java.lang.String getReplace() { } } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @return The bytes for replace. */ - public com.google.protobuf.ByteString - getReplaceBytes() { + public com.google.protobuf.ByteString getReplaceBytes() { java.lang.Object ref = replace_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); replace_ = b; return b; } else { @@ -846,66 +931,76 @@ public java.lang.String getReplace() { } } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @param value The replace to set. * @return This builder for chaining. */ - public Builder setReplace( - java.lang.String value) { + public Builder setReplace(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + replace_ = value; onChanged(); return this; } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @return This builder for chaining. */ public Builder clearReplace() { - + replace_ = getDefaultInstance().getReplace(); onChanged(); return this; } /** + * + * *
        * What to replace with. Max length is 100 characters.
        * 
* * string replace = 2; + * * @param value The bytes for replace to set. * @return This builder for chaining. */ - public Builder setReplaceBytes( - com.google.protobuf.ByteString value) { + public Builder setReplaceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + replace_ = value; onChanged(); return this; } - private boolean caseSensitive_ ; + private boolean caseSensitive_; /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return The caseSensitive. */ @java.lang.Override @@ -913,34 +1008,41 @@ public boolean getCaseSensitive() { return caseSensitive_; } /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @param value The caseSensitive to set. * @return This builder for chaining. */ public Builder setCaseSensitive(boolean value) { - + caseSensitive_ = value; onChanged(); return this; } /** + * + * *
        * Whether the search is case sensitive.
        * 
* * bool case_sensitive = 3; + * * @return This builder for chaining. */ public Builder clearCaseSensitive() { - + caseSensitive_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -953,30 +1055,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry) - private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry DEFAULT_INSTANCE; + private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry(); } - public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstance() { + public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Entry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Entry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Entry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -988,15 +1092,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaultInstanceForType() { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ENTRIES_FIELD_NUMBER = 1; private java.util.List entries_; /** + * + * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1007,10 +1113,13 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getDefaul
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
   @java.lang.Override
-  public java.util.List getEntriesList() {
+  public java.util.List
+      getEntriesList() {
     return entries_;
   }
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1021,11 +1130,14 @@ public java.util.Listrepeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>
       getEntriesOrBuilderList() {
     return entries_;
   }
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1040,6 +1152,8 @@ public int getEntriesCount() {
     return entries_.size();
   }
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1054,6 +1168,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntrie
     return entries_.get(index);
   }
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1064,12 +1180,13 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntrie
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
   @java.lang.Override
-  public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder getEntriesOrBuilder(
-      int index) {
+  public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder
+      getEntriesOrBuilder(int index) {
     return entries_.get(index);
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1081,8 +1198,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     for (int i = 0; i < entries_.size(); i++) {
       output.writeMessage(1, entries_.get(i));
     }
@@ -1096,8 +1212,7 @@ public int getSerializedSize() {
 
     size = 0;
     for (int i = 0; i < entries_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(1, entries_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i));
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -1107,15 +1222,15 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization)) {
       return super.equals(obj);
     }
-    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
+    com.google.cloud.speech.v1p1beta1.TranscriptNormalization other =
+        (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) obj;
 
-    if (!getEntriesList()
-        .equals(other.getEntriesList())) return false;
+    if (!getEntriesList().equals(other.getEntriesList())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -1137,96 +1252,104 @@ public int hashCode() {
   }
 
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      java.nio.ByteBuffer data)
-      throws com.google.protobuf.InvalidProtocolBufferException {
+      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-  public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptNormalization prototype) {
+
+  public static Builder newBuilder(
+      com.google.cloud.speech.v1p1beta1.TranscriptNormalization prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Transcription normalization configuration. Use transcription normalization
    * to automatically replace parts of the transcript with phrases of your
@@ -1236,21 +1359,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptNormalization}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptNormalization)
       com.google.cloud.speech.v1p1beta1.TranscriptNormalizationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.class,
+              com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Builder.class);
     }
 
     // Construct using com.google.cloud.speech.v1p1beta1.TranscriptNormalization.newBuilder()
@@ -1258,17 +1383,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getEntriesFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1282,9 +1407,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.speech.v1p1beta1.SpeechResourceProto
+          .internal_static_google_cloud_speech_v1p1beta1_TranscriptNormalization_descriptor;
     }
 
     @java.lang.Override
@@ -1303,7 +1428,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization build() {
 
     @java.lang.Override
     public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial() {
-      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
+      com.google.cloud.speech.v1p1beta1.TranscriptNormalization result =
+          new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(this);
       int from_bitField0_ = bitField0_;
       if (entriesBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -1322,38 +1448,39 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptNormalization) {
-        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization)other);
+        return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptNormalization) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1361,7 +1488,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptNormalization other) {
-      if (other == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance()) return this;
+      if (other == com.google.cloud.speech.v1p1beta1.TranscriptNormalization.getDefaultInstance())
+        return this;
       if (entriesBuilder_ == null) {
         if (!other.entries_.isEmpty()) {
           if (entries_.isEmpty()) {
@@ -1380,9 +1508,10 @@ public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptNormalizati
             entriesBuilder_ = null;
             entries_ = other.entries_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            entriesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEntriesFieldBuilder() : null;
+            entriesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEntriesFieldBuilder()
+                    : null;
           } else {
             entriesBuilder_.addAllMessages(other.entries_);
           }
@@ -1407,7 +1536,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.speech.v1p1beta1.TranscriptNormalization) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1416,21 +1546,30 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List entries_ =
-      java.util.Collections.emptyList();
+    private java.util.List
+        entries_ = java.util.Collections.emptyList();
+
     private void ensureEntriesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        entries_ = new java.util.ArrayList(entries_);
+        entries_ =
+            new java.util.ArrayList<
+                com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>(entries_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> entriesBuilder_;
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder,
+            com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>
+        entriesBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1438,9 +1577,11 @@ private void ensureEntriesIsMutable() {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ - public java.util.List getEntriesList() { + public java.util.List + getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { @@ -1448,6 +1589,8 @@ public java.util.List * A list of replacement entries. We will perform replacement with one entry * at a time. For example, the second entry in ["cat" => "dog", "mountain cat" @@ -1455,7 +1598,8 @@ public java.util.List * - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public int getEntriesCount() { if (entriesBuilder_ == null) { @@ -1465,6 +1609,8 @@ public int getEntriesCount() { } } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1472,7 +1618,8 @@ public int getEntriesCount() {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntries(int index) { if (entriesBuilder_ == null) { @@ -1482,6 +1629,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntrie } } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1489,7 +1638,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntrie
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public Builder setEntries( int index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry value) { @@ -1506,6 +1656,8 @@ public Builder setEntries( return this; } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1513,10 +1665,12 @@ public Builder setEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public Builder setEntries( - int index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { + int index, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); @@ -1527,6 +1681,8 @@ public Builder setEntries( return this; } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1534,9 +1690,11 @@ public Builder setEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ - public Builder addEntries(com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry value) { + public Builder addEntries( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1550,6 +1708,8 @@ public Builder addEntries(com.google.cloud.speech.v1p1beta1.TranscriptNormalizat return this; } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1557,7 +1717,8 @@ public Builder addEntries(com.google.cloud.speech.v1p1beta1.TranscriptNormalizat
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public Builder addEntries( int index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry value) { @@ -1574,6 +1735,8 @@ public Builder addEntries( return this; } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1581,7 +1744,8 @@ public Builder addEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public Builder addEntries( com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { @@ -1595,6 +1759,8 @@ public Builder addEntries( return this; } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1602,10 +1768,12 @@ public Builder addEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public Builder addEntries( - int index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { + int index, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); @@ -1616,6 +1784,8 @@ public Builder addEntries( return this; } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1623,14 +1793,16 @@ public Builder addEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public Builder addAllEntries( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry> + values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); @@ -1638,6 +1810,8 @@ public Builder addAllEntries( return this; } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1645,7 +1819,8 @@ public Builder addAllEntries(
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public Builder clearEntries() { if (entriesBuilder_ == null) { @@ -1658,6 +1833,8 @@ public Builder clearEntries() { return this; } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1665,7 +1842,8 @@ public Builder clearEntries() {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { @@ -1678,6 +1856,8 @@ public Builder removeEntries(int index) { return this; } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1685,13 +1865,16 @@ public Builder removeEntries(int index) {
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder getEntriesBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder + getEntriesBuilder(int index) { return getEntriesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1699,16 +1882,20 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder g
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder getEntriesOrBuilder( - int index) { + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder + getEntriesOrBuilder(int index) { if (entriesBuilder_ == null) { - return entries_.get(index); } else { + return entries_.get(index); + } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1716,10 +1903,12 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ - public java.util.List - getEntriesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> + getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { @@ -1727,6 +1916,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder } } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1734,13 +1925,18 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder addEntriesBuilder() { - return getEntriesFieldBuilder().addBuilder( - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder + addEntriesBuilder() { + return getEntriesFieldBuilder() + .addBuilder( + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()); } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1748,14 +1944,19 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder a
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ - public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder addEntriesBuilder( - int index) { - return getEntriesFieldBuilder().addBuilder( - index, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()); + public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder + addEntriesBuilder(int index) { + return getEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.getDefaultInstance()); } /** + * + * *
      * A list of replacement entries. We will perform replacement with one entry
      * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -1763,29 +1964,33 @@ public com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder a
      * first entry before it. At most 100 entries.
      * 
* - * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1; + * */ - public java.util.List - getEntriesBuilderList() { + public java.util.List + getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>( - entries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry.Builder, + com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1795,12 +2000,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptNormalization) private static final com.google.cloud.speech.v1p1beta1.TranscriptNormalization DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptNormalization(); } @@ -1809,16 +2014,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptNormalization parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptNormalization(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptNormalization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptNormalization(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1833,6 +2038,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptNormalization getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java similarity index 78% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java index fa51b40b7..11549b4c3 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptNormalizationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/resource.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptNormalizationOrBuilder extends +public interface TranscriptNormalizationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptNormalization) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -17,9 +35,10 @@ public interface TranscriptNormalizationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List 
-      getEntriesList();
+  java.util.List getEntriesList();
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -31,6 +50,8 @@ public interface TranscriptNormalizationOrBuilder extends
    */
   com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry getEntries(int index);
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -42,6 +63,8 @@ public interface TranscriptNormalizationOrBuilder extends
    */
   int getEntriesCount();
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
@@ -51,9 +74,11 @@ public interface TranscriptNormalizationOrBuilder extends
    *
    * repeated .google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry entries = 1;
    */
-  java.util.List 
+  java.util.List
       getEntriesOrBuilderList();
   /**
+   *
+   *
    * 
    * A list of replacement entries. We will perform replacement with one entry
    * at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
similarity index 70%
rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
index 25b03d6ff..bda55e2f5 100644
--- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
+++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfig.java
@@ -1,39 +1,55 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/speech/v1p1beta1/cloud_speech.proto
 
 package com.google.cloud.speech.v1p1beta1;
 
 /**
+ *
+ *
  * 
  * Specifies an optional destination for the recognition results.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ -public final class TranscriptOutputConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TranscriptOutputConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) TranscriptOutputConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TranscriptOutputConfig.newBuilder() to construct. private TranscriptOutputConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TranscriptOutputConfig() { - } + + private TranscriptOutputConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TranscriptOutputConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TranscriptOutputConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,19 +68,20 @@ private TranscriptOutputConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - outputTypeCase_ = 1; - outputType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + outputTypeCase_ = 1; + outputType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -72,34 +89,39 @@ private TranscriptOutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } private int outputTypeCase_ = 0; private java.lang.Object outputType_; + public enum OutputTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCS_URI(1), OUTPUTTYPE_NOT_SET(0); private final int value; + private OutputTypeCase(int value) { this.value = value; } @@ -115,24 +137,28 @@ public static OutputTypeCase valueOf(int value) { public static OutputTypeCase forNumber(int value) { switch (value) { - case 1: return GCS_URI; - case 0: return OUTPUTTYPE_NOT_SET; - default: return null; + case 1: + return GCS_URI; + case 0: + return OUTPUTTYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public OutputTypeCase - getOutputTypeCase() { - return OutputTypeCase.forNumber( - outputTypeCase_); + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); } public static final int GCS_URI_FIELD_NUMBER = 1; /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -140,12 +166,15 @@ public int getNumber() {
    * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ public boolean hasGcsUri() { return outputTypeCase_ == 1; } /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -153,6 +182,7 @@ public boolean hasGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ public java.lang.String getGcsUri() { @@ -163,8 +193,7 @@ public java.lang.String getGcsUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputTypeCase_ == 1) { outputType_ = s; @@ -173,6 +202,8 @@ public java.lang.String getGcsUri() { } } /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -180,18 +211,17 @@ public java.lang.String getGcsUri() {
    * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ - public com.google.protobuf.ByteString - getGcsUriBytes() { + public com.google.protobuf.ByteString getGcsUriBytes() { java.lang.Object ref = ""; if (outputTypeCase_ == 1) { ref = outputType_; } if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputTypeCase_ == 1) { outputType_ = b; } @@ -202,6 +232,7 @@ public java.lang.String getGcsUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -213,8 +244,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (outputTypeCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputType_); } @@ -238,18 +268,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other = (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) obj; + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other = + (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) obj; if (!getOutputTypeCase().equals(other.getOutputTypeCase())) return false; switch (outputTypeCase_) { case 1: - if (!getGcsUri() - .equals(other.getGcsUri())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; break; case 0: default: @@ -279,117 +309,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Specifies an optional destination for the recognition results.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.TranscriptOutputConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.cloud.speech.v1p1beta1.TranscriptOutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.class, + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.newBuilder() @@ -397,16 +437,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -416,9 +455,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_TranscriptOutputConfig_descriptor; } @java.lang.Override @@ -437,7 +476,8 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { - com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); + com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig result = + new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(this); if (outputTypeCase_ == 1) { result.outputType_ = outputType_; } @@ -450,38 +490,39 @@ public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) other); } else { super.mergeFrom(other); return this; @@ -489,17 +530,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig other) { - if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.getDefaultInstance()) + return this; switch (other.getOutputTypeCase()) { - case GCS_URI: { - outputTypeCase_ = 1; - outputType_ = other.outputType_; - onChanged(); - break; - } - case OUTPUTTYPE_NOT_SET: { - break; - } + case GCS_URI: + { + outputTypeCase_ = 1; + outputType_ = other.outputType_; + onChanged(); + break; + } + case OUTPUTTYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -520,7 +564,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -529,12 +574,12 @@ public Builder mergeFrom( } return this; } + private int outputTypeCase_ = 0; private java.lang.Object outputType_; - public OutputTypeCase - getOutputTypeCase() { - return OutputTypeCase.forNumber( - outputTypeCase_); + + public OutputTypeCase getOutputTypeCase() { + return OutputTypeCase.forNumber(outputTypeCase_); } public Builder clearOutputType() { @@ -544,8 +589,9 @@ public Builder clearOutputType() { return this; } - /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -553,6 +599,7 @@ public Builder clearOutputType() {
      * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ @java.lang.Override @@ -560,6 +607,8 @@ public boolean hasGcsUri() { return outputTypeCase_ == 1; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -567,6 +616,7 @@ public boolean hasGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ @java.lang.Override @@ -576,8 +626,7 @@ public java.lang.String getGcsUri() { ref = outputType_; } if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (outputTypeCase_ == 1) { outputType_ = s; @@ -588,6 +637,8 @@ public java.lang.String getGcsUri() { } } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -595,19 +646,18 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsUriBytes() { + public com.google.protobuf.ByteString getGcsUriBytes() { java.lang.Object ref = ""; if (outputTypeCase_ == 1) { ref = outputType_; } if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); if (outputTypeCase_ == 1) { outputType_ = b; } @@ -617,6 +667,8 @@ public java.lang.String getGcsUri() { } } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -624,20 +676,22 @@ public java.lang.String getGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUri( - java.lang.String value) { + public Builder setGcsUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - outputTypeCase_ = 1; + throw new NullPointerException(); + } + outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -645,6 +699,7 @@ public Builder setGcsUri(
      * 
* * string gcs_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsUri() { @@ -656,6 +711,8 @@ public Builder clearGcsUri() { return this; } /** + * + * *
      * Specifies a Cloud Storage URI for the recognition results. Must be
      * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -663,23 +720,23 @@ public Builder clearGcsUri() {
      * 
* * string gcs_uri = 1; + * * @param value The bytes for gcsUri to set. * @return This builder for chaining. */ - public Builder setGcsUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); outputTypeCase_ = 1; outputType_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -689,12 +746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) private static final com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig(); } @@ -703,16 +760,16 @@ public static com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TranscriptOutputConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TranscriptOutputConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptOutputConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TranscriptOutputConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -727,6 +784,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java index 3733fac7b..102d1f01e 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/TranscriptOutputConfigOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface TranscriptOutputConfigOrBuilder extends +public interface TranscriptOutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.TranscriptOutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -15,10 +33,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return Whether the gcsUri field is set. */ boolean hasGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -26,10 +47,13 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The gcsUri. */ java.lang.String getGcsUri(); /** + * + * *
    * Specifies a Cloud Storage URI for the recognition results. Must be
    * specified in the format: `gs://bucket_name/object_name`, and the bucket
@@ -37,10 +61,11 @@ public interface TranscriptOutputConfigOrBuilder extends
    * 
* * string gcs_uri = 1; + * * @return The bytes for gcsUri. */ - com.google.protobuf.ByteString - getGcsUriBytes(); + com.google.protobuf.ByteString getGcsUriBytes(); - public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase getOutputTypeCase(); + public com.google.cloud.speech.v1p1beta1.TranscriptOutputConfig.OutputTypeCase + getOutputTypeCase(); } diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java index 7ed5cddc8..e647d6d17 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `UpdateCustomClass` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ -public final class UpdateCustomClassRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateCustomClassRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) UpdateCustomClassRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateCustomClassRequest.newBuilder() to construct. private UpdateCustomClassRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateCustomClassRequest() { - } + + private UpdateCustomClassRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateCustomClassRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateCustomClassRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateCustomClassRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; - if (customClass_ != null) { - subBuilder = customClass_.toBuilder(); - } - customClass_ = input.readMessage(com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(customClass_); - customClass_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1p1beta1.CustomClass.Builder subBuilder = null; + if (customClass_ != null) { + subBuilder = customClass_.toBuilder(); + } + customClass_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.CustomClass.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customClass_); + customClass_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +113,33 @@ private UpdateCustomClassRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } public static final int CUSTOM_CLASS_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -127,7 +152,10 @@ private UpdateCustomClassRequest(
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ @java.lang.Override @@ -135,6 +163,8 @@ public boolean hasCustomClass() { return customClass_ != null; } /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -147,14 +177,21 @@ public boolean hasCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -167,7 +204,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { @@ -177,11 +216,14 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -189,11 +231,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -201,6 +246,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -213,6 +260,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (customClass_ != null) { output.writeMessage(1, getCustomClass()); } @@ -242,12 +289,10 @@ public int getSerializedSize() { size = 0; if (customClass_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomClass()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomClass()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,22 +302,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other = + (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) obj; if (hasCustomClass() != other.hasCustomClass()) return false; if (hasCustomClass()) { - if (!getCustomClass() - .equals(other.getCustomClass())) return false; + if (!getCustomClass().equals(other.getCustomClass())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -299,117 +343,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `UpdateCustomClass` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdateCustomClassRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.class, + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.newBuilder() @@ -417,16 +471,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdateCustomClassRequest_descriptor; } @java.lang.Override @@ -467,7 +520,8 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); + com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest result = + new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(this); if (customClassBuilder_ == null) { result.customClass_ = customClass_; } else { @@ -486,38 +540,39 @@ public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest.getDefaultInstance()) + return this; if (other.hasCustomClass()) { mergeCustomClass(other.getCustomClass()); } @@ -551,7 +607,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,8 +620,13 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.CustomClass customClass_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> customClassBuilder_; + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + customClassBuilder_; /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -577,13 +639,18 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ public boolean hasCustomClass() { return customClassBuilder_ != null || customClass_ != null; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -596,17 +663,24 @@ public boolean hasCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() { if (customClassBuilder_ == null) { - return customClass_ == null ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } else { return customClassBuilder_.getMessage(); } } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -619,7 +693,9 @@ public com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { @@ -635,6 +711,8 @@ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass valu return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -647,7 +725,9 @@ public Builder setCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass valu
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCustomClass( com.google.cloud.speech.v1p1beta1.CustomClass.Builder builderForValue) { @@ -661,6 +741,8 @@ public Builder setCustomClass( return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -673,13 +755,17 @@ public Builder setCustomClass(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass value) { if (customClassBuilder_ == null) { if (customClass_ != null) { customClass_ = - com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.CustomClass.newBuilder(customClass_) + .mergeFrom(value) + .buildPartial(); } else { customClass_ = value; } @@ -691,6 +777,8 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -703,7 +791,9 @@ public Builder mergeCustomClass(com.google.cloud.speech.v1p1beta1.CustomClass va
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCustomClass() { if (customClassBuilder_ == null) { @@ -717,6 +807,8 @@ public Builder clearCustomClass() { return this; } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -729,14 +821,18 @@ public Builder clearCustomClass() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuilder() { - + onChanged(); return getCustomClassFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -749,17 +845,22 @@ public com.google.cloud.speech.v1p1beta1.CustomClass.Builder getCustomClassBuild
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder() { if (customClassBuilder_ != null) { return customClassBuilder_.getMessageOrBuilder(); } else { - return customClass_ == null ? - com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() : customClass_; + return customClass_ == null + ? com.google.cloud.speech.v1p1beta1.CustomClass.getDefaultInstance() + : customClass_; } } /** + * + * *
      * Required. The custom class to update.
      * The custom class's `name` field is used to identify the custom class to be
@@ -772,17 +873,22 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> getCustomClassFieldBuilder() { if (customClassBuilder_ == null) { - customClassBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.CustomClass, com.google.cloud.speech.v1p1beta1.CustomClass.Builder, com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( - getCustomClass(), - getParentForChildren(), - isClean()); + customClassBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.CustomClass, + com.google.cloud.speech.v1p1beta1.CustomClass.Builder, + com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>( + getCustomClass(), getParentForChildren(), isClean()); customClass_ = null; } return customClassBuilder_; @@ -790,34 +896,47 @@ public com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBu private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -838,14 +957,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -856,6 +976,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -866,7 +988,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -878,6 +1000,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -896,6 +1020,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -903,11 +1029,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -918,11 +1046,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -930,21 +1061,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -954,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) private static final com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest(); } @@ -968,16 +1102,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomClassRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateCustomClassRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomClassRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomClassRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdateCustomClassRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java index 5ffdf4623..debebb143 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdateCustomClassRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdateCustomClassRequestOrBuilder extends +public interface UpdateCustomClassRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdateCustomClassRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -20,11 +38,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the customClass field is set. */ boolean hasCustomClass(); /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -37,11 +60,16 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The customClass. */ com.google.cloud.speech.v1p1beta1.CustomClass getCustomClass(); /** + * + * *
    * Required. The custom class to update.
    * The custom class's `name` field is used to identify the custom class to be
@@ -54,29 +82,39 @@ public interface UpdateCustomClassRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.CustomClass custom_class = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder getCustomClassOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java similarity index 71% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java index 3c5a6f525..810492ba6 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Message sent by the client for the `UpdatePhraseSet` method.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ -public final class UpdatePhraseSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdatePhraseSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) UpdatePhraseSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdatePhraseSetRequest.newBuilder() to construct. private UpdatePhraseSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdatePhraseSetRequest() { - } + + private UpdatePhraseSetRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdatePhraseSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdatePhraseSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdatePhraseSetRequest( case 0: done = true; break; - case 10: { - com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; - if (phraseSet_ != null) { - subBuilder = phraseSet_.toBuilder(); - } - phraseSet_ = input.readMessage(com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(phraseSet_); - phraseSet_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder subBuilder = null; + if (phraseSet_ != null) { + subBuilder = phraseSet_.toBuilder(); + } + phraseSet_ = + input.readMessage( + com.google.cloud.speech.v1p1beta1.PhraseSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(phraseSet_); + phraseSet_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,29 +113,33 @@ private UpdatePhraseSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } public static final int PHRASE_SET_FIELD_NUMBER = 1; private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -127,7 +152,10 @@ private UpdatePhraseSetRequest(
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ @java.lang.Override @@ -135,6 +163,8 @@ public boolean hasPhraseSet() { return phraseSet_ != null; } /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -147,14 +177,21 @@ public boolean hasPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -167,7 +204,9 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() {
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { @@ -177,11 +216,14 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -189,11 +231,14 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ @java.lang.Override @@ -201,6 +246,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * The list of fields to be updated.
    * 
@@ -213,6 +260,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (phraseSet_ != null) { output.writeMessage(1, getPhraseSet()); } @@ -242,12 +289,10 @@ public int getSerializedSize() { size = 0; if (phraseSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPhraseSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPhraseSet()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,22 +302,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other = + (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) obj; if (hasPhraseSet() != other.hasPhraseSet()) return false; if (hasPhraseSet()) { - if (!getPhraseSet() - .equals(other.getPhraseSet())) return false; + if (!getPhraseSet().equals(other.getPhraseSet())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -299,117 +343,127 @@ public int hashCode() { } public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Message sent by the client for the `UpdatePhraseSet` method.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.class, + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.newBuilder() @@ -417,16 +471,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -446,9 +499,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto.internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechAdaptationProto + .internal_static_google_cloud_speech_v1p1beta1_UpdatePhraseSetRequest_descriptor; } @java.lang.Override @@ -467,7 +520,8 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { - com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); + com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest result = + new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(this); if (phraseSetBuilder_ == null) { result.phraseSet_ = phraseSet_; } else { @@ -486,38 +540,39 @@ public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) other); } else { super.mergeFrom(other); return this; @@ -525,7 +580,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest other) { - if (other == com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest.getDefaultInstance()) + return this; if (other.hasPhraseSet()) { mergePhraseSet(other.getPhraseSet()); } @@ -551,7 +607,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -563,8 +620,13 @@ public Builder mergeFrom( private com.google.cloud.speech.v1p1beta1.PhraseSet phraseSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> phraseSetBuilder_; + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + phraseSetBuilder_; /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -577,13 +639,18 @@ public Builder mergeFrom(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ public boolean hasPhraseSet() { return phraseSetBuilder_ != null || phraseSet_ != null; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -596,17 +663,24 @@ public boolean hasPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() { if (phraseSetBuilder_ == null) { - return phraseSet_ == null ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } else { return phraseSetBuilder_.getMessage(); } } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -619,7 +693,9 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { @@ -635,6 +711,8 @@ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -647,7 +725,9 @@ public Builder setPhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setPhraseSet( com.google.cloud.speech.v1p1beta1.PhraseSet.Builder builderForValue) { @@ -661,6 +741,8 @@ public Builder setPhraseSet( return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -673,13 +755,17 @@ public Builder setPhraseSet(
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) { if (phraseSetBuilder_ == null) { if (phraseSet_ != null) { phraseSet_ = - com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_).mergeFrom(value).buildPartial(); + com.google.cloud.speech.v1p1beta1.PhraseSet.newBuilder(phraseSet_) + .mergeFrom(value) + .buildPartial(); } else { phraseSet_ = value; } @@ -691,6 +777,8 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value) return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -703,7 +791,9 @@ public Builder mergePhraseSet(com.google.cloud.speech.v1p1beta1.PhraseSet value)
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearPhraseSet() { if (phraseSetBuilder_ == null) { @@ -717,6 +807,8 @@ public Builder clearPhraseSet() { return this; } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -729,14 +821,18 @@ public Builder clearPhraseSet() {
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder() { - + onChanged(); return getPhraseSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -749,17 +845,22 @@ public com.google.cloud.speech.v1p1beta1.PhraseSet.Builder getPhraseSetBuilder()
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder() { if (phraseSetBuilder_ != null) { return phraseSetBuilder_.getMessageOrBuilder(); } else { - return phraseSet_ == null ? - com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() : phraseSet_; + return phraseSet_ == null + ? com.google.cloud.speech.v1p1beta1.PhraseSet.getDefaultInstance() + : phraseSet_; } } /** + * + * *
      * Required. The phrase set to update.
      * The phrase set's `name` field is used to identify the set to be
@@ -772,17 +873,22 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde
      * with matching `us` or `eu` location value.
      * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> getPhraseSetFieldBuilder() { if (phraseSetBuilder_ == null) { - phraseSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.speech.v1p1beta1.PhraseSet, com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( - getPhraseSet(), - getParentForChildren(), - isClean()); + phraseSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.speech.v1p1beta1.PhraseSet, + com.google.cloud.speech.v1p1beta1.PhraseSet.Builder, + com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>( + getPhraseSet(), getParentForChildren(), isClean()); phraseSet_ = null; } return phraseSetBuilder_; @@ -790,34 +896,47 @@ public com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilde private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -838,14 +957,15 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
* * .google.protobuf.FieldMask update_mask = 2; */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -856,6 +976,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -866,7 +988,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -878,6 +1000,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -896,6 +1020,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -903,11 +1029,13 @@ public Builder clearUpdateMask() { * .google.protobuf.FieldMask update_mask = 2; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -918,11 +1046,14 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * The list of fields to be updated.
      * 
@@ -930,21 +1061,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * .google.protobuf.FieldMask update_mask = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -954,12 +1088,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) private static final com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest(); } @@ -968,16 +1102,16 @@ public static com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePhraseSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdatePhraseSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePhraseSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdatePhraseSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -992,6 +1126,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java similarity index 72% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java index ae3c2a999..5bb289426 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/UpdatePhraseSetRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto package com.google.cloud.speech.v1p1beta1; -public interface UpdatePhraseSetRequestOrBuilder extends +public interface UpdatePhraseSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.UpdatePhraseSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -20,11 +38,16 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the phraseSet field is set. */ boolean hasPhraseSet(); /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -37,11 +60,16 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The phraseSet. */ com.google.cloud.speech.v1p1beta1.PhraseSet getPhraseSet(); /** + * + * *
    * Required. The phrase set to update.
    * The phrase set's `name` field is used to identify the set to be
@@ -54,29 +82,39 @@ public interface UpdatePhraseSetRequestOrBuilder extends
    * with matching `us` or `eu` location value.
    * 
* - * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.speech.v1p1beta1.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder getPhraseSetOrBuilder(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
* * .google.protobuf.FieldMask update_mask = 2; + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * The list of fields to be updated.
    * 
diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java similarity index 77% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java index 57c082189..76bf78c8f 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfo.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; /** + * + * *
  * Word-specific information for recognized words.
  * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ -public final class WordInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class WordInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.speech.v1p1beta1.WordInfo) WordInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use WordInfo.newBuilder() to construct. private WordInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private WordInfo() { word_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new WordInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private WordInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,55 +70,60 @@ private WordInfo( case 0: done = true; break; - case 10: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (startTime_ != null) { - subBuilder = startTime_.toBuilder(); + case 10: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; } - startTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(startTime_); - startTime_ = subBuilder.buildPartial(); + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (endTime_ != null) { - subBuilder = endTime_.toBuilder(); + word_ = s; + break; } - endTime_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(endTime_); - endTime_ = subBuilder.buildPartial(); + case 37: + { + confidence_ = input.readFloat(); + break; } - - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - word_ = s; - break; - } - case 37: { - - confidence_ = input.readFloat(); - break; - } - case 40: { - - speakerTag_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 40: + { + speakerTag_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,29 +131,33 @@ private WordInfo( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, + com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } public static final int START_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Duration startTime_; /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -142,6 +168,7 @@ private WordInfo(
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ @java.lang.Override @@ -149,6 +176,8 @@ public boolean hasStartTime() { return startTime_ != null; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -159,6 +188,7 @@ public boolean hasStartTime() {
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ @java.lang.Override @@ -166,6 +196,8 @@ public com.google.protobuf.Duration getStartTime() { return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -185,6 +217,8 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
   public static final int END_TIME_FIELD_NUMBER = 2;
   private com.google.protobuf.Duration endTime_;
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -195,6 +229,7 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ @java.lang.Override @@ -202,6 +237,8 @@ public boolean hasEndTime() { return endTime_ != null; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -212,6 +249,7 @@ public boolean hasEndTime() {
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ @java.lang.Override @@ -219,6 +257,8 @@ public com.google.protobuf.Duration getEndTime() { return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_; } /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -238,11 +278,14 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
   public static final int WORD_FIELD_NUMBER = 3;
   private volatile java.lang.Object word_;
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ @java.lang.Override @@ -251,29 +294,29 @@ public java.lang.String getWord() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); word_ = s; return s; } } /** + * + * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The bytes for word. */ @java.lang.Override - public com.google.protobuf.ByteString - getWordBytes() { + public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); word_ = b; return b; } else { @@ -284,6 +327,8 @@ public java.lang.String getWord() { public static final int CONFIDENCE_FIELD_NUMBER = 4; private float confidence_; /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -295,6 +340,7 @@ public java.lang.String getWord() {
    * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -305,6 +351,8 @@ public float getConfidence() { public static final int SPEAKER_TAG_FIELD_NUMBER = 5; private int speakerTag_; /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -314,6 +362,7 @@ public float getConfidence() {
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -322,6 +371,7 @@ public int getSpeakerTag() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,8 +383,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (startTime_ != null) { output.writeMessage(1, getStartTime()); } @@ -360,23 +409,19 @@ public int getSerializedSize() { size = 0; if (startTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getStartTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); } if (endTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEndTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(word_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, word_); } if (java.lang.Float.floatToRawIntBits(confidence_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, confidence_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, confidence_); } if (speakerTag_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(5, speakerTag_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, speakerTag_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -386,30 +431,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.speech.v1p1beta1.WordInfo)) { return super.equals(obj); } - com.google.cloud.speech.v1p1beta1.WordInfo other = (com.google.cloud.speech.v1p1beta1.WordInfo) obj; + com.google.cloud.speech.v1p1beta1.WordInfo other = + (com.google.cloud.speech.v1p1beta1.WordInfo) obj; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { - if (!getStartTime() - .equals(other.getStartTime())) return false; + if (!getStartTime().equals(other.getStartTime())) return false; } if (hasEndTime() != other.hasEndTime()) return false; if (hasEndTime()) { - if (!getEndTime() - .equals(other.getEndTime())) return false; + if (!getEndTime().equals(other.getEndTime())) return false; } - if (!getWord() - .equals(other.getWord())) return false; + if (!getWord().equals(other.getWord())) return false; if (java.lang.Float.floatToIntBits(getConfidence()) - != java.lang.Float.floatToIntBits( - other.getConfidence())) return false; - if (getSpeakerTag() - != other.getSpeakerTag()) return false; + != java.lang.Float.floatToIntBits(other.getConfidence())) return false; + if (getSpeakerTag() != other.getSpeakerTag()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -432,8 +473,7 @@ public int hashCode() { hash = (37 * hash) + WORD_FIELD_NUMBER; hash = (53 * hash) + getWord().hashCode(); hash = (37 * hash) + CONFIDENCE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getConfidence()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConfidence()); hash = (37 * hash) + SPEAKER_TAG_FIELD_NUMBER; hash = (53 * hash) + getSpeakerTag(); hash = (29 * hash) + unknownFields.hashCode(); @@ -441,118 +481,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.speech.v1p1beta1.WordInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.speech.v1p1beta1.WordInfo prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Word-specific information for recognized words.
    * 
* * Protobuf type {@code google.cloud.speech.v1p1beta1.WordInfo} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.speech.v1p1beta1.WordInfo) com.google.cloud.speech.v1p1beta1.WordInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.speech.v1p1beta1.WordInfo.class, com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); + com.google.cloud.speech.v1p1beta1.WordInfo.class, + com.google.cloud.speech.v1p1beta1.WordInfo.Builder.class); } // Construct using com.google.cloud.speech.v1p1beta1.WordInfo.newBuilder() @@ -560,16 +609,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -595,9 +643,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.speech.v1p1beta1.SpeechProto.internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.speech.v1p1beta1.SpeechProto + .internal_static_google_cloud_speech_v1p1beta1_WordInfo_descriptor; } @java.lang.Override @@ -616,7 +664,8 @@ public com.google.cloud.speech.v1p1beta1.WordInfo build() { @java.lang.Override public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { - com.google.cloud.speech.v1p1beta1.WordInfo result = new com.google.cloud.speech.v1p1beta1.WordInfo(this); + com.google.cloud.speech.v1p1beta1.WordInfo result = + new com.google.cloud.speech.v1p1beta1.WordInfo(this); if (startTimeBuilder_ == null) { result.startTime_ = startTime_; } else { @@ -638,38 +687,39 @@ public com.google.cloud.speech.v1p1beta1.WordInfo buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.speech.v1p1beta1.WordInfo) { - return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo)other); + return mergeFrom((com.google.cloud.speech.v1p1beta1.WordInfo) other); } else { super.mergeFrom(other); return this; @@ -725,8 +775,13 @@ public Builder mergeFrom( private com.google.protobuf.Duration startTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> startTimeBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + startTimeBuilder_; /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -737,12 +792,15 @@ public Builder mergeFrom(
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ public boolean hasStartTime() { return startTimeBuilder_ != null || startTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -753,6 +811,7 @@ public boolean hasStartTime() {
      * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ public com.google.protobuf.Duration getStartTime() { @@ -763,6 +822,8 @@ public com.google.protobuf.Duration getStartTime() { } } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -788,6 +849,8 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -799,8 +862,7 @@ public Builder setStartTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration start_time = 1;
      */
-    public Builder setStartTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setStartTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (startTimeBuilder_ == null) {
         startTime_ = builderForValue.build();
         onChanged();
@@ -811,6 +873,8 @@ public Builder setStartTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -826,7 +890,7 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       if (startTimeBuilder_ == null) {
         if (startTime_ != null) {
           startTime_ =
-            com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(startTime_).mergeFrom(value).buildPartial();
         } else {
           startTime_ = value;
         }
@@ -838,6 +902,8 @@ public Builder mergeStartTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -861,6 +927,8 @@ public Builder clearStartTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -873,11 +941,13 @@ public Builder clearStartTime() {
      * .google.protobuf.Duration start_time = 1;
      */
     public com.google.protobuf.Duration.Builder getStartTimeBuilder() {
-      
+
       onChanged();
       return getStartTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -893,11 +963,12 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
       if (startTimeBuilder_ != null) {
         return startTimeBuilder_.getMessageOrBuilder();
       } else {
-        return startTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : startTime_;
+        return startTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : startTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the start of the spoken word.
@@ -910,14 +981,17 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * .google.protobuf.Duration start_time = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getStartTimeFieldBuilder() {
       if (startTimeBuilder_ == null) {
-        startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getStartTime(),
-                getParentForChildren(),
-                isClean());
+        startTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getStartTime(), getParentForChildren(), isClean());
         startTime_ = null;
       }
       return startTimeBuilder_;
@@ -925,8 +999,13 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
 
     private com.google.protobuf.Duration endTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> endTimeBuilder_;
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
+        endTimeBuilder_;
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -937,12 +1016,15 @@ public com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ public boolean hasEndTime() { return endTimeBuilder_ != null || endTime_ != null; } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -953,6 +1035,7 @@ public boolean hasEndTime() {
      * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ public com.google.protobuf.Duration getEndTime() { @@ -963,6 +1046,8 @@ public com.google.protobuf.Duration getEndTime() { } } /** + * + * *
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -988,6 +1073,8 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -999,8 +1086,7 @@ public Builder setEndTime(com.google.protobuf.Duration value) {
      *
      * .google.protobuf.Duration end_time = 2;
      */
-    public Builder setEndTime(
-        com.google.protobuf.Duration.Builder builderForValue) {
+    public Builder setEndTime(com.google.protobuf.Duration.Builder builderForValue) {
       if (endTimeBuilder_ == null) {
         endTime_ = builderForValue.build();
         onChanged();
@@ -1011,6 +1097,8 @@ public Builder setEndTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1026,7 +1114,7 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       if (endTimeBuilder_ == null) {
         if (endTime_ != null) {
           endTime_ =
-            com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Duration.newBuilder(endTime_).mergeFrom(value).buildPartial();
         } else {
           endTime_ = value;
         }
@@ -1038,6 +1126,8 @@ public Builder mergeEndTime(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1061,6 +1151,8 @@ public Builder clearEndTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1073,11 +1165,13 @@ public Builder clearEndTime() {
      * .google.protobuf.Duration end_time = 2;
      */
     public com.google.protobuf.Duration.Builder getEndTimeBuilder() {
-      
+
       onChanged();
       return getEndTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1093,11 +1187,12 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
       if (endTimeBuilder_ != null) {
         return endTimeBuilder_.getMessageOrBuilder();
       } else {
-        return endTime_ == null ?
-            com.google.protobuf.Duration.getDefaultInstance() : endTime_;
+        return endTime_ == null ? com.google.protobuf.Duration.getDefaultInstance() : endTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the audio,
      * and corresponding to the end of the spoken word.
@@ -1110,14 +1205,17 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
      * .google.protobuf.Duration end_time = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> 
+            com.google.protobuf.Duration,
+            com.google.protobuf.Duration.Builder,
+            com.google.protobuf.DurationOrBuilder>
         getEndTimeFieldBuilder() {
       if (endTimeBuilder_ == null) {
-        endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
-                getEndTime(),
-                getParentForChildren(),
-                isClean());
+        endTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Duration,
+                com.google.protobuf.Duration.Builder,
+                com.google.protobuf.DurationOrBuilder>(
+                getEndTime(), getParentForChildren(), isClean());
         endTime_ = null;
       }
       return endTimeBuilder_;
@@ -1125,18 +1223,20 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder() {
 
     private java.lang.Object word_ = "";
     /**
+     *
+     *
      * 
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return The word. */ public java.lang.String getWord() { java.lang.Object ref = word_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); word_ = s; return s; @@ -1145,20 +1245,21 @@ public java.lang.String getWord() { } } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return The bytes for word. */ - public com.google.protobuf.ByteString - getWordBytes() { + public com.google.protobuf.ByteString getWordBytes() { java.lang.Object ref = word_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); word_ = b; return b; } else { @@ -1166,61 +1267,70 @@ public java.lang.String getWord() { } } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The word to set. * @return This builder for chaining. */ - public Builder setWord( - java.lang.String value) { + public Builder setWord(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + word_ = value; onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @return This builder for chaining. */ public Builder clearWord() { - + word_ = getDefaultInstance().getWord(); onChanged(); return this; } /** + * + * *
      * The word corresponding to this set of information.
      * 
* * string word = 3; + * * @param value The bytes for word to set. * @return This builder for chaining. */ - public Builder setWordBytes( - com.google.protobuf.ByteString value) { + public Builder setWordBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + word_ = value; onChanged(); return this; } - private float confidence_ ; + private float confidence_; /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1232,6 +1342,7 @@ public Builder setWordBytes(
      * 
* * float confidence = 4; + * * @return The confidence. */ @java.lang.Override @@ -1239,6 +1350,8 @@ public float getConfidence() { return confidence_; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1250,16 +1363,19 @@ public float getConfidence() {
      * 
* * float confidence = 4; + * * @param value The confidence to set. * @return This builder for chaining. */ public Builder setConfidence(float value) { - + confidence_ = value; onChanged(); return this; } /** + * + * *
      * The confidence estimate between 0.0 and 1.0. A higher number
      * indicates an estimated greater likelihood that the recognized words are
@@ -1271,17 +1387,20 @@ public Builder setConfidence(float value) {
      * 
* * float confidence = 4; + * * @return This builder for chaining. */ public Builder clearConfidence() { - + confidence_ = 0F; onChanged(); return this; } - private int speakerTag_ ; + private int speakerTag_; /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1291,6 +1410,7 @@ public Builder clearConfidence() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ @java.lang.Override @@ -1298,6 +1418,8 @@ public int getSpeakerTag() { return speakerTag_; } /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1307,16 +1429,19 @@ public int getSpeakerTag() {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The speakerTag to set. * @return This builder for chaining. */ public Builder setSpeakerTag(int value) { - + speakerTag_ = value; onChanged(); return this; } /** + * + * *
      * Output only. A distinct integer value is assigned for every speaker within
      * the audio. This field specifies which one of those speakers was detected to
@@ -1326,17 +1451,18 @@ public Builder setSpeakerTag(int value) {
      * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearSpeakerTag() { - + speakerTag_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1346,12 +1472,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.speech.v1p1beta1.WordInfo) } // @@protoc_insertion_point(class_scope:google.cloud.speech.v1p1beta1.WordInfo) private static final com.google.cloud.speech.v1p1beta1.WordInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.speech.v1p1beta1.WordInfo(); } @@ -1360,16 +1486,16 @@ public static com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WordInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new WordInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WordInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new WordInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1384,6 +1510,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.speech.v1p1beta1.WordInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java similarity index 84% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java rename to proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java index b811f0f30..0bdb11ab4 100644 --- a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java +++ b/proto-google-cloud-speech-v1p1beta1/src/main/java/com/google/cloud/speech/v1p1beta1/WordInfoOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/speech/v1p1beta1/cloud_speech.proto package com.google.cloud.speech.v1p1beta1; -public interface WordInfoOrBuilder extends +public interface WordInfoOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.speech.v1p1beta1.WordInfo) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -18,10 +36,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return Whether the startTime field is set. */ boolean hasStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -32,10 +53,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration start_time = 1; + * * @return The startTime. */ com.google.protobuf.Duration getStartTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the start of the spoken word.
@@ -50,6 +74,8 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getStartTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -60,10 +86,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return Whether the endTime field is set. */ boolean hasEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -74,10 +103,13 @@ public interface WordInfoOrBuilder extends
    * 
* * .google.protobuf.Duration end_time = 2; + * * @return The endTime. */ com.google.protobuf.Duration getEndTime(); /** + * + * *
    * Time offset relative to the beginning of the audio,
    * and corresponding to the end of the spoken word.
@@ -92,26 +124,33 @@ public interface WordInfoOrBuilder extends
   com.google.protobuf.DurationOrBuilder getEndTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The word. */ java.lang.String getWord(); /** + * + * *
    * The word corresponding to this set of information.
    * 
* * string word = 3; + * * @return The bytes for word. */ - com.google.protobuf.ByteString - getWordBytes(); + com.google.protobuf.ByteString getWordBytes(); /** + * + * *
    * The confidence estimate between 0.0 and 1.0. A higher number
    * indicates an estimated greater likelihood that the recognized words are
@@ -123,11 +162,14 @@ public interface WordInfoOrBuilder extends
    * 
* * float confidence = 4; + * * @return The confidence. */ float getConfidence(); /** + * + * *
    * Output only. A distinct integer value is assigned for every speaker within
    * the audio. This field specifies which one of those speakers was detected to
@@ -137,6 +179,7 @@ public interface WordInfoOrBuilder extends
    * 
* * int32 speaker_tag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The speakerTag. */ int getSpeakerTag(); diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto rename to proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto rename to proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.proto diff --git a/owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto b/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto similarity index 100% rename from owl-bot-staging/v1p1beta1/proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto rename to proto-google-cloud-speech-v1p1beta1/src/main/proto/google/cloud/speech/v1p1beta1/resource.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClass.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java index c98d9b047..5cd4c5f5d 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java @@ -20,7 +20,6 @@ import com.google.cloud.speech.v1.AdaptationClient; import com.google.cloud.speech.v1.CustomClassName; import com.google.cloud.speech.v1.DeleteCustomClassRequest; -import com.google.protobuf.Empty; public class SyncDeleteCustomClass { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java index 09e3de09a..d6604c9dd 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java @@ -19,7 +19,6 @@ // [START speech_v1_generated_adaptationclient_deletecustomclass_customclassname_sync] import com.google.cloud.speech.v1.AdaptationClient; import com.google.cloud.speech.v1.CustomClassName; -import com.google.protobuf.Empty; public class SyncDeleteCustomClassCustomclassname { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java index 3642c68fc..fc4ada44a 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java @@ -19,7 +19,6 @@ // [START speech_v1_generated_adaptationclient_deletecustomclass_string_sync] import com.google.cloud.speech.v1.AdaptationClient; import com.google.cloud.speech.v1.CustomClassName; -import com.google.protobuf.Empty; public class SyncDeleteCustomClassString { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java index 9f56b1835..59a8efaeb 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java @@ -20,7 +20,6 @@ import com.google.cloud.speech.v1.AdaptationClient; import com.google.cloud.speech.v1.DeletePhraseSetRequest; import com.google.cloud.speech.v1.PhraseSetName; -import com.google.protobuf.Empty; public class SyncDeletePhraseSet { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java index 9675f36ac..e0bcdefcf 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java @@ -19,7 +19,6 @@ // [START speech_v1_generated_adaptationclient_deletephraseset_phrasesetname_sync] import com.google.cloud.speech.v1.AdaptationClient; import com.google.cloud.speech.v1.PhraseSetName; -import com.google.protobuf.Empty; public class SyncDeletePhraseSetPhrasesetname { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java similarity index 97% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java index 75d4255a7..7b156181b 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java @@ -19,7 +19,6 @@ // [START speech_v1_generated_adaptationclient_deletephraseset_string_sync] import com.google.cloud.speech.v1.AdaptationClient; import com.google.cloud.speech.v1.PhraseSetName; -import com.google.protobuf.Empty; public class SyncDeletePhraseSetString { diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/AsyncGetCustomClass.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClass.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getcustomclass/SyncGetCustomClassString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/AsyncGetPhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/getphraseset/SyncGetPhraseSetString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClasses.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/listphraseset/SyncListPhraseSetString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 88% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java index 34b76edde..0ad149d09 100644 --- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java @@ -16,7 +16,8 @@ package com.google.cloud.speech.v1.samples; -// [START speech_v1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] +// [START +// speech_v1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] import com.google.cloud.speech.v1.LongRunningRecognizeResponse; import com.google.cloud.speech.v1.RecognitionAudio; import com.google.cloud.speech.v1.RecognitionConfig; @@ -39,4 +40,5 @@ public static void syncLongRunningRecognizeRecognitionconfigRecognitionaudio() t } } } -// [END speech_v1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] +// [END +// speech_v1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/AsyncRecognize.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognize.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechclient/streamingrecognize/AsyncStreamingRecognize.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1/speechsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1/stub/speechstubsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/AsyncCreateCustomClass.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClass.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java similarity index 88% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java index 59f887842..7a9dc8f6c 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassLocationnameCustomclassString.java @@ -16,7 +16,8 @@ package com.google.cloud.speech.v1p1beta1.samples; -// [START speech_v1p1beta1_generated_adaptationclient_createcustomclass_locationnamecustomclassstring_sync] +// [START +// speech_v1p1beta1_generated_adaptationclient_createcustomclass_locationnamecustomclassstring_sync] import com.google.cloud.speech.v1p1beta1.AdaptationClient; import com.google.cloud.speech.v1p1beta1.CustomClass; import com.google.cloud.speech.v1p1beta1.LocationName; @@ -38,4 +39,5 @@ public static void syncCreateCustomClassLocationnameCustomclassString() throws E } } } -// [END speech_v1p1beta1_generated_adaptationclient_createcustomclass_locationnamecustomclassstring_sync] +// [END +// speech_v1p1beta1_generated_adaptationclient_createcustomclass_locationnamecustomclassstring_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java similarity index 94% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java index 8c959c265..e56bd6c1c 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createcustomclass/SyncCreateCustomClassStringCustomclassString.java @@ -16,7 +16,8 @@ package com.google.cloud.speech.v1p1beta1.samples; -// [START speech_v1p1beta1_generated_adaptationclient_createcustomclass_stringcustomclassstring_sync] +// [START +// speech_v1p1beta1_generated_adaptationclient_createcustomclass_stringcustomclassstring_sync] import com.google.cloud.speech.v1p1beta1.AdaptationClient; import com.google.cloud.speech.v1p1beta1.CustomClass; import com.google.cloud.speech.v1p1beta1.LocationName; diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/AsyncCreatePhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java similarity index 88% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java index ba61fbbc0..33cadf680 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetLocationnamePhrasesetString.java @@ -16,7 +16,8 @@ package com.google.cloud.speech.v1p1beta1.samples; -// [START speech_v1p1beta1_generated_adaptationclient_createphraseset_locationnamephrasesetstring_sync] +// [START +// speech_v1p1beta1_generated_adaptationclient_createphraseset_locationnamephrasesetstring_sync] import com.google.cloud.speech.v1p1beta1.AdaptationClient; import com.google.cloud.speech.v1p1beta1.LocationName; import com.google.cloud.speech.v1p1beta1.PhraseSet; @@ -38,4 +39,5 @@ public static void syncCreatePhraseSetLocationnamePhrasesetString() throws Excep } } } -// [END speech_v1p1beta1_generated_adaptationclient_createphraseset_locationnamephrasesetstring_sync] +// [END +// speech_v1p1beta1_generated_adaptationclient_createphraseset_locationnamephrasesetstring_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/createphraseset/SyncCreatePhraseSetStringPhrasesetString.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/AsyncDeleteCustomClass.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java similarity index 98% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java index 8f7babd66..b379cc1a6 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClass.java @@ -20,7 +20,6 @@ import com.google.cloud.speech.v1p1beta1.AdaptationClient; import com.google.cloud.speech.v1p1beta1.CustomClassName; import com.google.cloud.speech.v1p1beta1.DeleteCustomClassRequest; -import com.google.protobuf.Empty; public class SyncDeleteCustomClass { diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java similarity index 97% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java index f7fd054e1..8e017760a 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassCustomclassname.java @@ -19,7 +19,6 @@ // [START speech_v1p1beta1_generated_adaptationclient_deletecustomclass_customclassname_sync] import com.google.cloud.speech.v1p1beta1.AdaptationClient; import com.google.cloud.speech.v1p1beta1.CustomClassName; -import com.google.protobuf.Empty; public class SyncDeleteCustomClassCustomclassname { diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java similarity index 97% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java index 91157db0f..24e1e6858 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletecustomclass/SyncDeleteCustomClassString.java @@ -19,7 +19,6 @@ // [START speech_v1p1beta1_generated_adaptationclient_deletecustomclass_string_sync] import com.google.cloud.speech.v1p1beta1.AdaptationClient; import com.google.cloud.speech.v1p1beta1.CustomClassName; -import com.google.protobuf.Empty; public class SyncDeleteCustomClassString { diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/AsyncDeletePhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java similarity index 97% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java index f88a6fd31..b8d8e4b5d 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSet.java @@ -20,7 +20,6 @@ import com.google.cloud.speech.v1p1beta1.AdaptationClient; import com.google.cloud.speech.v1p1beta1.DeletePhraseSetRequest; import com.google.cloud.speech.v1p1beta1.PhraseSetName; -import com.google.protobuf.Empty; public class SyncDeletePhraseSet { diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java similarity index 97% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java index efd68e0ae..c8606a2bc 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetPhrasesetname.java @@ -19,7 +19,6 @@ // [START speech_v1p1beta1_generated_adaptationclient_deletephraseset_phrasesetname_sync] import com.google.cloud.speech.v1p1beta1.AdaptationClient; import com.google.cloud.speech.v1p1beta1.PhraseSetName; -import com.google.protobuf.Empty; public class SyncDeletePhraseSetPhrasesetname { diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java similarity index 97% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java index 7266f0313..3f9856d73 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/deletephraseset/SyncDeletePhraseSetString.java @@ -19,7 +19,6 @@ // [START speech_v1p1beta1_generated_adaptationclient_deletephraseset_string_sync] import com.google.cloud.speech.v1p1beta1.AdaptationClient; import com.google.cloud.speech.v1p1beta1.PhraseSetName; -import com.google.protobuf.Empty; public class SyncDeletePhraseSetString { diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/AsyncGetCustomClass.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClass.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassCustomclassname.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getcustomclass/SyncGetCustomClassString.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/AsyncGetPhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetPhrasesetname.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/getphraseset/SyncGetPhraseSetString.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClasses.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/AsyncListCustomClassesPaged.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClasses.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesLocationname.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listcustomclasses/SyncListCustomClassesString.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/AsyncListPhraseSetPaged.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetLocationname.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/listphraseset/SyncListPhraseSetString.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/AsyncUpdateCustomClass.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClass.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatecustomclass/SyncUpdateCustomClassCustomclassFieldmask.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/AsyncUpdatePhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationclient/updatephraseset/SyncUpdatePhraseSetPhrasesetFieldmask.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/adaptationsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognize.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/AsyncLongRunningRecognizeLRO.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognize.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java similarity index 88% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java index 7e0ad5198..cd37592c0 100644 --- a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java +++ b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/longrunningrecognize/SyncLongRunningRecognizeRecognitionconfigRecognitionaudio.java @@ -16,7 +16,8 @@ package com.google.cloud.speech.v1p1beta1.samples; -// [START speech_v1p1beta1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] +// [START +// speech_v1p1beta1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] import com.google.cloud.speech.v1p1beta1.LongRunningRecognizeResponse; import com.google.cloud.speech.v1p1beta1.RecognitionAudio; import com.google.cloud.speech.v1p1beta1.RecognitionConfig; @@ -39,4 +40,5 @@ public static void syncLongRunningRecognizeRecognitionconfigRecognitionaudio() t } } } -// [END speech_v1p1beta1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] +// [END +// speech_v1p1beta1_generated_speechclient_longrunningrecognize_recognitionconfigrecognitionaudio_sync] diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/AsyncRecognize.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognize.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/recognize/SyncRecognizeRecognitionconfigRecognitionaudio.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechclient/streamingrecognize/AsyncStreamingRecognize.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/speechsettings/recognize/SyncRecognize.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/adaptationstubsettings/createphraseset/SyncCreatePhraseSet.java diff --git a/owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java b/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java similarity index 100% rename from owl-bot-staging/v1p1beta1/samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java rename to samples/snippets/generated/com/google/cloud/speech/v1p1beta1/stub/speechstubsettings/recognize/SyncRecognize.java From a595b89d6e5b86c2accab5cbbb7f2ea87626e89b Mon Sep 17 00:00:00 2001 From: alicejli Date: Thu, 23 Jun 2022 14:56:02 -0400 Subject: [PATCH 3/3] chore: update pom.xml for new gax dependencies --- google-cloud-speech/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-speech/pom.xml b/google-cloud-speech/pom.xml index 908b3f666..bd09b4680 100644 --- a/google-cloud-speech/pom.xml +++ b/google-cloud-speech/pom.xml @@ -67,6 +67,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -93,12 +97,24 @@ grpc-google-cloud-speech-v1 test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + com.google.truth truth